Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
func (Application) ValueString ¶
func (a Application) ValueString() string
type Callure ¶
type Callure struct {
Env Environment
Code []Instruction //left, right, Apply, Return
}
func (Callure) ValueString ¶
type Closure ¶
type Closure struct {
Arg string
Env Environment
Code []Instruction //code, Return
}
func (Closure) ValueString ¶
type Environment ¶
type Function ¶
func (Function) ValueString ¶
type Instruction ¶
type Instruction interface {
InstructionString() string
}
func Compile ¶
func Compile(expr ast.Expression) []Instruction
Click to show internal directories.
Click to hide internal directories.