Cache state transition computations by grammar rule
This results in a huge speed increase
This commit is contained in:
parent
4eece88e18
commit
4dd1f9fbce
5 changed files with 8925 additions and 9053 deletions
|
|
@ -18,8 +18,8 @@ namespace tree_sitter {
|
|||
bool operator==(const ParseItem &other) const;
|
||||
int precedence() const;
|
||||
|
||||
const size_t consumed_symbol_count;
|
||||
const rules::ISymbol lookahead_sym;
|
||||
size_t consumed_symbol_count;
|
||||
rules::ISymbol lookahead_sym;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream &stream, const ParseItem &item);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue