symbols

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

Documentation

Overview

Package symbols is generated by gogll. Do not edit.

Index

Constants

View Source
const NumNTs = 23

Variables

This section is empty.

Functions

This section is empty.

Types

type NT

type NT int

NT is the type of non-terminals symbols

const (
	NT_GoGLL NT = iota
	NT_LexAlternates
	NT_LexBracket
	NT_LexGroup
	NT_LexOneOrMore
	NT_LexOptional
	NT_LexRule
	NT_LexSymbol
	NT_LexZeroOrMore
	NT_OrderedAlternates
	NT_Package
	NT_RegExp
	NT_Rule
	NT_Rules
	NT_SyntaxAlternate
	NT_SyntaxAlternates
	NT_SyntaxAtom
	NT_SyntaxRule
	NT_SyntaxSuffix
	NT_SyntaxSymbol
	NT_SyntaxSymbols
	NT_UnicodeClass
	NT_UnorderedAlternates
)

func (NT) IsNonTerminal

func (NT) IsNonTerminal() bool

func (NT) LeftRec

func (nt NT) LeftRec() NTs

func (NT) String

func (nt NT) String() string

type NTs

type NTs []NT

type Symbol

type Symbol interface {
	IsNonTerminal() bool
	String() string
	// contains filtered or unexported methods
}

type Symbols

type Symbols []Symbol

func (Symbols) Strings

func (ss Symbols) Strings() []string

type T

type T int

T is the type of terminals symbols

const (
	T_0  T = iota // !
	T_1           // &
	T_2           // (
	T_3           // )
	T_4           // *
	T_5           // +
	T_6           // .
	T_7           // /
	T_8           // :
	T_9           // ;
	T_10          // <
	T_11          // >
	T_12          // ?
	T_13          // [
	T_14          // ]
	T_15          // any
	T_16          // char_lit
	T_17          // empty
	T_18          // letter
	T_19          // lowcase
	T_20          // not
	T_21          // nt
	T_22          // number
	T_23          // package
	T_24          // string_lit
	T_25          // tokid
	T_26          // upcase
	T_27          // {
	T_28          // |
	T_29          // }
)

func (T) IsNonTerminal

func (T) IsNonTerminal() bool

func (T) String

func (t T) String() string

Jump to

Keyboard shortcuts

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