Documentation
¶
Index ¶
- Variables
- type SymbolTable
- func (st *SymbolTable) DefineReservedWord(name string, fxid int) (ss *SymbolType)
- func (st *SymbolTable) DefineSymbol(name, body string, plist []string) (ss *SymbolType)
- func (st *SymbolTable) Dump01(fo io.Writer)
- func (st *SymbolTable) DumpSymbolTable(fo io.Writer)
- func (st *SymbolTable) LookupSymbol(name string) (as *SymbolType, err error)
- func (st *SymbolTable) UnDefineSymbol(name string)
- type SymbolType
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFoundError = errors.New("Not Found")
Functions ¶
This section is empty.
Types ¶
type SymbolTable ¶
type SymbolTable struct { Symbols map[string]*SymbolType // contains filtered or unexported fields }
func NewSymbolTable ¶
func NewSymbolTable() (st *SymbolTable)
func (*SymbolTable) DefineReservedWord ¶
func (st *SymbolTable) DefineReservedWord(name string, fxid int) (ss *SymbolType)
func (*SymbolTable) DefineSymbol ¶
func (st *SymbolTable) DefineSymbol(name, body string, plist []string) (ss *SymbolType)
func (*SymbolTable) Dump01 ¶
func (st *SymbolTable) Dump01(fo io.Writer)
func (*SymbolTable) DumpSymbolTable ¶
func (st *SymbolTable) DumpSymbolTable(fo io.Writer)
func (*SymbolTable) LookupSymbol ¶
func (st *SymbolTable) LookupSymbol(name string) (as *SymbolType, err error)
func (*SymbolTable) UnDefineSymbol ¶
func (st *SymbolTable) UnDefineSymbol(name string)
type SymbolType ¶
type SymbolType struct { Name string // Body string // SymType int // new - Macro / Item-Name / Begnning-Block-Name / Ending Block Name? / If/Eif/Else block name? FxId int // new AnyData interface{} // NParam int // ParamName []string // DefVal []string // new - Default value for params in param order Prev *SymbolType // }
Click to show internal directories.
Click to hide internal directories.