Jump to content

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

m
Changed `io.read()` to `io.read("*all")` (reads the entire input until EOF, not just one line).
(fixed missing then)
m (Changed `io.read()` to `io.read("*all")` (reads the entire input until EOF, not just one line).)
Line 4:
<lang lua>memory = {0} --memory is bounded on one side, at 1
 
program = io.read("*all") --loads an entire program at once, must not contain newlines
 
pointer = 1
Cookies help us deliver our services. By using our services, you agree to our use of cookies.