Skip to content

Instantly share code, notes, and snippets.

@aledalgrande
Created February 19, 2010 23:21
Show Gist options
  • Save aledalgrande/309347 to your computer and use it in GitHub Desktop.
Save aledalgrande/309347 to your computer and use it in GitHub Desktop.
ruby-1.9.1-p378 > tree = parser.parse "field :ciccio, 'integer'"
=> SyntaxNode+Field1+Field0 offset=0, "...d :ciccio, 'integer'" (construct,sp,name,s1,s2,interpretation):
SyntaxNode offset=0, "field"
SyntaxNode offset=5, " ":
SyntaxNode offset=5, " "
SyntaxNode offset=6, ":"
SyntaxNode offset=7, "ciccio":
SyntaxNode offset=7, "c"
SyntaxNode offset=8, "i"
SyntaxNode offset=9, "c"
SyntaxNode offset=10, "c"
SyntaxNode offset=11, "i"
SyntaxNode offset=12, "o"
SyntaxNode offset=13, ""
SyntaxNode offset=13, ","
SyntaxNode offset=14, " ":
SyntaxNode offset=14, " "
SyntaxNode offset=15, "'"
SyntaxNode+Interpretation0 offset=16, "integer" (construct)
SyntaxNode offset=23, "'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment