# HG changeset patch # User Christian Urban # Date 1572445507 0 # Node ID f1d4ee6afe5d908745249e4cf13493cdb27fc2ba # Parent 38f67c1264e0e5e2736a88e87ed50cecce51b2dc updated diff -r 38f67c1264e0 -r f1d4ee6afe5d 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 38f67c1264e0 -r f1d4ee6afe5d 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 38f67c1264e0 -r f1d4ee6afe5d templates5/bf.jar Binary file templates5/bf.jar has changed diff -r 38f67c1264e0 -r f1d4ee6afe5d templates5/bfc.jar Binary file templates5/bfc.jar has changed