pub type Action = ParserAction<StateID, ProdID, AmbigID>;Aliased Type§
pub enum Action {
Error,
Accept,
Shift(StateID),
Reduce(ProdID),
Ambig(AmbigID),
Goto(StateID),
}Variants§
Error
Indicates a parsing error.
Accept
Signals successful parsing (accepting the input).
Shift(StateID)
Shifts the next token and transitions to the given parser state.
Reduce(ProdID)
Reduces by the given production rule.
Ambig(AmbigID)
Handles an ambiguity represented by the given ambiguity ID.
Goto(StateID)
Performs a goto transition to the given parser state.