progs/bf/bfi.sc
changeset 738 084e2843f478
parent 737 14a348d050b3
child 742 b5b5583a3a08
--- a/progs/bf/bfi.sc	Tue Jul 21 00:12:34 2020 +0100
+++ b/progs/bf/bfi.sc	Fri Jul 24 12:58:19 2020 +0100
@@ -1,9 +1,10 @@
 // A simple Interpreter for BF*** Programs
 //=========================================
 //
-// Call
+// Call with
 //
 //  amm bfi.sc <<bf_program.bf>>
+//
 
 
 import scala.util._
@@ -18,7 +19,6 @@
 def write(mem: Mem, mp: Int, v: Int) : Mem =
   mem.updated(mp, v)
 
-
 // Right and Left Jumps in BF loops
 def jumpRight(prog: String, pc: Int, level: Int) : Int = {
   if (prog.length <= pc) pc 
@@ -73,8 +73,8 @@
   (end - start)/(n * 1.0e9)
 }
 
-// Testcases
-//===========
+// Running Testcases
+//===================
 
 @doc(" the argument should be a BF program ")
 @main