Refactor construction of out-of-context states

This commit is contained in:
Max Brunsfeld 2016-04-25 21:59:40 -07:00
parent e99a3925e0
commit 31f6b2e24a
7 changed files with 51 additions and 41 deletions

View file

@ -102,8 +102,8 @@ class ParseTable {
ParseAction action);
std::vector<ParseState> states;
ParseState error_state;
std::map<rules::Symbol, ParseTableSymbolMetadata> symbols;
std::map<rules::Symbol, size_t> out_of_context_state_indices;
};
} // namespace tree_sitter