Created
January 26, 2012 20:36
-
-
Save russolsen/1684947 to your computer and use it in GitHub Desktop.
And to finish the thought, a REPL using Fogus' lithp.rb and my own s-expression parser.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'lithp' | |
require 'lisp_parser' | |
lisp = Lisp.new | |
print "> " | |
while not $stdin.eof? | |
line = readline | |
s_expression = SExpressionParser.new(line).parse | |
p lisp.eval(s_expression) | |
print "> " | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment