Skip to content

Instantly share code, notes, and snippets.

@dastels
Created June 29, 2014 16:34
Show Gist options
  • Save dastels/ce800d700677b0b3522b to your computer and use it in GitHub Desktop.
Save dastels/ce800d700677b0b3522b to your computer and use it in GitHub Desktop.
rubymotionlisp demo snippet
(main)> Lisp::Initializer.register_builtins
=> #<Lisp::Primitive:0x9490f50 @name="vector" @doc="" @special=false @implementation=#<Proc:0x9490ef0>>
(main)> p = Lisp::Parser.new
=> #<Lisp::Parser:0x9827330>
(main)> p.parse_and_eval("(+ 2 3)").value
=> 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment