slot

package
v1.0.5-0...-6201250 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 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 (
	Array0R0 Label = iota
	Array0R1
	Array0R2
	Array1R0
	Array1R1
	Array1R2
	Array1R3
	GoGLL0R0
	GoGLL0R1
	Member0R0
	Member0R1
	Member0R2
	Member0R3
	Members0R0
	Members0R1
	Members1R0
	Members1R1
	Members1R2
	Members1R3
	Object0R0
	Object0R1
	Object0R2
	Object1R0
	Object1R1
	Object1R2
	Object1R3
	Value0R0
	Value0R1
	Value1R0
	Value1R1
	Value2R0
	Value2R1
	Value3R0
	Value3R1
	Value4R0
	Value4R1
	Value5R0
	Value5R1
	Value6R0
	Value6R1
	Values0R0
	Values0R1
	Values1R0
	Values1R1
	Values1R2
	Values1R3
)

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