Skip to content

Instantly share code, notes, and snippets.

@headius
Created February 13, 2012 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/1817517 to your computer and use it in GitHub Desktop.
Save headius/1817517 to your computer and use it in GitHub Desktop.
system ~/projects/jruby $ jirb
>> require 'jruby'
=> true
>> JRuby.parse 'def foo(a, b); puts a; a + b; end'
=> RootNode
NewlineNode
DefnNode |foo|
ArgsPreTwoArgNode
BlockNode
NewlineNode
FCallOneArgNode |puts|
ArrayNode
LocalVarNode |a| &0 >0
NewlineNode
CallOneArgNode |+|
LocalVarNode |a| &0 >0
ArrayNode
LocalVarNode |b| &1 >0
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment