Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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