Parrot Perl6Grammar compiler and parsers #12

Subrules

grammar Calc::Grammar;
regex TOP     { <integer> <addop> <integer> }
regex integer { \d+ }
regex addop   { [ '+' | '-' ] }
continued...
Copyright © 2009
http://www.pmichaud.com/2009/pres/