Execute Brain****/Lua: Difference between revisions

Content added Content deleted
(fixed missing then)
m (Changed `io.read()` to `io.read("*all")` (reads the entire input until EOF, not just one line).)
Line 4: Line 4:
<lang lua>memory = {0} --memory is bounded on one side, at 1
<lang lua>memory = {0} --memory is bounded on one side, at 1


program = io.read() --loads an entire program at once, must not contain newlines
program = io.read("*all")


pointer = 1
pointer = 1