st

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

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 //
}

Jump to

Keyboard shortcuts

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