slot

package
v0.0.0-...-d977049 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: Apache-2.0 Imports: 4 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 (
	GoGLL0R0 Label = iota
	GoGLL0R1
	GoGLL0R2
	LexAlternates0R0
	LexAlternates0R1
	LexAlternates1R0
	LexAlternates1R1
	LexAlternates1R2
	LexAlternates1R3
	LexBracket0R0
	LexBracket0R1
	LexBracket1R0
	LexBracket1R1
	LexBracket2R0
	LexBracket2R1
	LexBracket3R0
	LexBracket3R1
	LexGroup0R0
	LexGroup0R1
	LexGroup0R2
	LexGroup0R3
	LexOneOrMore0R0
	LexOneOrMore0R1
	LexOneOrMore0R2
	LexOneOrMore0R3
	LexOptional0R0
	LexOptional0R1
	LexOptional0R2
	LexOptional0R3
	LexRule0R0
	LexRule0R1
	LexRule0R2
	LexRule0R3
	LexRule0R4
	LexRule1R0
	LexRule1R1
	LexRule1R2
	LexRule1R3
	LexRule1R4
	LexRule1R5
	LexSymbol0R0
	LexSymbol0R1
	LexSymbol1R0
	LexSymbol1R1
	LexSymbol1R2
	LexSymbol2R0
	LexSymbol2R1
	LexSymbol3R0
	LexSymbol3R1
	LexSymbol4R0
	LexSymbol4R1
	LexSymbol4R2
	LexSymbol5R0
	LexSymbol5R1
	LexZeroOrMore0R0
	LexZeroOrMore0R1
	LexZeroOrMore0R2
	LexZeroOrMore0R3
	OrderedAlternates0R0
	OrderedAlternates0R1
	OrderedAlternates1R0
	OrderedAlternates1R1
	OrderedAlternates1R2
	OrderedAlternates1R3
	Package0R0
	Package0R1
	Package0R2
	RegExp0R0
	RegExp0R1
	RegExp1R0
	RegExp1R1
	RegExp1R2
	Rule0R0
	Rule0R1
	Rule1R0
	Rule1R1
	Rules0R0
	Rules0R1
	Rules1R0
	Rules1R1
	Rules1R2
	SyntaxAlternate0R0
	SyntaxAlternate0R1
	SyntaxAlternate1R0
	SyntaxAlternate1R1
	SyntaxAlternates0R0
	SyntaxAlternates0R1
	SyntaxAlternates1R0
	SyntaxAlternates1R1
	SyntaxAlternates1R2
	SyntaxAlternates1R3
	SyntaxAlternates2R0
	SyntaxAlternates2R1
	SyntaxAlternates2R2
	SyntaxAlternates2R3
	SyntaxAtom0R0
	SyntaxAtom0R1
	SyntaxAtom1R0
	SyntaxAtom1R1
	SyntaxAtom2R0
	SyntaxAtom2R1
	SyntaxRule0R0
	SyntaxRule0R1
	SyntaxRule0R2
	SyntaxRule0R3
	SyntaxRule0R4
	SyntaxSuffix0R0
	SyntaxSuffix0R1
	SyntaxSuffix0R2
	SyntaxSuffix1R0
	SyntaxSuffix1R1
	SyntaxSuffix1R2
	SyntaxSuffix2R0
	SyntaxSuffix2R1
	SyntaxSuffix2R2
	SyntaxSymbol0R0
	SyntaxSymbol0R1
	SyntaxSymbol0R2
	SyntaxSymbol1R0
	SyntaxSymbol1R1
	SyntaxSymbol1R2
	SyntaxSymbol2R0
	SyntaxSymbol2R1
	SyntaxSymbol3R0
	SyntaxSymbol3R1
	SyntaxSymbols0R0
	SyntaxSymbols0R1
	SyntaxSymbols1R0
	SyntaxSymbols1R1
	SyntaxSymbols1R2
	UnicodeClass0R0
	UnicodeClass0R1
	UnicodeClass1R0
	UnicodeClass1R1
	UnicodeClass2R0
	UnicodeClass2R1
	UnicodeClass3R0
	UnicodeClass3R1
	UnorderedAlternates0R0
	UnorderedAlternates0R1
	UnorderedAlternates1R0
	UnorderedAlternates1R1
	UnorderedAlternates1R2
	UnorderedAlternates1R3
)

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) FirstContains

func (l Label) FirstContains(typ token.Type) bool

func (Label) Head

func (l Label) Head() symbols.NT

func (Label) Index

func (l Label) Index() Index

func (Label) IsNullable

func (l Label) IsNullable() bool

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

func (*Slot) Successor

func (s *Slot) Successor() *Slot

Jump to

Keyboard shortcuts

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