Documentation ¶
Index ¶
- Variables
- func DeleteVarTable(table VarTable)
- func FmtToken(arg *Token) string
- func GetTagAsStr(tag Token_t) string
- func InitVarTable(table VarTable)
- func PrintSExprsIndividually(arg *Token)
- func SetVar(variable string, value *Token, vt VarTable)
- func StrIsNumber(arg string) bool
- type FuncTable
- type Function
- type Operation
- type Token
- type TokenStack
- type Token_t
- type VarTable
Constants ¶
This section is empty.
Variables ¶
View Source
var SyncTablesWithOSEnviron = false
Trigger this if you are using this for a shell
Functions ¶
func DeleteVarTable ¶
func DeleteVarTable(table VarTable)
Dont do this on var tables youve already called InitVarTable on.... please.... This will pull currently contained variables OUT of the operating env
func GetTagAsStr ¶
func InitVarTable ¶
func InitVarTable(table VarTable)
func PrintSExprsIndividually ¶
func PrintSExprsIndividually(arg *Token)
Print function which breaks each embedded list out on individual lines. * Used in the print_ast debug tool. not too useful for repl applications. * Very useful for debugging syntax though. * TODO: Add numbers to denote embedded scope?
func StrIsNumber ¶
Types ¶
type Function ¶
type Function struct { Function Operation Name string TimesCalled int Args int // TODO: Make this a list of expected types (TAGs) }
func GetFunction ¶
func (Function) CallFunction ¶
func (Function) ParseFunction ¶
TODO: Currently only checks arg list length
type Token ¶
func GetVarFromTables ¶
Library represents variables defined in inner scope It is assumed library is ordered from innermost scope to outermost scope
type TokenStack ¶
type TokenStack struct {
// contains filtered or unexported fields
}
func (*TokenStack) Pop ¶
func (s *TokenStack) Pop() *Token
func (*TokenStack) Push ¶
func (s *TokenStack) Push(v *Token)
Click to show internal directories.
Click to hide internal directories.