Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrParen = errors.New("parenthesis mismatch") ErrUnexpectedNumber = errors.New("unexpected number") ErrUnexpectedIdentifier = errors.New("unexpected identifier") ErrBadCall = errors.New("function call expected") ErrBadVar = errors.New("variable expected in assignment") ErrBadOp = errors.New("unknown operator or function") ErrOperandMissing = errors.New("missing operand") )
Functions ¶
This section is empty.
Types ¶
type Func ¶
type Func func(f *FuncContext) Num
type FuncContext ¶
type FuncContext struct { Args []Expr Vars map[string]Var Env interface{} // contains filtered or unexported fields }
func (*FuncContext) Eval ¶
func (f *FuncContext) Eval() Num
func (*FuncContext) String ¶
func (f *FuncContext) String() string
Click to show internal directories.
Click to hide internal directories.