Execute Brain****/Brat: Difference between revisions
Content deleted Content added
Update to use prototype |
m Fixed syntax highlighting. |
||
Line 4: | Line 4: | ||
Does not handle EOF when getting input. Tape is "infinite" in the positive direction. Each cell holds an integer. |
Does not handle EOF when getting input. Tape is "infinite" in the positive direction. Each cell holds an integer. |
||
< |
<syntaxhighlight lang="brat">#BF machine |
||
bf = object.new |
bf = object.new |
||
Line 95: | Line 95: | ||
include :file |
include :file |
||
bf.new(file.read(ask "BF file: ").dice).run</ |
bf.new(file.read(ask "BF file: ").dice).run</syntaxhighlight> |