Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- addexp returns [AddExp ast]
- locals [Exp exp1, Exp exp2]
- @init {} :
- '(' '+'
- e=exp { $exp1 = $e.ast; }
- ( e=exp { $exp2 = e.ast; } )
- ')' { $ast = new AddExp($exp1, $exp2); }
- ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement