Remove auxiliary rules from syntax tree
This commit is contained in:
parent
c3b65d22bf
commit
7d297f2f9e
15 changed files with 1107 additions and 724 deletions
|
|
@ -20,7 +20,7 @@ namespace tree_sitter {
|
|||
auto non_terminal = pair.first;
|
||||
auto terminals = pair.second;
|
||||
for (rules::Symbol terminal : terminals) {
|
||||
auto next_item = ParseItem(non_terminal, grammar.rule(non_terminal), 0, terminal);
|
||||
auto next_item = ParseItem(non_terminal, grammar.rule(non_terminal), {}, terminal);
|
||||
add_item(item_set, next_item, grammar);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue