internal

package
v0.1.22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 1 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL