Documentation ¶
Index ¶
- Variables
- func InitExitCallbacks(tc *TCstate)
- func TCExitCbPoolClose(l *TCExecListener)
- func TCExitCbSetExitError(l *TCExecListener)
- type TCError
- type TCExecListener
- func (tc *TCExecListener) EnterExpression(ctx *parser.ExpressionContext)
- func (tc *TCExecListener) EnterFunction_declaration(ctx *parser.Function_declarationContext)
- func (tc *TCExecListener) EnterNs_declaration(ctx *parser.Ns_declarationContext)
- func (tc *TCExecListener) ExitExpression(ctx *parser.ExpressionContext)
- func (tc *TCExecListener) ExitFunction_declaration(ctx *parser.Function_declarationContext)
- func (tc *TCExecListener) ExitNs_declaration(ctx *parser.Ns_declarationContext)
- func (l *TCExecListener) ExitRequest()
- func (l *TCExecListener) ExitRequested() bool
- func (l *TCExecListener) RegisterExitCallback(name string, fun TCExitCbFun)
- func (l *TCExecListener) RunExitCallbacks()
- func (l *TCExecListener) SetError(msg string, args ...interface{})
- type TCExitCbFun
- type TCExtType
- type TCExtTypeStr
- type TCstate
- func (tc *TCstate) AddNewStack(name string)
- func (tc *TCstate) ClearErrors()
- func (tc *TCstate) Debug(msg ...interface{})
- func (tc *TCstate) Debugf(msg string, args ...interface{})
- func (tc *TCstate) DelStack(name string)
- func (tc *TCstate) DropLastStack() error
- func (tc *TCstate) Error() string
- func (tc *TCstate) Errors() int
- func (tc *TCstate) Eval(code string) *TCstate
- func (tc *TCstate) ExitRequested() bool
- func (tc *TCstate) GetVariable(name string) (interface{}, error)
- func (tc *TCstate) GoEval(code string) *TCstate
- func (tc *TCstate) HasVariable(name string) bool
- func (tc *TCstate) MakeError(err interface{}, args ...interface{}) *TCError
- func (tc *TCstate) PositionStack(name string) error
- func (tc *TCstate) RegisterError(err *TCError)
- func (tc *TCstate) RegisterExitCallback(name string, fun TCExitCbFun)
- func (tc *TCstate) RotateStackNames()
- func (tc *TCstate) SetError(msg string, args ...interface{})
- func (tc *TCstate) SetVariable(name string, data interface{})
- func (tc *TCstate) StackLeft(n int)
- func (tc *TCstate) StackRight(n int)
- func (tc *TCstate) StacksLeft(n int)
- func (tc *TCstate) StacksRight(n int)
- func (tc *TCstate) TrueErrors() int
- type TwoStack
- func (ts *TwoStack) Add()
- func (ts *TwoStack) CLeft()
- func (ts *TwoStack) CRight()
- func (ts *TwoStack) Del()
- func (ts *TwoStack) Front() interface{}
- func (ts *TwoStack) GLen() int
- func (ts *TwoStack) Get() (interface{}, error)
- func (ts *TwoStack) Left()
- func (ts *TwoStack) Len() int
- func (ts *TwoStack) Normal()
- func (ts *TwoStack) PopFront() interface{}
- func (ts *TwoStack) Q() *deque.Deque[interface{}]
- func (ts *TwoStack) Reverse()
- func (ts *TwoStack) Right()
- func (ts *TwoStack) Set(data interface{})
- func (ts *TwoStack) Take() (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Callbacks cmap.Cmap
View Source
var ExpressionCBChain deque.Deque[interface{}]
View Source
var Functions cmap.Cmap
View Source
var VERSION = "2.00"
Functions ¶
func InitExitCallbacks ¶
func InitExitCallbacks(tc *TCstate)
func TCExitCbPoolClose ¶
func TCExitCbPoolClose(l *TCExecListener)
func TCExitCbSetExitError ¶
func TCExitCbSetExitError(l *TCExecListener)
Types ¶
type TCExecListener ¶
type TCExecListener struct { *parser.BaseBundParserListener TC *TCstate }
func (*TCExecListener) EnterExpression ¶
func (tc *TCExecListener) EnterExpression(ctx *parser.ExpressionContext)
func (*TCExecListener) EnterFunction_declaration ¶
func (tc *TCExecListener) EnterFunction_declaration(ctx *parser.Function_declarationContext)
func (*TCExecListener) EnterNs_declaration ¶
func (tc *TCExecListener) EnterNs_declaration(ctx *parser.Ns_declarationContext)
func (*TCExecListener) ExitExpression ¶
func (tc *TCExecListener) ExitExpression(ctx *parser.ExpressionContext)
func (*TCExecListener) ExitFunction_declaration ¶
func (tc *TCExecListener) ExitFunction_declaration(ctx *parser.Function_declarationContext)
func (*TCExecListener) ExitNs_declaration ¶
func (tc *TCExecListener) ExitNs_declaration(ctx *parser.Ns_declarationContext)
func (*TCExecListener) ExitRequest ¶
func (l *TCExecListener) ExitRequest()
func (*TCExecListener) ExitRequested ¶
func (l *TCExecListener) ExitRequested() bool
func (*TCExecListener) RegisterExitCallback ¶
func (l *TCExecListener) RegisterExitCallback(name string, fun TCExitCbFun)
func (*TCExecListener) RunExitCallbacks ¶
func (l *TCExecListener) RunExitCallbacks()
func (*TCExecListener) SetError ¶
func (l *TCExecListener) SetError(msg string, args ...interface{})
type TCExitCbFun ¶
type TCExitCbFun func(*TCExecListener)
type TCExtTypeStr ¶
type TCExtTypeStr func(interface{}) string
type TCstate ¶
type TCstate struct { ID string HandleErr bool ErrStack deque.Deque[interface{}] // Stack of errors Res *TwoStack // main stack ResNames deque.Deque[interface{}] // stack of stack names ResN mapset.Set // set of stack names StackList cmap.Cmap // Reference to stacks StackChan cmap.Cmap // Reference to stack channels Vars cmap.Cmap // variables Functions cmap.Cmap // Functions UFunctions cmap.Cmap // User Functions UMacros cmap.Cmap // User Macros FCStack deque.Deque[string] // Function call stack CodeStack deque.Deque[string] // Accumulation for codeblocks FCodeStack deque.Deque[string] // Accumulation for function code MCodeStack deque.Deque[string] // Accumulation for macro code Ctx cmap.Cmap // Global context CtxStack deque.Deque[interface{}] // Stack of local contexts Wg sync.WaitGroup // Global wait group Pool *gohive.PoolService // Global execution pool ExReq chan bool // Exit request channel IsExitReq bool // Exit flag ExitCb *dict.Dict // Exit callbacks // contains filtered or unexported fields }
func (*TCstate) AddNewStack ¶
func (*TCstate) ClearErrors ¶
func (tc *TCstate) ClearErrors()
func (*TCstate) DropLastStack ¶
func (*TCstate) ExitRequested ¶
func (*TCstate) GetVariable ¶
func (*TCstate) HasVariable ¶
func (*TCstate) PositionStack ¶
func (*TCstate) RegisterError ¶
func (*TCstate) RegisterExitCallback ¶
func (tc *TCstate) RegisterExitCallback(name string, fun TCExitCbFun)
func (*TCstate) RotateStackNames ¶
func (tc *TCstate) RotateStackNames()
func (*TCstate) SetVariable ¶
func (*TCstate) StackRight ¶
func (*TCstate) StacksLeft ¶
func (*TCstate) StacksRight ¶
func (*TCstate) TrueErrors ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.