diff -r 7d9b765d4012 -r b17a98b0c52f main_templates5/bfc.scala --- a/main_templates5/bfc.scala Fri Nov 05 17:20:53 2021 +0000 +++ b/main_templates5/bfc.scala Sat Nov 06 00:06:39 2021 +0000 @@ -1,8 +1,8 @@ -// Core Part about a "Compiler" for the Brainf*** language -//====================================================== +// Main Part 5 about a "Compiler" for the Brainf*** language +//============================================================ -object CW10b { +object M5b { // !!! Copy any function you need from file bf.scala !!! @@ -95,7 +95,7 @@ // that is write(mem, mp, 0). // // The easiest way to modify a string in this way is to use the regular -// expression """[^<>+-,\[\]@#*]""", which recognises everything that is +// expression """[^<>+-,\[\]]""", which recognises everything that is // not a bf-command and replace it by the empty string. Similarly the // regular expression """\[-\]""" finds all occurrences of [-] and // by using the Scala method .replaceAll you can replace it with the