WIP: New check for mergable symbols in merge_state
This commit is contained in:
parent
82c9385518
commit
14bae584d4
3 changed files with 11 additions and 1 deletions
|
|
@ -112,7 +112,11 @@ class ParseTableBuilder {
|
|||
void build_error_parse_state() {
|
||||
ParseState error_state;
|
||||
|
||||
for (const Symbol &symbol : recovery_tokens(lexical_grammar))
|
||||
auto recovery_symbols = recovery_tokens(lexical_grammar);
|
||||
|
||||
parse_table.mergeable_symbols.insert(recovery_symbols.begin(), recovery_symbols.end());
|
||||
|
||||
for (const Symbol &symbol : recovery_symbols)
|
||||
add_out_of_context_parse_state(&error_state, symbol);
|
||||
|
||||
for (const Symbol &symbol : grammar.extra_tokens)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue