grammar

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionTypeShift  = ActionType("shift")
	ActionTypeReduce = ActionType("reduce")
	ActionTypeError  = ActionType("error")
)
View Source
const (
	GoToTypeRegistered = GoToType("registered")
	GoToTypeError      = GoToType("error")
)
View Source
const (
	ResolvedByPrec      conflictResolutionMethod = 1
	ResolvedByAssoc     conflictResolutionMethod = 2
	ResolvedByShift     conflictResolutionMethod = 3
	ResolvedByProdOrder conflictResolutionMethod = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionType

type ActionType string

type BuildOption added in v0.6.0

type BuildOption func(config *buildConfig)

func EnableReporting added in v0.5.0

func EnableReporting() BuildOption

type GoToType

type GoToType string

type Grammar

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

type GrammarBuilder

type GrammarBuilder struct {
	AST *parser.RootNode
	// contains filtered or unexported fields
}

func (*GrammarBuilder) Build

type ParsingTable

type ParsingTable struct {
	InitialState stateNum
	// contains filtered or unexported fields
}

Directories

Path Synopsis
dfa

Jump to

Keyboard shortcuts

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