calc example -- adding actions
grammar Calc::Grammar;
token TOP { <statement> }
rule statement { <term> <addop> <term> }
token term { \d+ }
token addop { '+' | '-' }
Add the {*} markers
| Parrot update | Parrot update | #41 | 
grammar Calc::Grammar;
token TOP { <statement> }
rule statement { <term> <addop> <term> }
token term { \d+ }
token addop { '+' | '-' }
Add the {*} markers
| 
    Copyright © 2008 http://www.pmichaud.com/2008/pres/  |