main_templates5/bfc.scala
changeset 399 b17a98b0c52f
parent 384 6e1237691307
child 420 4edc1a308652
--- 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