Terminals unused in grammar JUNK Grammar 0 $accept: grammar $end 1 grammar: expr 2 expr: LP expr RP 3 | NUMBER 4 | MINUS expr 5 | expr PLUS expr 6 | expr MINUS expr 7 | expr MUL expr 8 | expr DIV expr 9 | expr MOD expr 10 | expr EQ expr 11 | expr NE expr 12 | expr LT expr 13 | expr LE expr 14 | expr GT expr 15 | expr GE expr 16 | NOT expr Terminals, with rules where they appear $end (0) 0 error (256) DIV (258) 8 EQ (259) 10 GE (260) 15 GT (261) 14 JUNK (262) LE (263) 13 LP (264) 2 LT (265) 12 MINUS (266) 4 6 MOD (267) 9 MUL (268) 7 NE (269) 11 NOT (270) 16 NUMBER (271) 3 PLUS (272) 5 RP (273) 2 UNARY (274) Nonterminals, with rules where they appear $accept (20) on left: 0 grammar (21) on left: 1, on right: 0 expr (22) on left: 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16, on right: 1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 State 0 0 $accept: . grammar $end LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 grammar go to state 5 expr go to state 6 State 1 2 expr: LP . expr RP LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 7 State 2 4 expr: MINUS . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 8 State 3 16 expr: NOT . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 9 State 4 3 expr: NUMBER . $default reduce using rule 3 (expr) State 5 0 $accept: grammar . $end $end shift, and go to state 10 State 6 1 grammar: expr . 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr DIV shift, and go to state 11 EQ shift, and go to state 12 GE shift, and go to state 13 GT shift, and go to state 14 LE shift, and go to state 15 LT shift, and go to state 16 MINUS shift, and go to state 17 MOD shift, and go to state 18 MUL shift, and go to state 19 NE shift, and go to state 20 PLUS shift, and go to state 21 $default reduce using rule 1 (grammar) State 7 2 expr: LP expr . RP 5 | expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr DIV shift, and go to state 11 EQ shift, and go to state 12 GE shift, and go to state 13 GT shift, and go to state 14 LE shift, and go to state 15 LT shift, and go to state 16 MINUS shift, and go to state 17 MOD shift, and go to state 18 MUL shift, and go to state 19 NE shift, and go to state 20 PLUS shift, and go to state 21 RP shift, and go to state 22 State 8 4 expr: MINUS expr . 5 | expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr $default reduce using rule 4 (expr) State 9 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr 16 | NOT expr . $default reduce using rule 16 (expr) State 10 0 $accept: grammar $end . $default accept State 11 8 expr: expr DIV . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 23 State 12 10 expr: expr EQ . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 24 State 13 15 expr: expr GE . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 25 State 14 14 expr: expr GT . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 26 State 15 13 expr: expr LE . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 27 State 16 12 expr: expr LT . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 28 State 17 6 expr: expr MINUS . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 29 State 18 9 expr: expr MOD . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 30 State 19 7 expr: expr MUL . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 31 State 20 11 expr: expr NE . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 32 State 21 5 expr: expr PLUS . expr LP shift, and go to state 1 MINUS shift, and go to state 2 NOT shift, and go to state 3 NUMBER shift, and go to state 4 expr go to state 33 State 22 2 expr: LP expr RP . $default reduce using rule 2 (expr) State 23 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 8 | expr DIV expr . 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr $default reduce using rule 8 (expr) State 24 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 10 | expr EQ expr . 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr DIV shift, and go to state 11 GE shift, and go to state 13 GT shift, and go to state 14 LE shift, and go to state 15 LT shift, and go to state 16 MINUS shift, and go to state 17 MOD shift, and go to state 18 MUL shift, and go to state 19 PLUS shift, and go to state 21 $default reduce using rule 10 (expr) State 25 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr 15 | expr GE expr . DIV shift, and go to state 11 MINUS shift, and go to state 17 MOD shift, and go to state 18 MUL shift, and go to state 19 PLUS shift, and go to state 21 $default reduce using rule 15 (expr) State 26 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 14 | expr GT expr . 15 | expr . GE expr DIV shift, and go to state 11 MINUS shift, and go to state 17 MOD shift, and go to state 18 MUL shift, and go to state 19 PLUS shift, and go to state 21 $default reduce using rule 14 (expr) State 27 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 13 | expr LE expr . 14 | expr . GT expr 15 | expr . GE expr DIV shift, and go to state 11 MINUS shift, and go to state 17 MOD shift, and go to state 18 MUL shift, and go to state 19 PLUS shift, and go to state 21 $default reduce using rule 13 (expr) State 28 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 12 | expr LT expr . 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr DIV shift, and go to state 11 MINUS shift, and go to state 17 MOD shift, and go to state 18 MUL shift, and go to state 19 PLUS shift, and go to state 21 $default reduce using rule 12 (expr) State 29 5 expr: expr . PLUS expr 6 | expr . MINUS expr 6 | expr MINUS expr . 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr DIV shift, and go to state 11 MOD shift, and go to state 18 MUL shift, and go to state 19 $default reduce using rule 6 (expr) State 30 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 9 | expr MOD expr . 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr $default reduce using rule 9 (expr) State 31 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 7 | expr MUL expr . 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr $default reduce using rule 7 (expr) State 32 5 expr: expr . PLUS expr 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 11 | expr NE expr . 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr DIV shift, and go to state 11 GE shift, and go to state 13 GT shift, and go to state 14 LE shift, and go to state 15 LT shift, and go to state 16 MINUS shift, and go to state 17 MOD shift, and go to state 18 MUL shift, and go to state 19 PLUS shift, and go to state 21 $default reduce using rule 11 (expr) State 33 5 expr: expr . PLUS expr 5 | expr PLUS expr . 6 | expr . MINUS expr 7 | expr . MUL expr 8 | expr . DIV expr 9 | expr . MOD expr 10 | expr . EQ expr 11 | expr . NE expr 12 | expr . LT expr 13 | expr . LE expr 14 | expr . GT expr 15 | expr . GE expr DIV shift, and go to state 11 MOD shift, and go to state 18 MUL shift, and go to state 19 $default reduce using rule 5 (expr)