Don’t pass rule names to code generator separately from parse tables
This commit is contained in:
parent
b85b15db42
commit
5eb5b61c14
7 changed files with 41 additions and 44 deletions
|
|
@ -66,6 +66,7 @@ namespace tree_sitter {
|
|||
}
|
||||
|
||||
void ParseTable::add_action(size_t state_index, string sym_name, ParseAction action) {
|
||||
symbol_names.insert(sym_name);
|
||||
states[state_index].actions[sym_name].insert(action);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue