In parse table, store symbols as Symbol objects, not strings
This commit is contained in:
parent
0877d01194
commit
ca33c3942a
20 changed files with 262 additions and 262 deletions
|
|
@ -24,7 +24,7 @@ namespace tree_sitter {
|
|||
|
||||
void visit(const Symbol *rule) {
|
||||
if (grammar.has_definition(*rule)) {
|
||||
value = apply(grammar.rule(rule->name), grammar);
|
||||
value = apply(grammar.rule(*rule), grammar);
|
||||
} else {
|
||||
value = set<Symbol>({ *rule });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue