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

m
Fixed syntax highlighting.
m (Changed `io.read()` to `io.read("*all")` (reads the entire input until EOF, not just one line).)
m (Fixed syntax highlighting.)
 
Line 2:
 
An implementation of a Brainf*** interpreter in [[Lua]].
<langsyntaxhighlight lang="lua">memory = {0} --memory is bounded on one side, at 1
 
program = io.read("*all")
Line 66:
if instr then instr() end
instruction = instruction + 1
end</langsyntaxhighlight>
9,476

edits