Documentation ¶
Index ¶
Constants ¶
View Source
const ( // label types LabelDef = "Def" LabelDefClass = "DefClass" Block = "Block" Program = "ProgramStart" // instruction actions GetLocal = "getlocal" GetConstant = "getconstant" GetInstanceVariable = "getinstancevariable" SetLocal = "setlocal" SetConstant = "setconstant" SetInstanceVariable = "setinstancevariable" PutString = "putstring" PutSelf = "putself" PutObject = "putobject" PutNull = "putnil" NewArray = "newarray" NewHash = "newhash" BranchUnless = "branchunless" BranchIf = "branchif" Jump = "jump" DefMethod = "def_method" DefSingletonMethod = "def_singleton_method" DefClass = "def_class" Send = "send" InvokeBlock = "invokeblock" Pop = "pop" Leave = "leave" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator contains program's AST and will store generated instruction sets
func NewGenerator ¶
NewGenerator initializes new Generator with complete AST tree.
Click to show internal directories.
Click to hide internal directories.