|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700 |
- 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)
|