Documentation ¶
Index ¶
- Constants
- Variables
- func ArityErr(i *Interp, name string, argv []string) error
- func CommandCallProc(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandError(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandIf(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandMath(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandProc(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandRetCodes(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandReturn(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandSet(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandUnset(i *Interp, argv []string, pd interface{}) (string, error)
- func CommandWhile(i *Interp, argv []string, pd interface{}) (string, error)
- type CallFrame
- type Cmd
- type CmdFunc
- type Interp
- func (i *Interp) Command(name string) *Cmd
- func (i *Interp) Eval(t string) (string, error)
- func (i *Interp) RegisterCommand(name string, fn CmdFunc, privdata interface{}) error
- func (i *Interp) RegisterCoreCommands()
- func (i *Interp) Scope() map[string]Var
- func (i *Interp) SetVar(name, val string)
- func (i *Interp) UnsetVar(name string)
- func (i *Interp) Var(name string) (Var, bool)
- type Parser
- type Var
Constants ¶
View Source
const ( PT_ESC = iota PT_STR PT_CMD PT_VAR PT_SEP PT_EOL PT_EOF )
Variables ¶
Functions ¶
func CommandCallProc ¶
func CommandRetCodes ¶
Types ¶
type CallFrame ¶
type CallFrame struct {
// contains filtered or unexported fields
}
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
type Interp ¶
type Interp struct { CmdInsideQuote bool // contains filtered or unexported fields }
func (*Interp) RegisterCommand ¶
type Parser ¶
Click to show internal directories.
Click to hide internal directories.