Skip to content

Instantly share code, notes, and snippets.

@russolsen
Created January 26, 2012 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save russolsen/1684947 to your computer and use it in GitHub Desktop.
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.
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