Cache state transition computations by grammar rule

This results in a huge speed increase
This commit is contained in:
Max Brunsfeld 2014-04-27 23:03:37 -07:00
parent 4eece88e18
commit 4dd1f9fbce
5 changed files with 8925 additions and 9053 deletions

View file

@ -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);