Documentation
¶
Index ¶
- Constants
- Variables
- func I(a interface{}) interface{}
- func InitFuncs()
- func MatchSign(tf TypedFunc, x *Stack) int
- func Range(n int) []interface{}
- type Block
- type Environ
- func (env *Environ) Clear(opts int)
- func (env *Environ) Dump(opt int)
- func (env *Environ) Get(ind int) interface{}
- func (env *Environ) GetMemo() *Memo
- func (env *Environ) GetRand() *rand.Rand
- func (env *Environ) GetVar(s string) interface{}
- func (env *Environ) InitVars()
- func (env *Environ) Mark()
- func (env *Environ) Pop() (a interface{})
- func (env *Environ) PopMark()
- func (env *Environ) Push(a interface{})
- func (env *Environ) Pusha(as *Stack)
- func (env *Environ) SetMemo(m *Memo)
- func (env *Environ) SetVar(s string, a interface{})
- func (env *Environ) Size() int
- type Memo
- type Op
- type Parser
- type Runner
- type Sorter
- type Stack
- func (x *Stack) Clear()
- func (x *Stack) Contents() []interface{}
- func (x *Stack) Get(ind int) interface{}
- func (x *Stack) Get1() interface{}
- func (x *Stack) Get2() (interface{}, interface{})
- func (x *Stack) Get3() (interface{}, interface{}, interface{})
- func (x *Stack) Get4() (interface{}, interface{}, interface{}, interface{})
- func (x *Stack) Pop() (a interface{})
- func (x *Stack) Push(a interface{})
- func (x *Stack) Pusha(as *Stack)
- func (x *Stack) Reverse()
- func (x *Stack) Size() int
- func (x *Stack) Switch(a, b int)
- type TypedFunc
Constants ¶
View Source
const ( DUMP_VERTICAL = iota DUMP_HORIZONTAL DUMP_STRING )
View Source
const ( RESET_STACK = 1 << (iota + 1) RESET_VARS RESET_LONGVARS RESET_NAMESPACE )
View Source
const SIGNAL string = "!#\ufdd0"
Variables ¶
Functions ¶
Types ¶
type Block ¶
type Environ ¶
type Environ struct {
// contains filtered or unexported fields
}
The environment
func NewEnviron ¶
type Memo ¶
type Memo struct {
// contains filtered or unexported fields
}
The memo for recursive functions (`y`)
Click to show internal directories.
Click to hide internal directories.