mcc-phobos.exp 11.7 KB
Newer Older
1 2
File "mcc-phobos.mly", line 228, characters 33-41:
Warning: the token TokFloat is unused.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
Grammar has 87 nonterminal symbols, among which 1 start symbols.
Grammar has 39 terminal symbols.
Grammar has 149 productions.
nullable(tokens) = false
nullable(token_term_matches) = true
nullable(token_list) = false
nullable(token_body) = false
nullable(token) = false
nullable(term_sections) = false
nullable(term_section_list) = false
nullable(term_section) = false
nullable(term_params) = false
nullable(term_param_list) = false
nullable(term_param) = false
nullable(term_options) = false
nullable(term_option_list) = false
nullable(term_option) = false
nullable(term_match_list) = false
nullable(term_match) = false
nullable(term_declaration_list) = false
nullable(term_declaration) = false
nullable(syntax_terms) = false
nullable(syntax_term_list_rev) = false
nullable(syntax_term) = false
nullable(syntax_subterms) = false
nullable(syntax_subterm_list) = false
nullable(syntax_subterm_base) = false
nullable(syntax_subterm) = false
nullable(subterms_with_semi) = false
nullable(subterms) = false
nullable(subterm_list_with_semi) = false
nullable(sub_term) = false
nullable(string_list_rev) = false
nullable(string_list) = false
nullable(st_identifier) = false
nullable(simple_term) = false
nullable(rules) = false
nullable(rule_list) = false
nullable(rule) = false
nullable(rewrites_section) = false
nullable(rev_rewrites_section_list) = false
nullable(rev_identifier_list_with_comma) = false
nullable(rev_identifier_list) = false
nullable(quoted_identifier) = false
nullable(productions) = false
nullable(prods) = false
nullable(prod_list_prim) = false
nullable(prod_list) = false
nullable(prod_body) = false
nullable(preamble) = false
nullable(param_type_id) = false
nullable(opt_term_params) = true
nullable(opt_term_matches) = true
nullable(opt_term_declarations) = true
nullable(opt_syntax_subterms) = true
nullable(opt_subterm_list_semi) = true
nullable(opt_rewrites_section) = true
nullable(opt_prec) = true
nullable(opt_preamble) = true
nullable(opt_lexer_options) = true
nullable(opt_inline_forms) = true
nullable(opt_grammar_options) = true
nullable(opt_assocs) = true
nullable(new_rewrites) = true
nullable(new_rewrite_list) = false
nullable(new_rewrite) = false
nullable(modules_rev) = false
nullable(module_name) = false
nullable(module_identifier) = false
nullable(main) = false
nullable(lexer_option_list) = false
nullable(lexer_option) = false
nullable(lexer) = false
nullable(inline_form_list_rev) = false
nullable(inline_form) = false
nullable(includes) = true
nullable(include_list_rev) = false
nullable(include_item) = false
nullable(identifiers_with_comma) = false
nullable(identifiers) = false
nullable(identifier) = false
nullable(grammar_option_list) = false
nullable(grammar_option) = false
nullable(grammar) = false
nullable(froms) = false
nullable(from_list) = false
nullable(from) = false
nullable(body) = false
nullable(assoc_list) = false
nullable(assoc) = false
first(tokens) = TokIgnore TokId
first(token_term_matches) = TokQuotedId TokQuestionMark TokInt TokId
first(token_list) = TokIgnore TokId
first(token_body) = TokLeftBrace
first(token) = TokIgnore TokId
first(term_sections) = TokTerms
first(term_section_list) = TokTerms
first(term_section) = TokTerms
first(term_params) = TokLeftBrack
first(term_param_list) = TokString TokInt TokId
first(term_param) = TokString TokInt TokId
first(term_options) = TokOption TokExtend
first(term_option_list) = TokOption TokExtend
first(term_option) = TokOption TokExtend
first(term_match_list) = TokQuotedId TokQuestionMark TokInt TokId
first(term_match) = TokQuotedId TokQuestionMark TokInt TokId
first(term_declaration_list) = TokDeclare
first(term_declaration) = TokDeclare
first(syntax_terms) = TokId
first(syntax_term_list_rev) = TokId
first(syntax_term) = TokId
first(syntax_subterms) = TokQuotedId TokId
first(syntax_subterm_list) = TokQuotedId TokId
first(syntax_subterm_base) = TokQuotedId
first(syntax_subterm) = TokQuotedId TokId
first(subterms_with_semi) = TokQuotedId TokQuestionMark TokInt TokId
first(subterms) = TokLeftBrace
first(subterm_list_with_semi) = TokQuotedId TokQuestionMark TokInt TokId
first(sub_term) = TokQuotedId TokQuestionMark TokInt TokId
first(string_list_rev) = TokString
first(string_list) = TokString
first(st_identifier) = TokId
first(simple_term) = TokQuotedId TokQuestionMark TokInt TokId
first(rules) = TokId
first(rule_list) = TokId
first(rule) = TokId
first(rewrites_section) = TokRewrites
first(rev_rewrites_section_list) = TokRewrites
first(rev_identifier_list_with_comma) = TokId
first(rev_identifier_list) = TokId
first(quoted_identifier) = TokQuotedId
first(productions) = TokId
first(prods) = TokPipe
first(prod_list_prim) = TokPipe
first(prod_list) = TokPipe
first(prod_body) = TokId
first(preamble) = TokLeftBrace
first(param_type_id) = TokId
first(opt_term_params) = TokLeftBrack
first(opt_term_matches) = TokQuotedId TokQuestionMark TokInt TokId
first(opt_term_declarations) = TokDeclare
first(opt_syntax_subterms) = TokQuotedId TokId
first(opt_subterm_list_semi) = TokQuotedId TokQuestionMark TokInt TokId
first(opt_rewrites_section) = TokRewrites
first(opt_prec) = TokPrec
first(opt_preamble) = TokLeftBrace
first(opt_lexer_options) = TokOption TokLongest TokFirst
first(opt_inline_forms) = TokInline
first(opt_grammar_options) = TokStart
first(opt_assocs) = TokRightAssoc TokNonAssoc TokLeftAssoc
first(new_rewrites) = TokQuotedId TokQuestionMark TokInt TokId
first(new_rewrite_list) = TokQuotedId TokQuestionMark TokInt TokId
first(new_rewrite) = TokQuotedId TokQuestionMark TokInt TokId
first(modules_rev) = TokId
first(module_name) = TokModule
first(module_identifier) = TokId
first(main) = TokModule
first(lexer_option_list) = TokOption TokLongest TokFirst
first(lexer_option) = TokOption TokLongest TokFirst
first(lexer) = TokTokens
first(inline_form_list_rev) = TokInline
first(inline_form) = TokInline
first(includes) = TokInclude
first(include_list_rev) = TokInclude
first(include_item) = TokInclude
first(identifiers_with_comma) = TokId
first(identifiers) = TokId
first(identifier) = TokId
first(grammar_option_list) = TokStart
first(grammar_option) = TokStart
first(grammar) = TokGrammar
first(froms) = TokQuotedId TokQuestionMark TokInt TokId
first(from_list) = TokQuotedId TokQuestionMark TokInt TokId
first(from) = TokQuotedId TokQuestionMark TokInt TokId
first(body) = TokLeftBrace
first(assoc_list) = TokRightAssoc TokNonAssoc TokLeftAssoc
first(assoc) = TokRightAssoc TokNonAssoc TokLeftAssoc
follow(tokens) = TokRightBrace
follow(token_term_matches) = TokRightBrace
follow(token_list) = TokRightBrace TokIgnore TokId
follow(token_body) = TokRightBrace TokIgnore TokId
follow(token) = TokRightBrace TokIgnore TokId
follow(term_sections) = TokTokens TokLeftBrace
follow(term_section_list) = TokTokens TokTerms TokLeftBrace
follow(term_section) = TokTokens TokTerms TokLeftBrace
follow(term_params) = TokSemi TokRightBrace TokQuotedId TokQuestionMark TokPipe TokLeftBrace TokInt TokInline TokId TokEof TokArrow
follow(term_param_list) = TokString TokRightBrack TokInt TokId
follow(term_param) = TokString TokRightBrack TokInt TokId
follow(term_options) = TokTokens TokTerms TokLeftBrace
follow(term_option_list) = TokTokens TokTerms TokOption TokLeftBrace TokExtend
follow(term_option) = TokTokens TokTerms TokOption TokLeftBrace TokExtend
follow(term_match_list) = TokRightBrace TokPipe
follow(term_match) = TokRightBrace TokPipe
follow(term_declaration_list) = TokRightBrace TokDeclare
follow(term_declaration) = TokRightBrace TokDeclare
follow(syntax_terms) = TokRightBrace TokDeclare
follow(syntax_term_list_rev) = TokRightBrace TokDeclare TokComma
follow(syntax_term) = TokRightBrace TokDeclare TokComma
follow(syntax_subterms) = TokRightBrace
follow(syntax_subterm_list) = TokSemi TokRightBrace
follow(syntax_subterm_base) = TokSemi TokRightBrace
follow(syntax_subterm) = TokSemi TokRightBrace
follow(subterms_with_semi) = TokRightBrace
follow(subterms) = TokSemi TokRightBrace TokQuotedId TokQuestionMark TokPipe TokInt TokInline TokId TokEof TokArrow
follow(subterm_list_with_semi) = TokSemi TokRightBrace
follow(sub_term) = TokSemi TokRightBrace
follow(string_list_rev) = TokTerms TokString TokInclude
follow(string_list) = TokTerms TokString TokInclude
follow(st_identifier) = TokRightBrace TokLeftBrace TokDeclare TokComma
follow(simple_term) = TokSemi TokRightBrace TokQuotedId TokQuestionMark TokPipe TokInt TokInline TokId TokEof TokArrow
follow(rules) = TokRightBrace
follow(rule_list) = TokRightBrace TokId
follow(rule) = TokRightBrace TokId
follow(rewrites_section) = TokRewrites TokInline TokEof
follow(rev_rewrites_section_list) = TokRewrites TokInline TokEof
follow(rev_identifier_list_with_comma) = TokDot TokComma
follow(rev_identifier_list) = TokRightAssoc TokPrec TokNonAssoc TokLeftBrace TokLeftAssoc TokId TokGrammar TokDoubledArrow
follow(quoted_identifier) = TokSemi TokRightBrack TokRightBrace TokQuotedId TokQuestionMark TokPipe TokLeftBrack TokInt TokInline TokId TokEof TokArrow
follow(productions) = TokRightBrace TokId
follow(prods) = TokRightBrace TokId
follow(prod_list_prim) = TokRightBrace TokPipe TokId
follow(prod_list) = TokRightBrace TokPipe TokId
follow(prod_body) = TokRightBrace TokPipe TokId
follow(preamble) = TokTokens
follow(param_type_id) = TokString TokRightBrack TokInt TokId
follow(opt_term_params) = TokLeftBrace
follow(opt_term_matches) = TokRightBrace
follow(opt_term_declarations) = TokRightBrace
follow(opt_syntax_subterms) = TokRightBrace
follow(opt_subterm_list_semi) = TokRightBrace
follow(opt_rewrites_section) = TokInline TokEof
follow(opt_prec) = TokLeftBrace TokDoubledArrow
follow(opt_preamble) = TokTokens
follow(opt_lexer_options) = TokLeftBrace
follow(opt_inline_forms) = TokEof
follow(opt_grammar_options) = TokLeftBrace
follow(opt_assocs) = TokGrammar
follow(new_rewrites) = TokRightBrace
follow(new_rewrite_list) = TokRightBrace TokQuotedId TokQuestionMark TokInt TokId
follow(new_rewrite) = TokRightBrace TokQuotedId TokQuestionMark TokInt TokId
follow(modules_rev) = TokLeftBrack TokLeftBrace TokBang
follow(module_name) = TokTerms TokInclude
follow(module_identifier) = TokLeftBrack TokLeftBrace
follow(main) = #
follow(lexer_option_list) = TokOption TokLongest TokLeftBrace TokFirst
follow(lexer_option) = TokOption TokLongest TokLeftBrace TokFirst
follow(lexer) = TokRightAssoc TokNonAssoc TokLeftAssoc TokGrammar
follow(inline_form_list_rev) = TokInline TokEof
follow(inline_form) = TokInline TokEof
follow(includes) = TokTerms
follow(include_list_rev) = TokTerms TokInclude
follow(include_item) = TokTerms TokInclude
follow(identifiers_with_comma) = TokDot
follow(identifiers) = TokRightAssoc TokPrec TokNonAssoc TokLeftBrace TokLeftAssoc TokGrammar TokDoubledArrow
follow(identifier) = TokTerms TokStart TokRightBrace TokRightAssoc TokQuotedId TokQuestionMark TokPrec TokNonAssoc TokLeftBrack TokLeftBrace TokLeftAssoc TokInt TokInclude TokId TokGrammar TokDoubledArrow TokDot TokDeclare TokComma TokBang TokArrow
follow(grammar_option_list) = TokStart TokLeftBrace
follow(grammar_option) = TokStart TokLeftBrace
follow(grammar) = TokRewrites TokInline TokEof
follow(froms) = TokArrow
follow(from_list) = TokQuotedId TokQuestionMark TokInt TokId TokArrow
follow(from) = TokQuotedId TokQuestionMark TokInt TokId TokArrow
follow(body) = TokRightBrace TokPipe TokId
follow(assoc_list) = TokRightAssoc TokNonAssoc TokLeftAssoc TokGrammar
follow(assoc) = TokRightAssoc TokNonAssoc TokLeftAssoc TokGrammar
Built an LR(0) automaton with 217 states.
The grammar is SLR(1).
Built an LR(1) automaton with 217 states.
270
101 out of 217 states have a default reduction.
271 272 273 274 275 276
62 out of 217 states are represented.
0 out of 129 symbols keep track of their start position.
0 out of 129 symbols keep track of their end position.
84 out of 150 productions exploit shiftreduce optimization.
0 out of 217 states can peek at an error.
677 functions before inlining, 87 functions after inlining.