| Terminals unused in grammar |
| |
| "=" |
| |
| |
| Grammar |
| |
| 0 $accept: input "end of file" |
| |
| 1 input: prologue_declarations "%%" grammar epilogue.opt |
| |
| 2 prologue_declarations: %empty |
| 3 | prologue_declarations prologue_declaration |
| |
| 4 prologue_declaration: grammar_declaration |
| 5 | "%{...%}" |
| 6 | "%<flag>" |
| 7 | "%define" variable value |
| 8 | "%defines" |
| 9 | "%defines" "string" |
| 10 | "%error-verbose" |
| 11 | "%expect" "integer" |
| 12 | "%expect-rr" "integer" |
| 13 | "%file-prefix" "string" |
| 14 | "%glr-parser" |
| 15 | "%initial-action" "{...}" |
| 16 | "%language" "string" |
| 17 | "%name-prefix" "string" |
| 18 | "%no-lines" |
| 19 | "%nondeterministic-parser" |
| 20 | "%output" "string" |
| |
| 21 $@1: %empty |
| |
| 22 prologue_declaration: "%param" $@1 params |
| 23 | "%pure-parser" |
| 24 | "%require" "string" |
| 25 | "%skeleton" "string" |
| 26 | "%token-table" |
| 27 | "%verbose" |
| 28 | "%yacc" |
| 29 | error ";" |
| 30 | ";" |
| |
| 31 params: params "{...}" |
| 32 | "{...}" |
| |
| 33 grammar_declaration: symbol_declaration |
| 34 | "%start" symbol |
| 35 | code_props_type "{...}" generic_symlist |
| 36 | "%default-prec" |
| 37 | "%no-default-prec" |
| 38 | "%code" "{...}" |
| 39 | "%code" "identifier" "{...}" |
| |
| 40 code_props_type: "%destructor" |
| 41 | "%printer" |
| |
| 42 union_name: %empty |
| 43 | "identifier" |
| |
| 44 grammar_declaration: "%union" union_name "{...}" |
| |
| 45 $@2: %empty |
| |
| 46 symbol_declaration: "%nterm" $@2 nterm_decls |
| |
| 47 $@3: %empty |
| |
| 48 symbol_declaration: "%token" $@3 token_decls |
| 49 | "%type" symbol_decls |
| 50 | precedence_declarator token_decls_for_prec |
| |
| 51 precedence_declarator: "%left" |
| 52 | "%right" |
| 53 | "%nonassoc" |
| 54 | "%precedence" |
| |
| 55 tag.opt: %empty |
| 56 | "<tag>" |
| |
| 57 generic_symlist: generic_symlist_item |
| 58 | generic_symlist generic_symlist_item |
| |
| 59 generic_symlist_item: symbol |
| 60 | tag |
| |
| 61 tag: "<tag>" |
| 62 | "<*>" |
| 63 | "<>" |
| |
| 64 nterm_decls: token_decls |
| |
| 65 token_decls: token_decl.1 |
| 66 | "<tag>" token_decl.1 |
| 67 | token_decls "<tag>" token_decl.1 |
| |
| 68 token_decl.1: token_decl |
| 69 | token_decl.1 token_decl |
| |
| 70 token_decl: id int.opt string_as_id.opt |
| |
| 71 int.opt: %empty |
| 72 | "integer" |
| |
| 73 token_decls_for_prec: token_decl_for_prec.1 |
| 74 | "<tag>" token_decl_for_prec.1 |
| 75 | token_decls_for_prec "<tag>" token_decl_for_prec.1 |
| |
| 76 token_decl_for_prec.1: token_decl_for_prec |
| 77 | token_decl_for_prec.1 token_decl_for_prec |
| |
| 78 token_decl_for_prec: id int.opt |
| 79 | string_as_id |
| |
| 80 symbol_decls: symbol_decl.1 |
| 81 | "<tag>" symbol_decl.1 |
| 82 | symbol_decls "<tag>" symbol_decl.1 |
| |
| 83 symbol_decl.1: symbol |
| 84 | symbol_decl.1 symbol |
| |
| 85 grammar: rules_or_grammar_declaration |
| 86 | grammar rules_or_grammar_declaration |
| |
| 87 rules_or_grammar_declaration: rules |
| 88 | grammar_declaration ";" |
| 89 | error ";" |
| |
| 90 $@4: %empty |
| |
| 91 rules: id_colon named_ref.opt $@4 ":" rhses.1 |
| |
| 92 rhses.1: rhs |
| 93 | rhses.1 "|" rhs |
| 94 | rhses.1 ";" |
| |
| 95 rhs: %empty |
| 96 | rhs symbol named_ref.opt |
| 97 | rhs tag.opt "{...}" named_ref.opt |
| 98 | rhs "%?{...}" |
| 99 | rhs "%empty" |
| 100 | rhs "%prec" symbol |
| 101 | rhs "%dprec" "integer" |
| 102 | rhs "%merge" "<tag>" |
| 103 | rhs "%expect" "integer" |
| 104 | rhs "%expect-rr" "integer" |
| |
| 105 named_ref.opt: %empty |
| 106 | "[identifier]" |
| |
| 107 variable: "identifier" |
| |
| 108 value: %empty |
| 109 | "identifier" |
| 110 | "string" |
| 111 | "{...}" |
| |
| 112 id: "identifier" |
| 113 | "character literal" |
| |
| 114 id_colon: "identifier:" |
| |
| 115 symbol: id |
| 116 | string_as_id |
| |
| 117 string_as_id: "string" |
| |
| 118 string_as_id.opt: %empty |
| 119 | string_as_id |
| |
| 120 epilogue.opt: %empty |
| 121 | "%%" "epilogue" |
| |
| |
| Terminals, with rules where they appear |
| |
| "end of file" (0) 0 |
| error (256) 29 89 |
| "string" <char*> (258) 9 13 16 17 20 24 25 110 117 |
| "%token" (259) 48 |
| "%nterm" (260) 46 |
| "%type" (261) 49 |
| "%destructor" (262) 40 |
| "%printer" (263) 41 |
| "%left" (264) 51 |
| "%right" (265) 52 |
| "%nonassoc" (266) 53 |
| "%precedence" (267) 54 |
| "%prec" (268) 100 |
| "%dprec" (269) 101 |
| "%merge" (270) 102 |
| "%code" (271) 38 39 |
| "%default-prec" (272) 36 |
| "%define" (273) 7 |
| "%defines" (274) 8 9 |
| "%error-verbose" <uniqstr> (275) 10 |
| "%expect" (276) 11 103 |
| "%expect-rr" (277) 12 104 |
| "%<flag>" <uniqstr> (278) 6 |
| "%file-prefix" <uniqstr> (279) 13 |
| "%glr-parser" (280) 14 |
| "%initial-action" (281) 15 |
| "%language" (282) 16 |
| "%name-prefix" <uniqstr> (283) 17 |
| "%no-default-prec" (284) 37 |
| "%no-lines" (285) 18 |
| "%nondeterministic-parser" (286) 19 |
| "%output" (287) 20 |
| "%pure-parser" <uniqstr> (288) 23 |
| "%require" (289) 24 |
| "%skeleton" (290) 25 |
| "%start" (291) 34 |
| "%token-table" (292) 26 |
| "%verbose" (293) 27 |
| "%yacc" (294) 28 |
| "{...}" <char*> (295) 15 31 32 35 38 39 44 97 111 |
| "%?{...}" <char*> (296) 98 |
| "[identifier]" <uniqstr> (297) 106 |
| "character literal" <unsigned char> (298) 113 |
| ":" (299) 91 |
| "epilogue" <char*> (300) 121 |
| "=" (301) |
| "identifier" <uniqstr> (302) 39 43 107 109 112 |
| "identifier:" <uniqstr> (303) 114 |
| "%%" (304) 1 121 |
| "|" (305) 93 |
| "%{...%}" <char*> (306) 5 |
| ";" (307) 29 30 88 89 94 |
| "<tag>" <uniqstr> (308) 56 61 66 67 74 75 81 82 102 |
| "<*>" (309) 62 |
| "<>" (310) 63 |
| "integer" <int> (311) 11 12 72 101 103 104 |
| "%param" <param_type> (312) 22 |
| "%union" (313) 44 |
| "%empty" (314) 99 |
| |
| |
| Nonterminals, with rules where they appear |
| |
| $accept (60) |
| on left: 0 |
| input (61) |
| on left: 1 |
| on right: 0 |
| prologue_declarations (62) |
| on left: 2 3 |
| on right: 1 3 |
| prologue_declaration (63) |
| on left: 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 |
| on right: 3 |
| $@1 (64) |
| on left: 21 |
| on right: 22 |
| params (65) |
| on left: 31 32 |
| on right: 22 31 |
| grammar_declaration (66) |
| on left: 33 34 35 36 37 38 39 44 |
| on right: 4 88 |
| code_props_type <code_props_type> (67) |
| on left: 40 41 |
| on right: 35 |
| union_name (68) |
| on left: 42 43 |
| on right: 44 |
| symbol_declaration (69) |
| on left: 46 48 49 50 |
| on right: 33 |
| $@2 (70) |
| on left: 45 |
| on right: 46 |
| $@3 (71) |
| on left: 47 |
| on right: 48 |
| precedence_declarator <assoc> (72) |
| on left: 51 52 53 54 |
| on right: 50 |
| tag.opt <uniqstr> (73) |
| on left: 55 56 |
| on right: 97 |
| generic_symlist <symbol_list*> (74) |
| on left: 57 58 |
| on right: 35 58 |
| generic_symlist_item <symbol_list*> (75) |
| on left: 59 60 |
| on right: 57 58 |
| tag <uniqstr> (76) |
| on left: 61 62 63 |
| on right: 60 |
| nterm_decls <symbol_list*> (77) |
| on left: 64 |
| on right: 46 |
| token_decls <symbol_list*> (78) |
| on left: 65 66 67 |
| on right: 48 64 67 |
| token_decl.1 <symbol_list*> (79) |
| on left: 68 69 |
| on right: 65 66 67 69 |
| token_decl <symbol*> (80) |
| on left: 70 |
| on right: 68 69 |
| int.opt <int> (81) |
| on left: 71 72 |
| on right: 70 78 |
| token_decls_for_prec <symbol_list*> (82) |
| on left: 73 74 75 |
| on right: 50 75 |
| token_decl_for_prec.1 <symbol_list*> (83) |
| on left: 76 77 |
| on right: 73 74 75 77 |
| token_decl_for_prec <symbol*> (84) |
| on left: 78 79 |
| on right: 76 77 |
| symbol_decls <symbol_list*> (85) |
| on left: 80 81 82 |
| on right: 49 82 |
| symbol_decl.1 <symbol_list*> (86) |
| on left: 83 84 |
| on right: 80 81 82 84 |
| grammar (87) |
| on left: 85 86 |
| on right: 1 86 |
| rules_or_grammar_declaration (88) |
| on left: 87 88 89 |
| on right: 85 86 |
| rules (89) |
| on left: 91 |
| on right: 87 |
| $@4 (90) |
| on left: 90 |
| on right: 91 |
| rhses.1 (91) |
| on left: 92 93 94 |
| on right: 91 93 94 |
| rhs (92) |
| on left: 95 96 97 98 99 100 101 102 103 104 |
| on right: 92 93 96 97 98 99 100 101 102 103 104 |
| named_ref.opt <named_ref*> (93) |
| on left: 105 106 |
| on right: 91 96 97 |
| variable <uniqstr> (94) |
| on left: 107 |
| on right: 7 |
| value <value_type> (95) |
| on left: 108 109 110 111 |
| on right: 7 |
| id <symbol*> (96) |
| on left: 112 113 |
| on right: 70 78 115 |
| id_colon <symbol*> (97) |
| on left: 114 |
| on right: 91 |
| symbol <symbol*> (98) |
| on left: 115 116 |
| on right: 34 59 83 84 96 100 |
| string_as_id <symbol*> (99) |
| on left: 117 |
| on right: 79 116 119 |
| string_as_id.opt <symbol*> (100) |
| on left: 118 119 |
| on right: 70 |
| epilogue.opt (101) |
| on left: 120 121 |
| on right: 1 |
| |
| |
| State 0 |
| |
| 0 $accept: . input "end of file" |
| 1 input: . prologue_declarations "%%" grammar epilogue.opt |
| 2 prologue_declarations: . %empty |
| 3 | . prologue_declarations prologue_declaration |
| |
| $default reduce using rule 2 (prologue_declarations) |
| |
| input go to state 1 |
| prologue_declarations go to state 2 |
| |
| |
| State 1 |
| |
| 0 $accept: input . "end of file" |
| |
| "end of file" shift, and go to state 3 |
| |
| |
| State 2 |
| |
| 1 input: prologue_declarations . "%%" grammar epilogue.opt |
| 3 prologue_declarations: prologue_declarations . prologue_declaration |
| 4 prologue_declaration: . grammar_declaration |
| 5 | . "%{...%}" |
| 6 | . "%<flag>" |
| 7 | . "%define" variable value |
| 8 | . "%defines" |
| 9 | . "%defines" "string" |
| 10 | . "%error-verbose" |
| 11 | . "%expect" "integer" |
| 12 | . "%expect-rr" "integer" |
| 13 | . "%file-prefix" "string" |
| 14 | . "%glr-parser" |
| 15 | . "%initial-action" "{...}" |
| 16 | . "%language" "string" |
| 17 | . "%name-prefix" "string" |
| 18 | . "%no-lines" |
| 19 | . "%nondeterministic-parser" |
| 20 | . "%output" "string" |
| 22 | . "%param" $@1 params |
| 23 | . "%pure-parser" |
| 24 | . "%require" "string" |
| 25 | . "%skeleton" "string" |
| 26 | . "%token-table" |
| 27 | . "%verbose" |
| 28 | . "%yacc" |
| 29 | . error ";" |
| 30 | . ";" |
| 33 grammar_declaration: . symbol_declaration |
| 34 | . "%start" symbol |
| 35 | . code_props_type "{...}" generic_symlist |
| 36 | . "%default-prec" |
| 37 | . "%no-default-prec" |
| 38 | . "%code" "{...}" |
| 39 | . "%code" "identifier" "{...}" |
| 40 code_props_type: . "%destructor" |
| 41 | . "%printer" |
| 44 grammar_declaration: . "%union" union_name "{...}" |
| 46 symbol_declaration: . "%nterm" $@2 nterm_decls |
| 48 | . "%token" $@3 token_decls |
| 49 | . "%type" symbol_decls |
| 50 | . precedence_declarator token_decls_for_prec |
| 51 precedence_declarator: . "%left" |
| 52 | . "%right" |
| 53 | . "%nonassoc" |
| 54 | . "%precedence" |
| |
| error shift, and go to state 4 |
| "%token" shift, and go to state 5 |
| "%nterm" shift, and go to state 6 |
| "%type" shift, and go to state 7 |
| "%destructor" shift, and go to state 8 |
| "%printer" shift, and go to state 9 |
| "%left" shift, and go to state 10 |
| "%right" shift, and go to state 11 |
| "%nonassoc" shift, and go to state 12 |
| "%precedence" shift, and go to state 13 |
| "%code" shift, and go to state 14 |
| "%default-prec" shift, and go to state 15 |
| "%define" shift, and go to state 16 |
| "%defines" shift, and go to state 17 |
| "%error-verbose" shift, and go to state 18 |
| "%expect" shift, and go to state 19 |
| "%expect-rr" shift, and go to state 20 |
| "%<flag>" shift, and go to state 21 |
| "%file-prefix" shift, and go to state 22 |
| "%glr-parser" shift, and go to state 23 |
| "%initial-action" shift, and go to state 24 |
| "%language" shift, and go to state 25 |
| "%name-prefix" shift, and go to state 26 |
| "%no-default-prec" shift, and go to state 27 |
| "%no-lines" shift, and go to state 28 |
| "%nondeterministic-parser" shift, and go to state 29 |
| "%output" shift, and go to state 30 |
| "%pure-parser" shift, and go to state 31 |
| "%require" shift, and go to state 32 |
| "%skeleton" shift, and go to state 33 |
| "%start" shift, and go to state 34 |
| "%token-table" shift, and go to state 35 |
| "%verbose" shift, and go to state 36 |
| "%yacc" shift, and go to state 37 |
| "%%" shift, and go to state 38 |
| "%{...%}" shift, and go to state 39 |
| ";" shift, and go to state 40 |
| "%param" shift, and go to state 41 |
| "%union" shift, and go to state 42 |
| |
| prologue_declaration go to state 43 |
| grammar_declaration go to state 44 |
| code_props_type go to state 45 |
| symbol_declaration go to state 46 |
| precedence_declarator go to state 47 |
| |
| |
| State 3 |
| |
| 0 $accept: input "end of file" . |
| |
| $default accept |
| |
| |
| State 4 |
| |
| 29 prologue_declaration: error . ";" |
| |
| ";" shift, and go to state 48 |
| |
| |
| State 5 |
| |
| 47 $@3: . %empty |
| 48 symbol_declaration: "%token" . $@3 token_decls |
| |
| $default reduce using rule 47 ($@3) |
| |
| $@3 go to state 49 |
| |
| |
| State 6 |
| |
| 45 $@2: . %empty |
| 46 symbol_declaration: "%nterm" . $@2 nterm_decls |
| |
| $default reduce using rule 45 ($@2) |
| |
| $@2 go to state 50 |
| |
| |
| State 7 |
| |
| 49 symbol_declaration: "%type" . symbol_decls |
| 80 symbol_decls: . symbol_decl.1 |
| 81 | . "<tag>" symbol_decl.1 |
| 82 | . symbol_decls "<tag>" symbol_decl.1 |
| 83 symbol_decl.1: . symbol |
| 84 | . symbol_decl.1 symbol |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| "<tag>" shift, and go to state 54 |
| |
| symbol_decls go to state 55 |
| symbol_decl.1 go to state 56 |
| id go to state 57 |
| symbol go to state 58 |
| string_as_id go to state 59 |
| |
| |
| State 8 |
| |
| 40 code_props_type: "%destructor" . |
| |
| $default reduce using rule 40 (code_props_type) |
| |
| |
| State 9 |
| |
| 41 code_props_type: "%printer" . |
| |
| $default reduce using rule 41 (code_props_type) |
| |
| |
| State 10 |
| |
| 51 precedence_declarator: "%left" . |
| |
| $default reduce using rule 51 (precedence_declarator) |
| |
| |
| State 11 |
| |
| 52 precedence_declarator: "%right" . |
| |
| $default reduce using rule 52 (precedence_declarator) |
| |
| |
| State 12 |
| |
| 53 precedence_declarator: "%nonassoc" . |
| |
| $default reduce using rule 53 (precedence_declarator) |
| |
| |
| State 13 |
| |
| 54 precedence_declarator: "%precedence" . |
| |
| $default reduce using rule 54 (precedence_declarator) |
| |
| |
| State 14 |
| |
| 38 grammar_declaration: "%code" . "{...}" |
| 39 | "%code" . "identifier" "{...}" |
| |
| "{...}" shift, and go to state 60 |
| "identifier" shift, and go to state 61 |
| |
| |
| State 15 |
| |
| 36 grammar_declaration: "%default-prec" . |
| |
| $default reduce using rule 36 (grammar_declaration) |
| |
| |
| State 16 |
| |
| 7 prologue_declaration: "%define" . variable value |
| 107 variable: . "identifier" |
| |
| "identifier" shift, and go to state 62 |
| |
| variable go to state 63 |
| |
| |
| State 17 |
| |
| 8 prologue_declaration: "%defines" . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "%param", "%union"] |
| 9 | "%defines" . "string" |
| |
| "string" shift, and go to state 64 |
| |
| $default reduce using rule 8 (prologue_declaration) |
| |
| |
| State 18 |
| |
| 10 prologue_declaration: "%error-verbose" . |
| |
| $default reduce using rule 10 (prologue_declaration) |
| |
| |
| State 19 |
| |
| 11 prologue_declaration: "%expect" . "integer" |
| |
| "integer" shift, and go to state 65 |
| |
| |
| State 20 |
| |
| 12 prologue_declaration: "%expect-rr" . "integer" |
| |
| "integer" shift, and go to state 66 |
| |
| |
| State 21 |
| |
| 6 prologue_declaration: "%<flag>" . |
| |
| $default reduce using rule 6 (prologue_declaration) |
| |
| |
| State 22 |
| |
| 13 prologue_declaration: "%file-prefix" . "string" |
| |
| "string" shift, and go to state 67 |
| |
| |
| State 23 |
| |
| 14 prologue_declaration: "%glr-parser" . |
| |
| $default reduce using rule 14 (prologue_declaration) |
| |
| |
| State 24 |
| |
| 15 prologue_declaration: "%initial-action" . "{...}" |
| |
| "{...}" shift, and go to state 68 |
| |
| |
| State 25 |
| |
| 16 prologue_declaration: "%language" . "string" |
| |
| "string" shift, and go to state 69 |
| |
| |
| State 26 |
| |
| 17 prologue_declaration: "%name-prefix" . "string" |
| |
| "string" shift, and go to state 70 |
| |
| |
| State 27 |
| |
| 37 grammar_declaration: "%no-default-prec" . |
| |
| $default reduce using rule 37 (grammar_declaration) |
| |
| |
| State 28 |
| |
| 18 prologue_declaration: "%no-lines" . |
| |
| $default reduce using rule 18 (prologue_declaration) |
| |
| |
| State 29 |
| |
| 19 prologue_declaration: "%nondeterministic-parser" . |
| |
| $default reduce using rule 19 (prologue_declaration) |
| |
| |
| State 30 |
| |
| 20 prologue_declaration: "%output" . "string" |
| |
| "string" shift, and go to state 71 |
| |
| |
| State 31 |
| |
| 23 prologue_declaration: "%pure-parser" . |
| |
| $default reduce using rule 23 (prologue_declaration) |
| |
| |
| State 32 |
| |
| 24 prologue_declaration: "%require" . "string" |
| |
| "string" shift, and go to state 72 |
| |
| |
| State 33 |
| |
| 25 prologue_declaration: "%skeleton" . "string" |
| |
| "string" shift, and go to state 73 |
| |
| |
| State 34 |
| |
| 34 grammar_declaration: "%start" . symbol |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| id go to state 57 |
| symbol go to state 74 |
| string_as_id go to state 59 |
| |
| |
| State 35 |
| |
| 26 prologue_declaration: "%token-table" . |
| |
| $default reduce using rule 26 (prologue_declaration) |
| |
| |
| State 36 |
| |
| 27 prologue_declaration: "%verbose" . |
| |
| $default reduce using rule 27 (prologue_declaration) |
| |
| |
| State 37 |
| |
| 28 prologue_declaration: "%yacc" . |
| |
| $default reduce using rule 28 (prologue_declaration) |
| |
| |
| State 38 |
| |
| 1 input: prologue_declarations "%%" . grammar epilogue.opt |
| 33 grammar_declaration: . symbol_declaration |
| 34 | . "%start" symbol |
| 35 | . code_props_type "{...}" generic_symlist |
| 36 | . "%default-prec" |
| 37 | . "%no-default-prec" |
| 38 | . "%code" "{...}" |
| 39 | . "%code" "identifier" "{...}" |
| 40 code_props_type: . "%destructor" |
| 41 | . "%printer" |
| 44 grammar_declaration: . "%union" union_name "{...}" |
| 46 symbol_declaration: . "%nterm" $@2 nterm_decls |
| 48 | . "%token" $@3 token_decls |
| 49 | . "%type" symbol_decls |
| 50 | . precedence_declarator token_decls_for_prec |
| 51 precedence_declarator: . "%left" |
| 52 | . "%right" |
| 53 | . "%nonassoc" |
| 54 | . "%precedence" |
| 85 grammar: . rules_or_grammar_declaration |
| 86 | . grammar rules_or_grammar_declaration |
| 87 rules_or_grammar_declaration: . rules |
| 88 | . grammar_declaration ";" |
| 89 | . error ";" |
| 91 rules: . id_colon named_ref.opt $@4 ":" rhses.1 |
| 114 id_colon: . "identifier:" |
| |
| error shift, and go to state 75 |
| "%token" shift, and go to state 5 |
| "%nterm" shift, and go to state 6 |
| "%type" shift, and go to state 7 |
| "%destructor" shift, and go to state 8 |
| "%printer" shift, and go to state 9 |
| "%left" shift, and go to state 10 |
| "%right" shift, and go to state 11 |
| "%nonassoc" shift, and go to state 12 |
| "%precedence" shift, and go to state 13 |
| "%code" shift, and go to state 14 |
| "%default-prec" shift, and go to state 15 |
| "%no-default-prec" shift, and go to state 27 |
| "%start" shift, and go to state 34 |
| "identifier:" shift, and go to state 76 |
| "%union" shift, and go to state 42 |
| |
| grammar_declaration go to state 77 |
| code_props_type go to state 45 |
| symbol_declaration go to state 46 |
| precedence_declarator go to state 47 |
| grammar go to state 78 |
| rules_or_grammar_declaration go to state 79 |
| rules go to state 80 |
| id_colon go to state 81 |
| |
| |
| State 39 |
| |
| 5 prologue_declaration: "%{...%}" . |
| |
| $default reduce using rule 5 (prologue_declaration) |
| |
| |
| State 40 |
| |
| 30 prologue_declaration: ";" . |
| |
| $default reduce using rule 30 (prologue_declaration) |
| |
| |
| State 41 |
| |
| 21 $@1: . %empty |
| 22 prologue_declaration: "%param" . $@1 params |
| |
| $default reduce using rule 21 ($@1) |
| |
| $@1 go to state 82 |
| |
| |
| State 42 |
| |
| 42 union_name: . %empty ["{...}"] |
| 43 | . "identifier" |
| 44 grammar_declaration: "%union" . union_name "{...}" |
| |
| "identifier" shift, and go to state 83 |
| |
| $default reduce using rule 42 (union_name) |
| |
| union_name go to state 84 |
| |
| |
| State 43 |
| |
| 3 prologue_declarations: prologue_declarations prologue_declaration . |
| |
| $default reduce using rule 3 (prologue_declarations) |
| |
| |
| State 44 |
| |
| 4 prologue_declaration: grammar_declaration . |
| |
| $default reduce using rule 4 (prologue_declaration) |
| |
| |
| State 45 |
| |
| 35 grammar_declaration: code_props_type . "{...}" generic_symlist |
| |
| "{...}" shift, and go to state 85 |
| |
| |
| State 46 |
| |
| 33 grammar_declaration: symbol_declaration . |
| |
| $default reduce using rule 33 (grammar_declaration) |
| |
| |
| State 47 |
| |
| 50 symbol_declaration: precedence_declarator . token_decls_for_prec |
| 73 token_decls_for_prec: . token_decl_for_prec.1 |
| 74 | . "<tag>" token_decl_for_prec.1 |
| 75 | . token_decls_for_prec "<tag>" token_decl_for_prec.1 |
| 76 token_decl_for_prec.1: . token_decl_for_prec |
| 77 | . token_decl_for_prec.1 token_decl_for_prec |
| 78 token_decl_for_prec: . id int.opt |
| 79 | . string_as_id |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| "<tag>" shift, and go to state 86 |
| |
| token_decls_for_prec go to state 87 |
| token_decl_for_prec.1 go to state 88 |
| token_decl_for_prec go to state 89 |
| id go to state 90 |
| string_as_id go to state 91 |
| |
| |
| State 48 |
| |
| 29 prologue_declaration: error ";" . |
| |
| $default reduce using rule 29 (prologue_declaration) |
| |
| |
| State 49 |
| |
| 48 symbol_declaration: "%token" $@3 . token_decls |
| 65 token_decls: . token_decl.1 |
| 66 | . "<tag>" token_decl.1 |
| 67 | . token_decls "<tag>" token_decl.1 |
| 68 token_decl.1: . token_decl |
| 69 | . token_decl.1 token_decl |
| 70 token_decl: . id int.opt string_as_id.opt |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| "<tag>" shift, and go to state 92 |
| |
| token_decls go to state 93 |
| token_decl.1 go to state 94 |
| token_decl go to state 95 |
| id go to state 96 |
| |
| |
| State 50 |
| |
| 46 symbol_declaration: "%nterm" $@2 . nterm_decls |
| 64 nterm_decls: . token_decls |
| 65 token_decls: . token_decl.1 |
| 66 | . "<tag>" token_decl.1 |
| 67 | . token_decls "<tag>" token_decl.1 |
| 68 token_decl.1: . token_decl |
| 69 | . token_decl.1 token_decl |
| 70 token_decl: . id int.opt string_as_id.opt |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| "<tag>" shift, and go to state 92 |
| |
| nterm_decls go to state 97 |
| token_decls go to state 98 |
| token_decl.1 go to state 94 |
| token_decl go to state 95 |
| id go to state 96 |
| |
| |
| State 51 |
| |
| 117 string_as_id: "string" . |
| |
| $default reduce using rule 117 (string_as_id) |
| |
| |
| State 52 |
| |
| 113 id: "character literal" . |
| |
| $default reduce using rule 113 (id) |
| |
| |
| State 53 |
| |
| 112 id: "identifier" . |
| |
| $default reduce using rule 112 (id) |
| |
| |
| State 54 |
| |
| 81 symbol_decls: "<tag>" . symbol_decl.1 |
| 83 symbol_decl.1: . symbol |
| 84 | . symbol_decl.1 symbol |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| symbol_decl.1 go to state 99 |
| id go to state 57 |
| symbol go to state 58 |
| string_as_id go to state 59 |
| |
| |
| State 55 |
| |
| 49 symbol_declaration: "%type" symbol_decls . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "%param", "%union"] |
| 82 symbol_decls: symbol_decls . "<tag>" symbol_decl.1 |
| |
| "<tag>" shift, and go to state 100 |
| |
| $default reduce using rule 49 (symbol_declaration) |
| |
| |
| State 56 |
| |
| 80 symbol_decls: symbol_decl.1 . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 84 symbol_decl.1: symbol_decl.1 . symbol |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| $default reduce using rule 80 (symbol_decls) |
| |
| id go to state 57 |
| symbol go to state 101 |
| string_as_id go to state 59 |
| |
| |
| State 57 |
| |
| 115 symbol: id . |
| |
| $default reduce using rule 115 (symbol) |
| |
| |
| State 58 |
| |
| 83 symbol_decl.1: symbol . |
| |
| $default reduce using rule 83 (symbol_decl.1) |
| |
| |
| State 59 |
| |
| 116 symbol: string_as_id . |
| |
| $default reduce using rule 116 (symbol) |
| |
| |
| State 60 |
| |
| 38 grammar_declaration: "%code" "{...}" . |
| |
| $default reduce using rule 38 (grammar_declaration) |
| |
| |
| State 61 |
| |
| 39 grammar_declaration: "%code" "identifier" . "{...}" |
| |
| "{...}" shift, and go to state 102 |
| |
| |
| State 62 |
| |
| 107 variable: "identifier" . |
| |
| $default reduce using rule 107 (variable) |
| |
| |
| State 63 |
| |
| 7 prologue_declaration: "%define" variable . value |
| 108 value: . %empty [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "%param", "%union"] |
| 109 | . "identifier" |
| 110 | . "string" |
| 111 | . "{...}" |
| |
| "string" shift, and go to state 103 |
| "{...}" shift, and go to state 104 |
| "identifier" shift, and go to state 105 |
| |
| $default reduce using rule 108 (value) |
| |
| value go to state 106 |
| |
| |
| State 64 |
| |
| 9 prologue_declaration: "%defines" "string" . |
| |
| $default reduce using rule 9 (prologue_declaration) |
| |
| |
| State 65 |
| |
| 11 prologue_declaration: "%expect" "integer" . |
| |
| $default reduce using rule 11 (prologue_declaration) |
| |
| |
| State 66 |
| |
| 12 prologue_declaration: "%expect-rr" "integer" . |
| |
| $default reduce using rule 12 (prologue_declaration) |
| |
| |
| State 67 |
| |
| 13 prologue_declaration: "%file-prefix" "string" . |
| |
| $default reduce using rule 13 (prologue_declaration) |
| |
| |
| State 68 |
| |
| 15 prologue_declaration: "%initial-action" "{...}" . |
| |
| $default reduce using rule 15 (prologue_declaration) |
| |
| |
| State 69 |
| |
| 16 prologue_declaration: "%language" "string" . |
| |
| $default reduce using rule 16 (prologue_declaration) |
| |
| |
| State 70 |
| |
| 17 prologue_declaration: "%name-prefix" "string" . |
| |
| $default reduce using rule 17 (prologue_declaration) |
| |
| |
| State 71 |
| |
| 20 prologue_declaration: "%output" "string" . |
| |
| $default reduce using rule 20 (prologue_declaration) |
| |
| |
| State 72 |
| |
| 24 prologue_declaration: "%require" "string" . |
| |
| $default reduce using rule 24 (prologue_declaration) |
| |
| |
| State 73 |
| |
| 25 prologue_declaration: "%skeleton" "string" . |
| |
| $default reduce using rule 25 (prologue_declaration) |
| |
| |
| State 74 |
| |
| 34 grammar_declaration: "%start" symbol . |
| |
| $default reduce using rule 34 (grammar_declaration) |
| |
| |
| State 75 |
| |
| 89 rules_or_grammar_declaration: error . ";" |
| |
| ";" shift, and go to state 107 |
| |
| |
| State 76 |
| |
| 114 id_colon: "identifier:" . |
| |
| $default reduce using rule 114 (id_colon) |
| |
| |
| State 77 |
| |
| 88 rules_or_grammar_declaration: grammar_declaration . ";" |
| |
| ";" shift, and go to state 108 |
| |
| |
| State 78 |
| |
| 1 input: prologue_declarations "%%" grammar . epilogue.opt |
| 33 grammar_declaration: . symbol_declaration |
| 34 | . "%start" symbol |
| 35 | . code_props_type "{...}" generic_symlist |
| 36 | . "%default-prec" |
| 37 | . "%no-default-prec" |
| 38 | . "%code" "{...}" |
| 39 | . "%code" "identifier" "{...}" |
| 40 code_props_type: . "%destructor" |
| 41 | . "%printer" |
| 44 grammar_declaration: . "%union" union_name "{...}" |
| 46 symbol_declaration: . "%nterm" $@2 nterm_decls |
| 48 | . "%token" $@3 token_decls |
| 49 | . "%type" symbol_decls |
| 50 | . precedence_declarator token_decls_for_prec |
| 51 precedence_declarator: . "%left" |
| 52 | . "%right" |
| 53 | . "%nonassoc" |
| 54 | . "%precedence" |
| 86 grammar: grammar . rules_or_grammar_declaration |
| 87 rules_or_grammar_declaration: . rules |
| 88 | . grammar_declaration ";" |
| 89 | . error ";" |
| 91 rules: . id_colon named_ref.opt $@4 ":" rhses.1 |
| 114 id_colon: . "identifier:" |
| 120 epilogue.opt: . %empty ["end of file"] |
| 121 | . "%%" "epilogue" |
| |
| error shift, and go to state 75 |
| "%token" shift, and go to state 5 |
| "%nterm" shift, and go to state 6 |
| "%type" shift, and go to state 7 |
| "%destructor" shift, and go to state 8 |
| "%printer" shift, and go to state 9 |
| "%left" shift, and go to state 10 |
| "%right" shift, and go to state 11 |
| "%nonassoc" shift, and go to state 12 |
| "%precedence" shift, and go to state 13 |
| "%code" shift, and go to state 14 |
| "%default-prec" shift, and go to state 15 |
| "%no-default-prec" shift, and go to state 27 |
| "%start" shift, and go to state 34 |
| "identifier:" shift, and go to state 76 |
| "%%" shift, and go to state 109 |
| "%union" shift, and go to state 42 |
| |
| "end of file" reduce using rule 120 (epilogue.opt) |
| |
| grammar_declaration go to state 77 |
| code_props_type go to state 45 |
| symbol_declaration go to state 46 |
| precedence_declarator go to state 47 |
| rules_or_grammar_declaration go to state 110 |
| rules go to state 80 |
| id_colon go to state 81 |
| epilogue.opt go to state 111 |
| |
| |
| State 79 |
| |
| 85 grammar: rules_or_grammar_declaration . |
| |
| $default reduce using rule 85 (grammar) |
| |
| |
| State 80 |
| |
| 87 rules_or_grammar_declaration: rules . |
| |
| $default reduce using rule 87 (rules_or_grammar_declaration) |
| |
| |
| State 81 |
| |
| 91 rules: id_colon . named_ref.opt $@4 ":" rhses.1 |
| 105 named_ref.opt: . %empty [":"] |
| 106 | . "[identifier]" |
| |
| "[identifier]" shift, and go to state 112 |
| |
| $default reduce using rule 105 (named_ref.opt) |
| |
| named_ref.opt go to state 113 |
| |
| |
| State 82 |
| |
| 22 prologue_declaration: "%param" $@1 . params |
| 31 params: . params "{...}" |
| 32 | . "{...}" |
| |
| "{...}" shift, and go to state 114 |
| |
| params go to state 115 |
| |
| |
| State 83 |
| |
| 43 union_name: "identifier" . |
| |
| $default reduce using rule 43 (union_name) |
| |
| |
| State 84 |
| |
| 44 grammar_declaration: "%union" union_name . "{...}" |
| |
| "{...}" shift, and go to state 116 |
| |
| |
| State 85 |
| |
| 35 grammar_declaration: code_props_type "{...}" . generic_symlist |
| 57 generic_symlist: . generic_symlist_item |
| 58 | . generic_symlist generic_symlist_item |
| 59 generic_symlist_item: . symbol |
| 60 | . tag |
| 61 tag: . "<tag>" |
| 62 | . "<*>" |
| 63 | . "<>" |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| "<tag>" shift, and go to state 117 |
| "<*>" shift, and go to state 118 |
| "<>" shift, and go to state 119 |
| |
| generic_symlist go to state 120 |
| generic_symlist_item go to state 121 |
| tag go to state 122 |
| id go to state 57 |
| symbol go to state 123 |
| string_as_id go to state 59 |
| |
| |
| State 86 |
| |
| 74 token_decls_for_prec: "<tag>" . token_decl_for_prec.1 |
| 76 token_decl_for_prec.1: . token_decl_for_prec |
| 77 | . token_decl_for_prec.1 token_decl_for_prec |
| 78 token_decl_for_prec: . id int.opt |
| 79 | . string_as_id |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| token_decl_for_prec.1 go to state 124 |
| token_decl_for_prec go to state 89 |
| id go to state 90 |
| string_as_id go to state 91 |
| |
| |
| State 87 |
| |
| 50 symbol_declaration: precedence_declarator token_decls_for_prec . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "%param", "%union"] |
| 75 token_decls_for_prec: token_decls_for_prec . "<tag>" token_decl_for_prec.1 |
| |
| "<tag>" shift, and go to state 125 |
| |
| $default reduce using rule 50 (symbol_declaration) |
| |
| |
| State 88 |
| |
| 73 token_decls_for_prec: token_decl_for_prec.1 . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 77 token_decl_for_prec.1: token_decl_for_prec.1 . token_decl_for_prec |
| 78 token_decl_for_prec: . id int.opt |
| 79 | . string_as_id |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| $default reduce using rule 73 (token_decls_for_prec) |
| |
| token_decl_for_prec go to state 126 |
| id go to state 90 |
| string_as_id go to state 91 |
| |
| |
| State 89 |
| |
| 76 token_decl_for_prec.1: token_decl_for_prec . |
| |
| $default reduce using rule 76 (token_decl_for_prec.1) |
| |
| |
| State 90 |
| |
| 71 int.opt: . %empty [error, "string", "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "character literal", "identifier", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 72 | . "integer" |
| 78 token_decl_for_prec: id . int.opt |
| |
| "integer" shift, and go to state 127 |
| |
| $default reduce using rule 71 (int.opt) |
| |
| int.opt go to state 128 |
| |
| |
| State 91 |
| |
| 79 token_decl_for_prec: string_as_id . |
| |
| $default reduce using rule 79 (token_decl_for_prec) |
| |
| |
| State 92 |
| |
| 66 token_decls: "<tag>" . token_decl.1 |
| 68 token_decl.1: . token_decl |
| 69 | . token_decl.1 token_decl |
| 70 token_decl: . id int.opt string_as_id.opt |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| token_decl.1 go to state 129 |
| token_decl go to state 95 |
| id go to state 96 |
| |
| |
| State 93 |
| |
| 48 symbol_declaration: "%token" $@3 token_decls . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "%param", "%union"] |
| 67 token_decls: token_decls . "<tag>" token_decl.1 |
| |
| "<tag>" shift, and go to state 130 |
| |
| $default reduce using rule 48 (symbol_declaration) |
| |
| |
| State 94 |
| |
| 65 token_decls: token_decl.1 . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 69 token_decl.1: token_decl.1 . token_decl |
| 70 token_decl: . id int.opt string_as_id.opt |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| $default reduce using rule 65 (token_decls) |
| |
| token_decl go to state 131 |
| id go to state 96 |
| |
| |
| State 95 |
| |
| 68 token_decl.1: token_decl . |
| |
| $default reduce using rule 68 (token_decl.1) |
| |
| |
| State 96 |
| |
| 70 token_decl: id . int.opt string_as_id.opt |
| 71 int.opt: . %empty [error, "string", "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "character literal", "identifier", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 72 | . "integer" |
| |
| "integer" shift, and go to state 127 |
| |
| $default reduce using rule 71 (int.opt) |
| |
| int.opt go to state 132 |
| |
| |
| State 97 |
| |
| 46 symbol_declaration: "%nterm" $@2 nterm_decls . |
| |
| $default reduce using rule 46 (symbol_declaration) |
| |
| |
| State 98 |
| |
| 64 nterm_decls: token_decls . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "%param", "%union"] |
| 67 token_decls: token_decls . "<tag>" token_decl.1 |
| |
| "<tag>" shift, and go to state 130 |
| |
| $default reduce using rule 64 (nterm_decls) |
| |
| |
| State 99 |
| |
| 81 symbol_decls: "<tag>" symbol_decl.1 . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 84 symbol_decl.1: symbol_decl.1 . symbol |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| $default reduce using rule 81 (symbol_decls) |
| |
| id go to state 57 |
| symbol go to state 101 |
| string_as_id go to state 59 |
| |
| |
| State 100 |
| |
| 82 symbol_decls: symbol_decls "<tag>" . symbol_decl.1 |
| 83 symbol_decl.1: . symbol |
| 84 | . symbol_decl.1 symbol |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| symbol_decl.1 go to state 133 |
| id go to state 57 |
| symbol go to state 58 |
| string_as_id go to state 59 |
| |
| |
| State 101 |
| |
| 84 symbol_decl.1: symbol_decl.1 symbol . |
| |
| $default reduce using rule 84 (symbol_decl.1) |
| |
| |
| State 102 |
| |
| 39 grammar_declaration: "%code" "identifier" "{...}" . |
| |
| $default reduce using rule 39 (grammar_declaration) |
| |
| |
| State 103 |
| |
| 110 value: "string" . |
| |
| $default reduce using rule 110 (value) |
| |
| |
| State 104 |
| |
| 111 value: "{...}" . |
| |
| $default reduce using rule 111 (value) |
| |
| |
| State 105 |
| |
| 109 value: "identifier" . |
| |
| $default reduce using rule 109 (value) |
| |
| |
| State 106 |
| |
| 7 prologue_declaration: "%define" variable value . |
| |
| $default reduce using rule 7 (prologue_declaration) |
| |
| |
| State 107 |
| |
| 89 rules_or_grammar_declaration: error ";" . |
| |
| $default reduce using rule 89 (rules_or_grammar_declaration) |
| |
| |
| State 108 |
| |
| 88 rules_or_grammar_declaration: grammar_declaration ";" . |
| |
| $default reduce using rule 88 (rules_or_grammar_declaration) |
| |
| |
| State 109 |
| |
| 121 epilogue.opt: "%%" . "epilogue" |
| |
| "epilogue" shift, and go to state 134 |
| |
| |
| State 110 |
| |
| 86 grammar: grammar rules_or_grammar_declaration . |
| |
| $default reduce using rule 86 (grammar) |
| |
| |
| State 111 |
| |
| 1 input: prologue_declarations "%%" grammar epilogue.opt . |
| |
| $default reduce using rule 1 (input) |
| |
| |
| State 112 |
| |
| 106 named_ref.opt: "[identifier]" . |
| |
| $default reduce using rule 106 (named_ref.opt) |
| |
| |
| State 113 |
| |
| 90 $@4: . %empty |
| 91 rules: id_colon named_ref.opt . $@4 ":" rhses.1 |
| |
| $default reduce using rule 90 ($@4) |
| |
| $@4 go to state 135 |
| |
| |
| State 114 |
| |
| 32 params: "{...}" . |
| |
| $default reduce using rule 32 (params) |
| |
| |
| State 115 |
| |
| 22 prologue_declaration: "%param" $@1 params . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "%param", "%union"] |
| 31 params: params . "{...}" |
| |
| "{...}" shift, and go to state 136 |
| |
| $default reduce using rule 22 (prologue_declaration) |
| |
| |
| State 116 |
| |
| 44 grammar_declaration: "%union" union_name "{...}" . |
| |
| $default reduce using rule 44 (grammar_declaration) |
| |
| |
| State 117 |
| |
| 61 tag: "<tag>" . |
| |
| $default reduce using rule 61 (tag) |
| |
| |
| State 118 |
| |
| 62 tag: "<*>" . |
| |
| $default reduce using rule 62 (tag) |
| |
| |
| State 119 |
| |
| 63 tag: "<>" . |
| |
| $default reduce using rule 63 (tag) |
| |
| |
| State 120 |
| |
| 35 grammar_declaration: code_props_type "{...}" generic_symlist . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "%param", "%union"] |
| 58 generic_symlist: generic_symlist . generic_symlist_item |
| 59 generic_symlist_item: . symbol |
| 60 | . tag |
| 61 tag: . "<tag>" |
| 62 | . "<*>" |
| 63 | . "<>" |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| "<tag>" shift, and go to state 117 |
| "<*>" shift, and go to state 118 |
| "<>" shift, and go to state 119 |
| |
| $default reduce using rule 35 (grammar_declaration) |
| |
| generic_symlist_item go to state 137 |
| tag go to state 122 |
| id go to state 57 |
| symbol go to state 123 |
| string_as_id go to state 59 |
| |
| |
| State 121 |
| |
| 57 generic_symlist: generic_symlist_item . |
| |
| $default reduce using rule 57 (generic_symlist) |
| |
| |
| State 122 |
| |
| 60 generic_symlist_item: tag . |
| |
| $default reduce using rule 60 (generic_symlist_item) |
| |
| |
| State 123 |
| |
| 59 generic_symlist_item: symbol . |
| |
| $default reduce using rule 59 (generic_symlist_item) |
| |
| |
| State 124 |
| |
| 74 token_decls_for_prec: "<tag>" token_decl_for_prec.1 . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 77 token_decl_for_prec.1: token_decl_for_prec.1 . token_decl_for_prec |
| 78 token_decl_for_prec: . id int.opt |
| 79 | . string_as_id |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| $default reduce using rule 74 (token_decls_for_prec) |
| |
| token_decl_for_prec go to state 126 |
| id go to state 90 |
| string_as_id go to state 91 |
| |
| |
| State 125 |
| |
| 75 token_decls_for_prec: token_decls_for_prec "<tag>" . token_decl_for_prec.1 |
| 76 token_decl_for_prec.1: . token_decl_for_prec |
| 77 | . token_decl_for_prec.1 token_decl_for_prec |
| 78 token_decl_for_prec: . id int.opt |
| 79 | . string_as_id |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| token_decl_for_prec.1 go to state 138 |
| token_decl_for_prec go to state 89 |
| id go to state 90 |
| string_as_id go to state 91 |
| |
| |
| State 126 |
| |
| 77 token_decl_for_prec.1: token_decl_for_prec.1 token_decl_for_prec . |
| |
| $default reduce using rule 77 (token_decl_for_prec.1) |
| |
| |
| State 127 |
| |
| 72 int.opt: "integer" . |
| |
| $default reduce using rule 72 (int.opt) |
| |
| |
| State 128 |
| |
| 78 token_decl_for_prec: id int.opt . |
| |
| $default reduce using rule 78 (token_decl_for_prec) |
| |
| |
| State 129 |
| |
| 66 token_decls: "<tag>" token_decl.1 . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 69 token_decl.1: token_decl.1 . token_decl |
| 70 token_decl: . id int.opt string_as_id.opt |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| $default reduce using rule 66 (token_decls) |
| |
| token_decl go to state 131 |
| id go to state 96 |
| |
| |
| State 130 |
| |
| 67 token_decls: token_decls "<tag>" . token_decl.1 |
| 68 token_decl.1: . token_decl |
| 69 | . token_decl.1 token_decl |
| 70 token_decl: . id int.opt string_as_id.opt |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| token_decl.1 go to state 139 |
| token_decl go to state 95 |
| id go to state 96 |
| |
| |
| State 131 |
| |
| 69 token_decl.1: token_decl.1 token_decl . |
| |
| $default reduce using rule 69 (token_decl.1) |
| |
| |
| State 132 |
| |
| 70 token_decl: id int.opt . string_as_id.opt |
| 117 string_as_id: . "string" |
| 118 string_as_id.opt: . %empty [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "character literal", "identifier", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 119 | . string_as_id |
| |
| "string" shift, and go to state 51 |
| |
| $default reduce using rule 118 (string_as_id.opt) |
| |
| string_as_id go to state 140 |
| string_as_id.opt go to state 141 |
| |
| |
| State 133 |
| |
| 82 symbol_decls: symbol_decls "<tag>" symbol_decl.1 . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 84 symbol_decl.1: symbol_decl.1 . symbol |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| $default reduce using rule 82 (symbol_decls) |
| |
| id go to state 57 |
| symbol go to state 101 |
| string_as_id go to state 59 |
| |
| |
| State 134 |
| |
| 121 epilogue.opt: "%%" "epilogue" . |
| |
| $default reduce using rule 121 (epilogue.opt) |
| |
| |
| State 135 |
| |
| 91 rules: id_colon named_ref.opt $@4 . ":" rhses.1 |
| |
| ":" shift, and go to state 142 |
| |
| |
| State 136 |
| |
| 31 params: params "{...}" . |
| |
| $default reduce using rule 31 (params) |
| |
| |
| State 137 |
| |
| 58 generic_symlist: generic_symlist generic_symlist_item . |
| |
| $default reduce using rule 58 (generic_symlist) |
| |
| |
| State 138 |
| |
| 75 token_decls_for_prec: token_decls_for_prec "<tag>" token_decl_for_prec.1 . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 77 token_decl_for_prec.1: token_decl_for_prec.1 . token_decl_for_prec |
| 78 token_decl_for_prec: . id int.opt |
| 79 | . string_as_id |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| $default reduce using rule 75 (token_decls_for_prec) |
| |
| token_decl_for_prec go to state 126 |
| id go to state 90 |
| string_as_id go to state 91 |
| |
| |
| State 139 |
| |
| 67 token_decls: token_decls "<tag>" token_decl.1 . [error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%define", "%defines", "%error-verbose", "%expect", "%expect-rr", "%<flag>", "%file-prefix", "%glr-parser", "%initial-action", "%language", "%name-prefix", "%no-default-prec", "%no-lines", "%nondeterministic-parser", "%output", "%pure-parser", "%require", "%skeleton", "%start", "%token-table", "%verbose", "%yacc", "%%", "%{...%}", ";", "<tag>", "%param", "%union"] |
| 69 token_decl.1: token_decl.1 . token_decl |
| 70 token_decl: . id int.opt string_as_id.opt |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| $default reduce using rule 67 (token_decls) |
| |
| token_decl go to state 131 |
| id go to state 96 |
| |
| |
| State 140 |
| |
| 119 string_as_id.opt: string_as_id . |
| |
| $default reduce using rule 119 (string_as_id.opt) |
| |
| |
| State 141 |
| |
| 70 token_decl: id int.opt string_as_id.opt . |
| |
| $default reduce using rule 70 (token_decl) |
| |
| |
| State 142 |
| |
| 91 rules: id_colon named_ref.opt $@4 ":" . rhses.1 |
| 92 rhses.1: . rhs |
| 93 | . rhses.1 "|" rhs |
| 94 | . rhses.1 ";" |
| 95 rhs: . %empty |
| 96 | . rhs symbol named_ref.opt |
| 97 | . rhs tag.opt "{...}" named_ref.opt |
| 98 | . rhs "%?{...}" |
| 99 | . rhs "%empty" |
| 100 | . rhs "%prec" symbol |
| 101 | . rhs "%dprec" "integer" |
| 102 | . rhs "%merge" "<tag>" |
| 103 | . rhs "%expect" "integer" |
| 104 | . rhs "%expect-rr" "integer" |
| |
| $default reduce using rule 95 (rhs) |
| |
| rhses.1 go to state 143 |
| rhs go to state 144 |
| |
| |
| State 143 |
| |
| 91 rules: id_colon named_ref.opt $@4 ":" rhses.1 . ["end of file", error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%no-default-prec", "%start", "identifier:", "%%", "%union"] |
| 93 rhses.1: rhses.1 . "|" rhs |
| 94 | rhses.1 . ";" |
| |
| "|" shift, and go to state 145 |
| ";" shift, and go to state 146 |
| |
| $default reduce using rule 91 (rules) |
| |
| |
| State 144 |
| |
| 55 tag.opt: . %empty ["{...}"] |
| 56 | . "<tag>" |
| 92 rhses.1: rhs . ["end of file", error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%no-default-prec", "%start", "identifier:", "%%", "|", ";", "%union"] |
| 96 rhs: rhs . symbol named_ref.opt |
| 97 | rhs . tag.opt "{...}" named_ref.opt |
| 98 | rhs . "%?{...}" |
| 99 | rhs . "%empty" |
| 100 | rhs . "%prec" symbol |
| 101 | rhs . "%dprec" "integer" |
| 102 | rhs . "%merge" "<tag>" |
| 103 | rhs . "%expect" "integer" |
| 104 | rhs . "%expect-rr" "integer" |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "%prec" shift, and go to state 147 |
| "%dprec" shift, and go to state 148 |
| "%merge" shift, and go to state 149 |
| "%expect" shift, and go to state 150 |
| "%expect-rr" shift, and go to state 151 |
| "%?{...}" shift, and go to state 152 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| "<tag>" shift, and go to state 153 |
| "%empty" shift, and go to state 154 |
| |
| "{...}" reduce using rule 55 (tag.opt) |
| $default reduce using rule 92 (rhses.1) |
| |
| tag.opt go to state 155 |
| id go to state 57 |
| symbol go to state 156 |
| string_as_id go to state 59 |
| |
| |
| State 145 |
| |
| 93 rhses.1: rhses.1 "|" . rhs |
| 95 rhs: . %empty |
| 96 | . rhs symbol named_ref.opt |
| 97 | . rhs tag.opt "{...}" named_ref.opt |
| 98 | . rhs "%?{...}" |
| 99 | . rhs "%empty" |
| 100 | . rhs "%prec" symbol |
| 101 | . rhs "%dprec" "integer" |
| 102 | . rhs "%merge" "<tag>" |
| 103 | . rhs "%expect" "integer" |
| 104 | . rhs "%expect-rr" "integer" |
| |
| $default reduce using rule 95 (rhs) |
| |
| rhs go to state 157 |
| |
| |
| State 146 |
| |
| 94 rhses.1: rhses.1 ";" . |
| |
| $default reduce using rule 94 (rhses.1) |
| |
| |
| State 147 |
| |
| 100 rhs: rhs "%prec" . symbol |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| |
| id go to state 57 |
| symbol go to state 158 |
| string_as_id go to state 59 |
| |
| |
| State 148 |
| |
| 101 rhs: rhs "%dprec" . "integer" |
| |
| "integer" shift, and go to state 159 |
| |
| |
| State 149 |
| |
| 102 rhs: rhs "%merge" . "<tag>" |
| |
| "<tag>" shift, and go to state 160 |
| |
| |
| State 150 |
| |
| 103 rhs: rhs "%expect" . "integer" |
| |
| "integer" shift, and go to state 161 |
| |
| |
| State 151 |
| |
| 104 rhs: rhs "%expect-rr" . "integer" |
| |
| "integer" shift, and go to state 162 |
| |
| |
| State 152 |
| |
| 98 rhs: rhs "%?{...}" . |
| |
| $default reduce using rule 98 (rhs) |
| |
| |
| State 153 |
| |
| 56 tag.opt: "<tag>" . |
| |
| $default reduce using rule 56 (tag.opt) |
| |
| |
| State 154 |
| |
| 99 rhs: rhs "%empty" . |
| |
| $default reduce using rule 99 (rhs) |
| |
| |
| State 155 |
| |
| 97 rhs: rhs tag.opt . "{...}" named_ref.opt |
| |
| "{...}" shift, and go to state 163 |
| |
| |
| State 156 |
| |
| 96 rhs: rhs symbol . named_ref.opt |
| 105 named_ref.opt: . %empty ["end of file", error, "string", "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%prec", "%dprec", "%merge", "%code", "%default-prec", "%expect", "%expect-rr", "%no-default-prec", "%start", "{...}", "%?{...}", "character literal", "identifier", "identifier:", "%%", "|", ";", "<tag>", "%union", "%empty"] |
| 106 | . "[identifier]" |
| |
| "[identifier]" shift, and go to state 112 |
| |
| $default reduce using rule 105 (named_ref.opt) |
| |
| named_ref.opt go to state 164 |
| |
| |
| State 157 |
| |
| 55 tag.opt: . %empty ["{...}"] |
| 56 | . "<tag>" |
| 93 rhses.1: rhses.1 "|" rhs . ["end of file", error, "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%code", "%default-prec", "%no-default-prec", "%start", "identifier:", "%%", "|", ";", "%union"] |
| 96 rhs: rhs . symbol named_ref.opt |
| 97 | rhs . tag.opt "{...}" named_ref.opt |
| 98 | rhs . "%?{...}" |
| 99 | rhs . "%empty" |
| 100 | rhs . "%prec" symbol |
| 101 | rhs . "%dprec" "integer" |
| 102 | rhs . "%merge" "<tag>" |
| 103 | rhs . "%expect" "integer" |
| 104 | rhs . "%expect-rr" "integer" |
| 112 id: . "identifier" |
| 113 | . "character literal" |
| 115 symbol: . id |
| 116 | . string_as_id |
| 117 string_as_id: . "string" |
| |
| "string" shift, and go to state 51 |
| "%prec" shift, and go to state 147 |
| "%dprec" shift, and go to state 148 |
| "%merge" shift, and go to state 149 |
| "%expect" shift, and go to state 150 |
| "%expect-rr" shift, and go to state 151 |
| "%?{...}" shift, and go to state 152 |
| "character literal" shift, and go to state 52 |
| "identifier" shift, and go to state 53 |
| "<tag>" shift, and go to state 153 |
| "%empty" shift, and go to state 154 |
| |
| "{...}" reduce using rule 55 (tag.opt) |
| $default reduce using rule 93 (rhses.1) |
| |
| tag.opt go to state 155 |
| id go to state 57 |
| symbol go to state 156 |
| string_as_id go to state 59 |
| |
| |
| State 158 |
| |
| 100 rhs: rhs "%prec" symbol . |
| |
| $default reduce using rule 100 (rhs) |
| |
| |
| State 159 |
| |
| 101 rhs: rhs "%dprec" "integer" . |
| |
| $default reduce using rule 101 (rhs) |
| |
| |
| State 160 |
| |
| 102 rhs: rhs "%merge" "<tag>" . |
| |
| $default reduce using rule 102 (rhs) |
| |
| |
| State 161 |
| |
| 103 rhs: rhs "%expect" "integer" . |
| |
| $default reduce using rule 103 (rhs) |
| |
| |
| State 162 |
| |
| 104 rhs: rhs "%expect-rr" "integer" . |
| |
| $default reduce using rule 104 (rhs) |
| |
| |
| State 163 |
| |
| 97 rhs: rhs tag.opt "{...}" . named_ref.opt |
| 105 named_ref.opt: . %empty ["end of file", error, "string", "%token", "%nterm", "%type", "%destructor", "%printer", "%left", "%right", "%nonassoc", "%precedence", "%prec", "%dprec", "%merge", "%code", "%default-prec", "%expect", "%expect-rr", "%no-default-prec", "%start", "{...}", "%?{...}", "character literal", "identifier", "identifier:", "%%", "|", ";", "<tag>", "%union", "%empty"] |
| 106 | . "[identifier]" |
| |
| "[identifier]" shift, and go to state 112 |
| |
| $default reduce using rule 105 (named_ref.opt) |
| |
| named_ref.opt go to state 165 |
| |
| |
| State 164 |
| |
| 96 rhs: rhs symbol named_ref.opt . |
| |
| $default reduce using rule 96 (rhs) |
| |
| |
| State 165 |
| |
| 97 rhs: rhs tag.opt "{...}" named_ref.opt . |
| |
| $default reduce using rule 97 (rhs) |