Skip to content

Instantly share code, notes, and snippets.

@documentcloud
Created December 17, 2009 01:58
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 documentcloud/258450 to your computer and use it in GitHub Desktop.
Save documentcloud/258450 to your computer and use it in GitHub Desktop.
# Any list of expressions or method body, seperated by line breaks or semis.
Expressions:
Expression { result = Nodes.new(val) }
| Expressions Terminator Expression { result = val[0] << val[2] }
| Expressions Terminator { result = val[0] }
| Terminator Expressions { result = val[1] }
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment