gslot

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package gslot implements grammar slots

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GSlot

type GSlot struct {
	// contains filtered or unexported fields
}

func New

func New(g *ast.Grammar, ff *frstflw.FF) *GSlot

func (*GSlot) Slots

func (gs *GSlot) Slots() Slots

type Label

type Label struct {
	Head      string
	Alternate int
	Pos       int
	// contains filtered or unexported fields
}

func NewLabel

func NewLabel(head string, alt, pos int, gs *GSlot, ff *frstflw.FF) *Label

func (Label) IsEoR

func (s Label) IsEoR() bool

func (Label) IsFiR

func (s Label) IsFiR() bool

func (Label) Label

func (s Label) Label() string

func (Label) String

func (s Label) String() string

func (Label) Symbols

func (s Label) Symbols() symbols.Symbols

type Slots

type Slots []Label

func (Slots) Labels

func (ss Slots) Labels() (labels []string)

func (Slots) Len

func (ss Slots) Len() int

func (Slots) Less

func (ss Slots) Less(i, j int) bool

func (Slots) Swap

func (ss Slots) Swap(i, j int)

Jump to

Keyboard shortcuts

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