Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func NewWithState ¶
func NewWithState(s *SymbolTable, constants []object.Object) *Compiler
NewWithState creates a new Compiler with the given symbol table
type EmittedInstruction ¶
type Symbol ¶
type Symbol struct { Name string Scope SymbolScope Index int }
type SymbolTable ¶
type SymbolTable struct {
// contains filtered or unexported fields
}
func NewSymbolTable ¶
func NewSymbolTable() *SymbolTable
func (*SymbolTable) Define ¶
func (s *SymbolTable) Define(name string) Symbol
Click to show internal directories.
Click to hide internal directories.