Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionType ¶
type ActionType int8
ActionType is the action type.
const ( // ActErrorType is the error action type. ActErrorType ActionType = iota // ERROR // ActShiftType is the shift action type. ActShiftType // SHIFT // ActReduceType is the reduce action type. ActReduceType // REDUCE // ActAcceptType is the accept action type. ActAcceptType // ACCEPT )
func (ActionType) String ¶
func (i ActionType) String() string
type TokenTyper ¶
type TokenTyper interface { ~int // String returns the literal name of the token type. // // Returns: // - string: The literal name of the token type. String() string // IsTerminal checks whether the token type is a terminal. // // Returns: // - bool: True if the token type is a terminal, false otherwise. IsTerminal() bool }
TokenTyper is an interface for token types.
Click to show internal directories.
Click to hide internal directories.