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 = 16

Variables

This section is empty.

Functions

This section is empty.

Types

type L

type L int

L is the type of lookahead symbols

func (L) ArgSymbol

func (lk L) ArgSymbol() Symbol

func (L) IsLookahead

func (L) IsLookahead() bool

func (L) IsNegative

func (lk L) IsNegative() bool

func (L) IsNonTerminal

func (L) IsNonTerminal() bool

func (L) IsPositive

func (lk L) IsPositive() bool

func (L) String

func (lk L) String() string

type NT

type NT int

NT is the type of non-terminals symbols

const (
	NT_CLOSE NT = iota
	NT_DIVIDE
	NT_ELEMENT
	NT_EXPR
	NT_MINUS
	NT_Number
	NT_OPEN
	NT_PLUS
	NT_PLUSorMINUS
	NT_PRODUCT
	NT_SUM
	NT_SuffPLUSorMINUS
	NT_SuffTIMESorDIVIDE
	NT_TIMES
	NT_TIMESorDIVIDE
	NT_WS
)

func (NT) IsLookahead

func (NT) IsLookahead() bool

func (NT) IsNonTerminal

func (NT) IsNonTerminal() bool

func (NT) IsOrdered

func (nt NT) IsOrdered() 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
	IsLookahead() 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          // repNumber1x
	T_7          // sp
)

func (T) IsLookahead

func (T) IsLookahead() bool

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