Use different types for advance and accept-token actions
Unlike with parse actions, lexical actions of different types never appear in the same places in the table
This commit is contained in:
parent
1ec39abe6a
commit
6401a065ae
13 changed files with 147 additions and 185 deletions
|
|
@ -81,7 +81,7 @@ class ParseState {
|
|||
ParseState();
|
||||
std::set<rules::Symbol> expected_inputs() const;
|
||||
bool operator==(const ParseState &) const;
|
||||
void each_action(std::function<void(ParseAction *)>);
|
||||
void each_advance_action(std::function<void(ParseAction *)>);
|
||||
|
||||
std::map<rules::Symbol, std::vector<ParseAction>> actions;
|
||||
LexStateId lex_state_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue