Skip to content

Instantly share code, notes, and snippets.

@hoelzro
Created October 28, 2013 20:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hoelzro/7203812 to your computer and use it in GitHub Desktop.
grammar G {
token TOP {
.
}
}
class Actions {
method TOP($/) {
make 0;
}
}
say G.parse('.', :actions(Actions.new)); # shouldn't this return 0?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment