Nonterminals useless in grammar iv3 bv Terminals unused in grammar T_COLOR T_ERROR BOOLEAN Rules useless in grammar 32 iv3: '(' iv ')' 33 | '(' iv iv iv ')' 34 bv: BOOLEAN 35 | I_NUMBER 36 | F_NUMBER Rules useless in parser due to conflicts 21 iv: I_NUMBER 22 | '-' iv 23 | F_NUMBER 24 | '-' fv State 9 conflicts: 5 shift/reduce State 30 conflicts: 10 reduce/reduce State 31 conflicts: 10 reduce/reduce State 39 conflicts: 10 reduce/reduce State 40 conflicts: 10 reduce/reduce Grammar 0 $accept: sstp_description T_END 1 sstp_description: sstp_expression_list T_END 2 sstp_expression_list: sstp_expression 3 | sstp_expression sstp_expression_list 4 sstp_expression: sstp_command_list 5 sstp_command_list: sstp_command 6 | sstp_command_list sstp_command 7 sstp_command: light_command 8 | setup_command 9 | custom_command 10 light_command: T_ADDLIGHT 11 | T_ADDLIGHT fv 12 setup_command: T_OBJPOSITION v3 13 | T_OBJLOOKAT v3 14 | T_OBJCOLOR v4 15 | T_OBJCOLOR COLOR 16 custom_command: T_CUSTOMCMD svv sv 17 fv: F_NUMBER 18 | '-' fv 19 | I_NUMBER 20 | '-' iv 21 iv: I_NUMBER 22 | '-' iv 23 | F_NUMBER 24 | '-' fv 25 v3: '(' fv ')' 26 | '(' fv fv fv ')' 27 v4: '(' fv ')' 28 | '(' fv fv fv fv ')' 29 svv: STRING_VAR 30 sv: STRING 31 | STRING sv Terminals, with rules where they appear T_END (0) 0 1 '(' (40) 25 26 27 28 ')' (41) 25 26 27 28 '-' (45) 18 20 22 24 error (256) T_COLOR (258) T_ADDLIGHT (259) 10 11 T_OBJPOSITION (260) 12 T_OBJLOOKAT (261) 13 T_OBJCOLOR (262) 14 15 T_CUSTOMCMD (263) 16 T_ERROR (264) F_NUMBER (265) 17 23 I_NUMBER (266) 19 21 STRING (267) 30 31 STRING_VAR (268) 29 BOOLEAN (269) COLOR (270) 15 Nonterminals, with rules where they appear $accept (19) on left: 0 sstp_description (20) on left: 1, on right: 0 sstp_expression_list (21) on left: 2 3, on right: 1 3 sstp_expression (22) on left: 4, on right: 2 3 sstp_command_list (23) on left: 5 6, on right: 4 6 sstp_command (24) on left: 7 8 9, on right: 5 6 light_command (25) on left: 10 11, on right: 7 setup_command (26) on left: 12 13 14 15, on right: 8 custom_command (27) on left: 16, on right: 9 fv (28) on left: 17 18 19 20, on right: 11 18 24 25 26 27 28 iv (29) on left: 21 22 23 24, on right: 20 22 v3 (30) on left: 25 26, on right: 12 13 v4 (31) on left: 27 28, on right: 14 svv (32) on left: 29, on right: 16 sv (33) on left: 30 31, on right: 16 31 state 0 0 $accept: . sstp_description T_END T_ADDLIGHT shift, and go to state 1 T_OBJPOSITION shift, and go to state 2 T_OBJLOOKAT shift, and go to state 3 T_OBJCOLOR shift, and go to state 4 T_CUSTOMCMD shift, and go to state 5 sstp_description go to state 6 sstp_expression_list go to state 7 sstp_expression go to state 8 sstp_command_list go to state 9 sstp_command go to state 10 light_command go to state 11 setup_command go to state 12 custom_command go to state 13 state 1 10 light_command: T_ADDLIGHT . 11 | T_ADDLIGHT . fv F_NUMBER shift, and go to state 14 I_NUMBER shift, and go to state 15 '-' shift, and go to state 16 $default reduce using rule 10 (light_command) fv go to state 17 state 2 12 setup_command: T_OBJPOSITION . v3 '(' shift, and go to state 18 v3 go to state 19 state 3 13 setup_command: T_OBJLOOKAT . v3 '(' shift, and go to state 18 v3 go to state 20 state 4 14 setup_command: T_OBJCOLOR . v4 15 | T_OBJCOLOR . COLOR COLOR shift, and go to state 21 '(' shift, and go to state 22 v4 go to state 23 state 5 16 custom_command: T_CUSTOMCMD . svv sv STRING_VAR shift, and go to state 24 svv go to state 25 state 6 0 $accept: sstp_description . T_END T_END shift, and go to state 26 state 7 1 sstp_description: sstp_expression_list . T_END T_END shift, and go to state 27 state 8 2 sstp_expression_list: sstp_expression . 3 | sstp_expression . sstp_expression_list T_ADDLIGHT shift, and go to state 1 T_OBJPOSITION shift, and go to state 2 T_OBJLOOKAT shift, and go to state 3 T_OBJCOLOR shift, and go to state 4 T_CUSTOMCMD shift, and go to state 5 $default reduce using rule 2 (sstp_expression_list) sstp_expression_list go to state 28 sstp_expression go to state 8 sstp_command_list go to state 9 sstp_command go to state 10 light_command go to state 11 setup_command go to state 12 custom_command go to state 13 state 9 4 sstp_expression: sstp_command_list . 6 sstp_command_list: sstp_command_list . sstp_command T_ADDLIGHT shift, and go to state 1 T_OBJPOSITION shift, and go to state 2 T_OBJLOOKAT shift, and go to state 3 T_OBJCOLOR shift, and go to state 4 T_CUSTOMCMD shift, and go to state 5 T_ADDLIGHT [reduce using rule 4 (sstp_expression)] T_OBJPOSITION [reduce using rule 4 (sstp_expression)] T_OBJLOOKAT [reduce using rule 4 (sstp_expression)] T_OBJCOLOR [reduce using rule 4 (sstp_expression)] T_CUSTOMCMD [reduce using rule 4 (sstp_expression)] $default reduce using rule 4 (sstp_expression) sstp_command go to state 29 light_command go to state 11 setup_command go to state 12 custom_command go to state 13 state 10 5 sstp_command_list: sstp_command . $default reduce using rule 5 (sstp_command_list) state 11 7 sstp_command: light_command . $default reduce using rule 7 (sstp_command) state 12 8 sstp_command: setup_command . $default reduce using rule 8 (sstp_command) state 13 9 sstp_command: custom_command . $default reduce using rule 9 (sstp_command) state 14 17 fv: F_NUMBER . $default reduce using rule 17 (fv) state 15 19 fv: I_NUMBER . $default reduce using rule 19 (fv) state 16 18 fv: '-' . fv 20 | '-' . iv F_NUMBER shift, and go to state 30 I_NUMBER shift, and go to state 31 '-' shift, and go to state 32 fv go to state 33 iv go to state 34 state 17 11 light_command: T_ADDLIGHT fv . $default reduce using rule 11 (light_command) state 18 25 v3: '(' . fv ')' 26 | '(' . fv fv fv ')' F_NUMBER shift, and go to state 14 I_NUMBER shift, and go to state 15 '-' shift, and go to state 16 fv go to state 35 state 19 12 setup_command: T_OBJPOSITION v3 . $default reduce using rule 12 (setup_command) state 20 13 setup_command: T_OBJLOOKAT v3 . $default reduce using rule 13 (setup_command) state 21 15 setup_command: T_OBJCOLOR COLOR . $default reduce using rule 15 (setup_command) state 22 27 v4: '(' . fv ')' 28 | '(' . fv fv fv fv ')' F_NUMBER shift, and go to state 14 I_NUMBER shift, and go to state 15 '-' shift, and go to state 16 fv go to state 36 state 23 14 setup_command: T_OBJCOLOR v4 . $default reduce using rule 14 (setup_command) state 24 29 svv: STRING_VAR . $default reduce using rule 29 (svv) state 25 16 custom_command: T_CUSTOMCMD svv . sv STRING shift, and go to state 37 sv go to state 38 state 26 0 $accept: sstp_description T_END . $default accept state 27 1 sstp_description: sstp_expression_list T_END . $default reduce using rule 1 (sstp_description) state 28 3 sstp_expression_list: sstp_expression sstp_expression_list . $default reduce using rule 3 (sstp_expression_list) state 29 6 sstp_command_list: sstp_command_list sstp_command . $default reduce using rule 6 (sstp_command_list) state 30 17 fv: F_NUMBER . 23 iv: F_NUMBER . T_END reduce using rule 17 (fv) T_END [reduce using rule 23 (iv)] T_ADDLIGHT reduce using rule 17 (fv) T_ADDLIGHT [reduce using rule 23 (iv)] T_OBJPOSITION reduce using rule 17 (fv) T_OBJPOSITION [reduce using rule 23 (iv)] T_OBJLOOKAT reduce using rule 17 (fv) T_OBJLOOKAT [reduce using rule 23 (iv)] T_OBJCOLOR reduce using rule 17 (fv) T_OBJCOLOR [reduce using rule 23 (iv)] T_CUSTOMCMD reduce using rule 17 (fv) T_CUSTOMCMD [reduce using rule 23 (iv)] F_NUMBER reduce using rule 17 (fv) F_NUMBER [reduce using rule 23 (iv)] I_NUMBER reduce using rule 17 (fv) I_NUMBER [reduce using rule 23 (iv)] '-' reduce using rule 17 (fv) '-' [reduce using rule 23 (iv)] ')' reduce using rule 17 (fv) ')' [reduce using rule 23 (iv)] $default reduce using rule 17 (fv) state 31 19 fv: I_NUMBER . 21 iv: I_NUMBER . T_END reduce using rule 19 (fv) T_END [reduce using rule 21 (iv)] T_ADDLIGHT reduce using rule 19 (fv) T_ADDLIGHT [reduce using rule 21 (iv)] T_OBJPOSITION reduce using rule 19 (fv) T_OBJPOSITION [reduce using rule 21 (iv)] T_OBJLOOKAT reduce using rule 19 (fv) T_OBJLOOKAT [reduce using rule 21 (iv)] T_OBJCOLOR reduce using rule 19 (fv) T_OBJCOLOR [reduce using rule 21 (iv)] T_CUSTOMCMD reduce using rule 19 (fv) T_CUSTOMCMD [reduce using rule 21 (iv)] F_NUMBER reduce using rule 19 (fv) F_NUMBER [reduce using rule 21 (iv)] I_NUMBER reduce using rule 19 (fv) I_NUMBER [reduce using rule 21 (iv)] '-' reduce using rule 19 (fv) '-' [reduce using rule 21 (iv)] ')' reduce using rule 19 (fv) ')' [reduce using rule 21 (iv)] $default reduce using rule 19 (fv) state 32 18 fv: '-' . fv 20 | '-' . iv 22 iv: '-' . iv 24 | '-' . fv F_NUMBER shift, and go to state 30 I_NUMBER shift, and go to state 31 '-' shift, and go to state 32 fv go to state 39 iv go to state 40 state 33 18 fv: '-' fv . $default reduce using rule 18 (fv) state 34 20 fv: '-' iv . $default reduce using rule 20 (fv) state 35 25 v3: '(' fv . ')' 26 | '(' fv . fv fv ')' F_NUMBER shift, and go to state 14 I_NUMBER shift, and go to state 15 '-' shift, and go to state 16 ')' shift, and go to state 41 fv go to state 42 state 36 27 v4: '(' fv . ')' 28 | '(' fv . fv fv fv ')' F_NUMBER shift, and go to state 14 I_NUMBER shift, and go to state 15 '-' shift, and go to state 16 ')' shift, and go to state 43 fv go to state 44 state 37 30 sv: STRING . 31 | STRING . sv STRING shift, and go to state 37 $default reduce using rule 30 (sv) sv go to state 45 state 38 16 custom_command: T_CUSTOMCMD svv sv . $default reduce using rule 16 (custom_command) state 39 18 fv: '-' fv . 24 iv: '-' fv . T_END reduce using rule 18 (fv) T_END [reduce using rule 24 (iv)] T_ADDLIGHT reduce using rule 18 (fv) T_ADDLIGHT [reduce using rule 24 (iv)] T_OBJPOSITION reduce using rule 18 (fv) T_OBJPOSITION [reduce using rule 24 (iv)] T_OBJLOOKAT reduce using rule 18 (fv) T_OBJLOOKAT [reduce using rule 24 (iv)] T_OBJCOLOR reduce using rule 18 (fv) T_OBJCOLOR [reduce using rule 24 (iv)] T_CUSTOMCMD reduce using rule 18 (fv) T_CUSTOMCMD [reduce using rule 24 (iv)] F_NUMBER reduce using rule 18 (fv) F_NUMBER [reduce using rule 24 (iv)] I_NUMBER reduce using rule 18 (fv) I_NUMBER [reduce using rule 24 (iv)] '-' reduce using rule 18 (fv) '-' [reduce using rule 24 (iv)] ')' reduce using rule 18 (fv) ')' [reduce using rule 24 (iv)] $default reduce using rule 18 (fv) state 40 20 fv: '-' iv . 22 iv: '-' iv . T_END reduce using rule 20 (fv) T_END [reduce using rule 22 (iv)] T_ADDLIGHT reduce using rule 20 (fv) T_ADDLIGHT [reduce using rule 22 (iv)] T_OBJPOSITION reduce using rule 20 (fv) T_OBJPOSITION [reduce using rule 22 (iv)] T_OBJLOOKAT reduce using rule 20 (fv) T_OBJLOOKAT [reduce using rule 22 (iv)] T_OBJCOLOR reduce using rule 20 (fv) T_OBJCOLOR [reduce using rule 22 (iv)] T_CUSTOMCMD reduce using rule 20 (fv) T_CUSTOMCMD [reduce using rule 22 (iv)] F_NUMBER reduce using rule 20 (fv) F_NUMBER [reduce using rule 22 (iv)] I_NUMBER reduce using rule 20 (fv) I_NUMBER [reduce using rule 22 (iv)] '-' reduce using rule 20 (fv) '-' [reduce using rule 22 (iv)] ')' reduce using rule 20 (fv) ')' [reduce using rule 22 (iv)] $default reduce using rule 20 (fv) state 41 25 v3: '(' fv ')' . $default reduce using rule 25 (v3) state 42 26 v3: '(' fv fv . fv ')' F_NUMBER shift, and go to state 14 I_NUMBER shift, and go to state 15 '-' shift, and go to state 16 fv go to state 46 state 43 27 v4: '(' fv ')' . $default reduce using rule 27 (v4) state 44 28 v4: '(' fv fv . fv fv ')' F_NUMBER shift, and go to state 14 I_NUMBER shift, and go to state 15 '-' shift, and go to state 16 fv go to state 47 state 45 31 sv: STRING sv . $default reduce using rule 31 (sv) state 46 26 v3: '(' fv fv fv . ')' ')' shift, and go to state 48 state 47 28 v4: '(' fv fv fv . fv ')' F_NUMBER shift, and go to state 14 I_NUMBER shift, and go to state 15 '-' shift, and go to state 16 fv go to state 49 state 48 26 v3: '(' fv fv fv ')' . $default reduce using rule 26 (v3) state 49 28 v4: '(' fv fv fv fv . ')' ')' shift, and go to state 50 state 50 28 v4: '(' fv fv fv fv ')' . $default reduce using rule 28 (v4)