Documentation
¶
Index ¶
- type CompilationPanic
- type ConstantCompiler
- func (kc *ConstantCompiler) CompileQueue() (unit *code.Unit, err error)
- func (kc *ConstantCompiler) GetConstant(ki uint) ir.Constant
- func (kc *ConstantCompiler) ProcessBool(k ir.Bool)
- func (kc *ConstantCompiler) ProcessCode(c ir.Code)
- func (kc *ConstantCompiler) ProcessFloat(k ir.Float)
- func (kc *ConstantCompiler) ProcessInt(k ir.Int)
- func (kc *ConstantCompiler) ProcessNil(k ir.NilType)
- func (kc *ConstantCompiler) ProcessString(k ir.String)
- func (kc *ConstantCompiler) QueueConstant(ki uint) int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompilationPanic ¶
type CompilationPanic struct {
// contains filtered or unexported fields
}
func (*CompilationPanic) Error ¶
func (p *CompilationPanic) Error() string
type ConstantCompiler ¶
type ConstantCompiler struct {
// contains filtered or unexported fields
}
func NewConstantCompiler ¶
func NewConstantCompiler(constants []ir.Constant, cc *code.Builder) *ConstantCompiler
func (*ConstantCompiler) CompileQueue ¶
func (kc *ConstantCompiler) CompileQueue() (unit *code.Unit, err error)
func (*ConstantCompiler) GetConstant ¶
func (kc *ConstantCompiler) GetConstant(ki uint) ir.Constant
func (*ConstantCompiler) ProcessBool ¶
func (kc *ConstantCompiler) ProcessBool(k ir.Bool)
ProcessBool compiles a Bool.
func (*ConstantCompiler) ProcessCode ¶
func (kc *ConstantCompiler) ProcessCode(c ir.Code)
ProcessCode compiles a Code.
func (*ConstantCompiler) ProcessFloat ¶
func (kc *ConstantCompiler) ProcessFloat(k ir.Float)
ProcessFloat compiles a Float.
func (*ConstantCompiler) ProcessInt ¶
func (kc *ConstantCompiler) ProcessInt(k ir.Int)
ProcessInt compiles a Int.
func (*ConstantCompiler) ProcessNil ¶
func (kc *ConstantCompiler) ProcessNil(k ir.NilType)
ProcessNil compiles a Nil.
func (*ConstantCompiler) ProcessString ¶
func (kc *ConstantCompiler) ProcessString(k ir.String)
ProcessString compiles a String.
func (*ConstantCompiler) QueueConstant ¶
func (kc *ConstantCompiler) QueueConstant(ki uint) int
Click to show internal directories.
Click to hide internal directories.