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