Execute Brain****/Common Lisp: Difference between revisions

m
Fixed syntax highlighting.
(Renamed "places" to "stack" and moved stack into state struct. ELT to AREF changes. Implemented compiler.)
m (Fixed syntax highlighting.)
 
Line 3:
This is an implementation of [[Brainf***]] written in [[Common Lisp]].
 
<langsyntaxhighlight lang="lisp">(defstruct bf-state
(program)
(program-counter 0)
Line 101:
(loop do (fresh-line)
(princ "BRAINFUCK> ")
(bf (read-line))))</langsyntaxhighlight>
9,476

edits