first

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type First

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

func New

func New(prods []*basicprod.Production) *First

func (*First) AddNonTerminals

func (this *First) AddNonTerminals(prods []*basicprod.Production)

func (*First) AddTerminals

func (this *First) AddTerminals()

func (*First) FirstString

func (this *First) FirstString(s []string, context ...string) (fs FirstSet)

func (*First) FirstSymbol

func (this *First) FirstSymbol(sym string) FirstSet

func (*First) String

func (this *First) String() string

type FirstSet

type FirstSet []string

func (FirstSet) Add

func (this FirstSet) Add(sym ...string) (fs FirstSet, new bool)

func (FirstSet) Contain

func (this FirstSet) Contain(sym string) bool

func (FirstSet) Equal

func (this FirstSet) Equal(that FirstSet) bool

func (FirstSet) Min

func (this FirstSet) Min(sym string) FirstSet

Return this - {sym}

func (FirstSet) Size

func (this FirstSet) Size() int

func (FirstSet) String

func (this FirstSet) String() string

Jump to

Keyboard shortcuts

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