slot

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package slot is generated by gogll. Do not edit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	NT  symbols.NT
	Alt int
	Pos int
}

type Label

type Label int
const (
	Data0R0 Label = iota
	Data0R1
	Data1R0
	Data1R1
	Data2R0
	Data2R1
	Data3R0
	Data3R1
	Data4R0
	Data4R1
	DataList0R0
	DataList0R1
	DataList1R0
	DataList1R1
	DataList1R2
	DataList1R3
	FuncCall0R0
	FuncCall0R1
	FuncCall0R2
	FuncCall0R3
	FuncCall0R4
	FuncCall1R0
	FuncCall1R1
	FuncCall1R2
	FuncCall1R3
	Import0R0
	Import0R1
	Import0R2
	Number0R0
	Number0R1
	Number1R0
	Number1R1
	Operation0R0
	Operation0R1
	Operation0R2
	Operation0R3
	Orion0R0
	Orion0R1
	Orion0R2
	Package0R0
	Package0R1
	Package0R2
	Statement0R0
	Statement0R1
	Statement1R0
	Statement1R1
	Statement2R0
	Statement2R1
	Statements0R0
	Statements0R1
	Statements1R0
	Statements1R1
	Statements1R2
	String0R0
	String0R1
	Variable0R0
	Variable0R1
	VariableDef0R0
	VariableDef0R1
	VariableDef0R2
	VariableDef0R3
	VariableDef1R0
	VariableDef1R1
	VariableDef1R2
	VariableDef1R3
	VariableDef1R4
	VariableDef1R5
)

func GetAlternates

func GetAlternates(nt symbols.NT) []Label

func GetLabel

func GetLabel(nt symbols.NT, alt, pos int) Label

func (Label) Alternate

func (l Label) Alternate() int

func (Label) EoR

func (l Label) EoR() bool

func (Label) Head

func (l Label) Head() symbols.NT

func (Label) Index

func (l Label) Index() Index

func (Label) Pos

func (l Label) Pos() int

func (Label) Slot

func (l Label) Slot() *Slot

func (Label) String

func (l Label) String() string

func (Label) Symbols

func (l Label) Symbols() symbols.Symbols

type Slot

type Slot struct {
	NT      symbols.NT
	Alt     int
	Pos     int
	Symbols symbols.Symbols
	Label   Label
}

func (*Slot) EoR

func (s *Slot) EoR() bool

func (*Slot) String

func (s *Slot) String() string

Jump to

Keyboard shortcuts

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