Introduce Symbol::Index type alias
This commit is contained in:
parent
1fddb124b3
commit
1118a9142a
18 changed files with 130 additions and 97 deletions
|
|
@ -75,8 +75,8 @@ class ParseState {
|
|||
void each_referenced_state(std::function<void(ParseStateId *)>);
|
||||
bool has_shift_action() const;
|
||||
|
||||
std::map<int, ParseTableEntry> terminal_entries;
|
||||
std::map<int, ParseStateId> nonterminal_entries;
|
||||
std::map<rules::Symbol::Index, ParseTableEntry> terminal_entries;
|
||||
std::map<rules::Symbol::Index, ParseStateId> nonterminal_entries;
|
||||
LexStateId lex_state_id;
|
||||
};
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ class ParseTable {
|
|||
std::vector<ParseState> states;
|
||||
std::map<rules::Symbol, ParseTableSymbolMetadata> symbols;
|
||||
|
||||
std::set<rules::Symbol> mergeable_symbols;
|
||||
std::set<rules::Symbol::Index> mergeable_symbols;
|
||||
};
|
||||
|
||||
} // namespace tree_sitter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue