Documentation ¶
Index ¶
Constants ¶
View Source
const ErrBadInstruction = "unknown instruction encountered: %s"
ErrBadInstruction is raised when the VM encounters an Opcode that has not been properly mapped
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Closure ¶
func (*Closure) CheckArity ¶
CheckArity performs a compile-time arity check for the Closure
type Procedure ¶
type Procedure struct { Globals env.Namespace Constants data.Vector Code isa.Instructions StackSize int LocalCount int ArityChecker data.ArityChecker // contains filtered or unexported fields }
Procedure encapsulates the initial environment of an abstract machine
func (*Procedure) Call ¶
Call allows an abstract machine Procedure to be called for the purpose of instantiating a Closure. Only the compiler invokes this calling interface.
func (*Procedure) CheckArity ¶
CheckArity performs a compile-time arity check for the Procedure
Click to show internal directories.
Click to hide internal directories.