symbols

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharLitSymbols

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

key: string of symbols - string(ast.CharLit.Lit). E.g.: "'a'"

func NewCharLitSymbols

func NewCharLitSymbols() *CharLitSymbols

func (*CharLitSymbols) Add

func (this *CharLitSymbols) Add(cl *ast.LexCharLit)

func (*CharLitSymbols) GetSymbolId

func (this *CharLitSymbols) GetSymbolId(id string) (sym *ast.LexCharLit, exist bool)

func (*CharLitSymbols) Len

func (this *CharLitSymbols) Len() int

func (*CharLitSymbols) List

func (this *CharLitSymbols) List() []*ast.LexCharLit

func (*CharLitSymbols) StringList

func (this *CharLitSymbols) StringList() []string

type CharRangeSymbols

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

key: string of range, e.g.: 'a'-'z'

func NewCharRangeSymbols

func NewCharRangeSymbols() *CharRangeSymbols

func (*CharRangeSymbols) Add

func (this *CharRangeSymbols) Add(cr *ast.LexCharRange)

func (*CharRangeSymbols) Len

func (this *CharRangeSymbols) Len() int

func (*CharRangeSymbols) List

func (this *CharRangeSymbols) List() []*ast.LexCharRange

func (*CharRangeSymbols) StringList

func (this *CharRangeSymbols) StringList() []string

type Symbols

type Symbols struct {
	*CharLitSymbols
	*CharRangeSymbols
	ImportIdList []string
	// contains filtered or unexported fields
}

func NewSymbols

func NewSymbols(lexpart *ast.LexPart) (sym *Symbols)

func (*Symbols) ExternalFunction

func (this *Symbols) ExternalFunction(id string) string

ExternalFunction returns the external function associated with the import id or "" if there is none.

func (*Symbols) ImportType

func (this *Symbols) ImportType(id string) int

func (*Symbols) IsImport

func (this *Symbols) IsImport(id string) bool

func (*Symbols) List

func (this *Symbols) List() []string

func (*Symbols) NumSymbols

func (this *Symbols) NumSymbols() int

func (*Symbols) String

func (this *Symbols) String() string

func (*Symbols) Type

func (this *Symbols) Type(id string) int

func (*Symbols) Visit

func (this *Symbols) Visit(n ast.LexNode) ast.LexNodeVisitor

Jump to

Keyboard shortcuts

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