# HG changeset patch # User Christian Urban # Date 1572445507 0 # Node ID 2186e204a26c0d74e64595f29296f9b73e23c2c5 # Parent 08b5ddbc7e555ab4f76f3694c5d0b8328f44d484 updated diff -r 08b5ddbc7e55 -r 2186e204a26c solutions5/bf.scala --- a/solutions5/bf.scala Wed Oct 30 14:21:16 2019 +0000 +++ b/solutions5/bf.scala Wed Oct 30 14:25:07 2019 +0000 @@ -1,8 +1,7 @@ // Part 1 about an Interpreter for the Brainf*** language //======================================================== -object CW10a { // only for generating the Jar file - +object CW10a { type Mem = Map[Int, Int] diff -r 08b5ddbc7e55 -r 2186e204a26c solutions5/bfc.scala --- a/solutions5/bfc.scala Wed Oct 30 14:21:16 2019 +0000 +++ b/solutions5/bfc.scala Wed Oct 30 14:25:07 2019 +0000 @@ -1,7 +1,7 @@ // Part 2 about a "Compiler" for the Brainf*** language //====================================================== -//object CW10b { // only for producing the jar-file +object CW10b { // !!! Copy any function you need from file bf.scala !!! // @@ -303,7 +303,7 @@ //time_needed(1, run(load_bff("sierpinski.bf"))) //time_needed(1, run4(load_bff("sierpinski.bf"))) -println(time_needed(1, run4(load_bff("mandelbrot.bf")))) +//println(time_needed(1, run4(load_bff("mandelbrot.bf")))) -//} +} diff -r 08b5ddbc7e55 -r 2186e204a26c templates5/bf.jar Binary file templates5/bf.jar has changed diff -r 08b5ddbc7e55 -r 2186e204a26c templates5/bfc.jar Binary file templates5/bfc.jar has changed