--- 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