1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# LR(1) but not LALR(1) grammar from the Dragon book absyntype i32 terminal a b c d e nonterminal E i32 nonterminal T i32 nonterminal F i32 topsym E E --> a T d E --> a F e E --> b T e E --> b F d T --> c F --> c EOF