symbols

package
v0.9.16 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package symbols is generated by gogll. Do not edit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNT added in v0.9.7

func IsNT(sym string) bool

IsNT returns true iff sym is a non-terminal symbol of the grammar

Types

type NT

type NT int

NT is the type of non-terminals symbols

const (
	NT_AbbreviatedAbsoluteLocationPath NT = iota
	NT_AbbreviatedAxisSpecifier
	NT_AbbreviatedRelativeLocationPath
	NT_AbbreviatedStep
	NT_AbbreviatedStepParent
	NT_AbbreviatedStepSelf
	NT_AbsoluteLocationPath
	NT_AbsoluteLocationPathOnly
	NT_AbsoluteLocationPathWithRelative
	NT_AdditiveExpr
	NT_AdditiveExprAdd
	NT_AdditiveExprSubtract
	NT_AndExpr
	NT_AndExprAnd
	NT_AxisName
	NT_AxisSpecifier
	NT_AxisSpecifierWithAxisName
	NT_EqualityExpr
	NT_EqualityExprEqual
	NT_EqualityExprNotEqual
	NT_FilterExpr
	NT_FilterExprWithPredicate
	NT_FunctionCall
	NT_FunctionCallArgumentList
	NT_FunctionCallArgumentListArgWithNext
	NT_FunctionCallArgumentListEndArg
	NT_FunctionSignature
	NT_FunctionSignatureNoArgs
	NT_Literal
	NT_LocationPath
	NT_MultiplicativeExpr
	NT_MultiplicativeExprDivide
	NT_MultiplicativeExprMod
	NT_MultiplicativeExprMultiply
	NT_NameTestAnyElement
	NT_NameTestLocalAnyNamespace
	NT_NameTestLocalAnyNamespaceReservedNameConflict
	NT_NameTestNamespaceAnyLocal
	NT_NameTestNamespaceAnyLocalReservedNameConflict
	NT_NameTestQNameLocalOnly
	NT_NameTestQNameLocalOnlyReservedNameConflict
	NT_NameTestQNameNamespaceWithLocal
	NT_NameTestQNameNamespaceWithLocalReservedNameConflictBoth
	NT_NameTestQNameNamespaceWithLocalReservedNameConflictLocal
	NT_NameTestQNameNamespaceWithLocalReservedNameConflictNamespace
	NT_NodeTest
	NT_NodeTestAndPredicate
	NT_NodeTestNodeTypeNoArgTest
	NT_NodeTestProcInstTargetTest
	NT_NodeType
	NT_Number
	NT_OrExpr
	NT_OrExprOr
	NT_PathExpr
	NT_PathExprFilterWithAbbreviatedPath
	NT_PathExprFilterWithPath
	NT_Predicate
	NT_PrimaryExpr
	NT_PrimaryExprParenthetic
	NT_QName
	NT_QNameLocalOnly
	NT_QNameNamespaceWithLocal
	NT_RelationalExpr
	NT_RelationalExprGreaterThan
	NT_RelationalExprGreaterThanOrEqual
	NT_RelationalExprLessThan
	NT_RelationalExprLessThanOrEqual
	NT_RelativeLocationPath
	NT_RelativeLocationPathWithStep
	NT_ReservedNameConflictResolver
	NT_Step
	NT_StepWithAxisAndNodeTest
	NT_StepWithAxisAndNodeTestAndPredicate
	NT_StepWithPredicate
	NT_StepWithPredicateWithAnotherPredicate
	NT_UnaryExpr
	NT_UnaryExprNegate
	NT_UnionExpr
	NT_UnionExprUnion
	NT_VariableReference
)

func ToNT added in v0.9.7

func ToNT(sym string) NT

ToNT returns the NT value of sym or panics if sym is not a non-terminal of the grammar

func (NT) IsNonTerminal

func (NT) IsNonTerminal() bool

func (NT) String

func (nt NT) String() string

type Symbol

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

type Symbols

type Symbols []Symbol

func (Symbols) Equal added in v0.9.7

func (ss Symbols) Equal(ss1 Symbols) bool

func (Symbols) String added in v0.9.7

func (ss Symbols) String() string

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          // =
	T_16          // >
	T_17          // >=
	T_18          // @
	T_19          // [
	T_20          // ]
	T_21          // ancestor
	T_22          // ancestor-or-self
	T_23          // and
	T_24          // attribute
	T_25          // child
	T_26          // comment
	T_27          // descendant
	T_28          // descendant-or-self
	T_29          // digits
	T_30          // div
	T_31          // doublequote
	T_32          // following
	T_33          // following-sibling
	T_34          // mod
	T_35          // namespace
	T_36          // ncname
	T_37          // node
	T_38          // or
	T_39          // parent
	T_40          // preceding
	T_41          // preceding-sibling
	T_42          // processing-instruction
	T_43          // self
	T_44          // singlequote
	T_45          // text
	T_46          // variableReference
	T_47          // |
)

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