Restructure parse state merging logic
* Remove remnants of templatized remove_duplicate_states function * Rename recovery_tokens function to get_compatible_tokens and augment it also compute pairs of tokens which could potentially be incompatible
This commit is contained in:
parent
8d3b72e1d9
commit
3c8e6f9987
13 changed files with 274 additions and 252 deletions
|
|
@ -93,7 +93,6 @@ class ParseTable {
|
|||
ParseStateId add_state();
|
||||
ParseAction &add_terminal_action(ParseStateId state_id, rules::Symbol, ParseAction);
|
||||
void set_nonterminal_action(ParseStateId, rules::Symbol::Index, ParseStateId);
|
||||
bool merge_state(size_t i, size_t j);
|
||||
|
||||
std::vector<ParseState> states;
|
||||
std::map<rules::Symbol, ParseTableSymbolMetadata> symbols;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue