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 (
	CLOSE0R0 Label = iota
	CLOSE0R1
	CLOSE0R2
	CLOSE1F0
	DIVIDE0R0
	DIVIDE0R1
	DIVIDE0R2
	DIVIDE1F0
	ELEMENT0R0
	ELEMENT0R1
	ELEMENT0R2
	ELEMENT0R3
	ELEMENT1M0
	ELEMENT1R0
	ELEMENT1M1
	ELEMENT1R1
	ELEMENT2F0
	EXPR0R0
	EXPR0R1
	EXPR0R2
	EXPR1F0
	MINUS0R0
	MINUS0R1
	MINUS0R2
	MINUS1F0
	Number0R0
	Number0R1
	Number0R2
	Number1F0
	OPEN0R0
	OPEN0R1
	OPEN0R2
	OPEN1F0
	PLUS0R0
	PLUS0R1
	PLUS0R2
	PLUS1F0
	PLUSorMINUS0R0
	PLUSorMINUS0R1
	PLUSorMINUS0R2
	PLUSorMINUS1M0
	PLUSorMINUS1R0
	PLUSorMINUS1M1
	PLUSorMINUS1R1
	PLUSorMINUS1M2
	PLUSorMINUS1R2
	PLUSorMINUS2F0
	PRODUCT0R0
	PRODUCT0R1
	PRODUCT0R2
	PRODUCT1F0
	SUM0R0
	SUM0R1
	SUM0R2
	SUM1F0
	SuffPLUSorMINUS0R0
	SuffPLUSorMINUS0R1
	SuffPLUSorMINUS0R2
	SuffPLUSorMINUS1R0
	SuffTIMESorDIVIDE0R0
	SuffTIMESorDIVIDE0R1
	SuffTIMESorDIVIDE0R2
	SuffTIMESorDIVIDE1R0
	TIMES0R0
	TIMES0R1
	TIMES0R2
	TIMES1F0
	TIMESorDIVIDE0R0
	TIMESorDIVIDE0R1
	TIMESorDIVIDE0R2
	TIMESorDIVIDE1M0
	TIMESorDIVIDE1R0
	TIMESorDIVIDE1M1
	TIMESorDIVIDE1R1
	TIMESorDIVIDE1M2
	TIMESorDIVIDE1R2
	TIMESorDIVIDE2F0
	WS0R0
	WS0R1
	WS1R0
)

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

func (l Label) IsLookahead() bool

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