diff -r b5b5583a3a08 -r 6acabeecdf75 progs/bf/bfi.sc --- a/progs/bf/bfi.sc Thu Jul 30 13:50:54 2020 +0100 +++ b/progs/bf/bfi.sc Sat Aug 15 14:18:37 2020 +0100 @@ -47,7 +47,7 @@ case '+' => (pc + 1, mp, write(mem, mp, sread(mem, mp) + 1)) case '-' => (pc + 1, mp, write(mem, mp, sread(mem, mp) - 1)) case '.' => { print(sread(mem, mp).toChar); (pc + 1, mp, mem) } - case ',' => (pc + 1, mp, write(mem, mp, Console.in.read().toByte)) + case ',' => (pc + 1, mp, write(mem, mp, Console.in.read().toByte)) //scala.io.StdIn.readLine() case '[' => if (sread(mem, mp) == 0) (jumpRight(prog, pc + 1, 0), mp, mem) else (pc + 1, mp, mem)