Documentation ¶
Overview ¶
Package compiler translates the ast structures that represent the parsed course code into instructions that can be executed by the VM.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileFunc ¶
CompileFunc translates a single function into a set of instructions. The number of instructions returned may be zero.
func CompileTest ¶
CompileTest will compile a test.
Types ¶
type Compiled ¶
type Compiled struct { Funcs map[string]*vm.CompiledFunc FuncDefs map[string]*ast.Func Tests []*vm.CompiledTest }
CompiledFile contains all the compiled entities in a file.
func CompileFile ¶
CompileFile translates a single file into a set of instructions. The number of instructions returned may be zero.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.