Documentation ¶
Index ¶
- type CharLitSymbols
- type CharRangeSymbols
- type Symbols
- func (this *Symbols) ExternalFunction(id string) string
- func (this *Symbols) ImportType(id string) int
- func (this *Symbols) IsImport(id string) bool
- func (this *Symbols) List() []string
- func (this *Symbols) NumSymbols() int
- func (this *Symbols) String() string
- func (this *Symbols) Type(id string) int
- func (this *Symbols) Visit(n ast.LexNode) ast.LexNodeVisitor
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 (*Symbols) ExternalFunction ¶
ExternalFunction returns the external function associated with the import id or "" if there is none.
func (*Symbols) ImportType ¶
func (*Symbols) NumSymbols ¶
Click to show internal directories.
Click to hide internal directories.