Fix handling of ubiquitous tokens used in grammar rules
This commit is contained in:
parent
59cc65c2e3
commit
83a1b9439e
30 changed files with 39086 additions and 32890 deletions
|
|
@ -39,7 +39,11 @@ namespace tree_sitter {
|
|||
}
|
||||
|
||||
ParseAction ParseAction::ShiftExtra() {
|
||||
return ParseAction(ParseActionTypeShiftExtra, -1, Symbol(-1), 0, set<int>({}));
|
||||
return ParseAction(ParseActionTypeShiftExtra, -1, Symbol(-1), 0, { 0 });
|
||||
}
|
||||
|
||||
ParseAction ParseAction::ReduceExtra(Symbol symbol) {
|
||||
return ParseAction(ParseActionTypeReduceExtra, -1, symbol, 0, { 0 });
|
||||
}
|
||||
|
||||
ParseAction ParseAction::Reduce(Symbol symbol, size_t consumed_symbol_count, int precedence) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue