equal
deleted
inserted
replaced
1 // Part 2 about a "Compiler" for the Brainf*** language |
1 // Part 2 about a "Compiler" for the Brainf*** language |
2 //====================================================== |
2 //====================================================== |
3 |
3 |
4 //object CW10b { // only for producing the jar-file |
4 object CW10b { |
5 |
5 |
6 // !!! Copy any function you need from file bf.scala !!! |
6 // !!! Copy any function you need from file bf.scala !!! |
7 // |
7 // |
8 // If you need any auxiliary function, feel free to |
8 // If you need any auxiliary function, feel free to |
9 // implement it, but do not make any changes to the |
9 // implement it, but do not make any changes to the |
301 //time_needed(1, run4(load_bff("benchmark.bf"))) |
301 //time_needed(1, run4(load_bff("benchmark.bf"))) |
302 |
302 |
303 //time_needed(1, run(load_bff("sierpinski.bf"))) |
303 //time_needed(1, run(load_bff("sierpinski.bf"))) |
304 //time_needed(1, run4(load_bff("sierpinski.bf"))) |
304 //time_needed(1, run4(load_bff("sierpinski.bf"))) |
305 |
305 |
306 println(time_needed(1, run4(load_bff("mandelbrot.bf")))) |
306 //println(time_needed(1, run4(load_bff("mandelbrot.bf")))) |
307 |
307 |
308 |
308 |
309 //} |
309 } |