Versions in this module Expand all Collapse all v1 v1.0.0 Aug 5, 2026 Changes in this version + const Add + const BitAnd + const BitNot + const BitOr + const BitXor + const Call + const CloseUpvalues + const Closure + const Concat + const Defer + const Div + const Dup + const EndTry + const Eq + const FloorDiv + const ForLoop + const ForPrep + const FunctionDef + const Ge + const GetField + const GetGlobal + const GetLocal + const GetTable + const GetUpvalue + const Gt + const InstructionCount + const Jump + const JumpIfFalse + const JumpIfFalseKeep + const JumpIfTrue + const JumpIfTrueKeep + const Le + const Leave + const Len + const LoadFalse + const LoadFloat + const LoadInt + const LoadNil + const LoadString + const LoadTrue + const LoadVararg + const Lt + const MarkArgs + const Mod + const Mul + const Neg + const NewTable + const Not + const NotEq + const Pop + const Pow + const Program + const Return + const Self + const SerialVersion + const SetField + const SetGlobal + const SetList + const SetLocal + const SetTable + const SetUpvalue + const Shl + const Shr + const Sub + const TForCall + const TForLoop + const Throw + const Try + var InstructionNameTable = []string + func Disassemble(sets []*InstructionSet) string + func SerializeChunk(w io.Writer, main *InstructionSet) error + type Generator struct + REPL bool + func NewGenerator() *Generator + func (g *Generator) Err() error + func (g *Generator) GenerateInstructions(stmts []ast.Statement) []*InstructionSet + func (g *Generator) InitTopLevelScope(_ *ast.Program) + func (g *Generator) ResetInstructionSets() + type Instruction struct + A int32 + B int32 + BoxedAny any + Opcode uint8 + Params []any + StrA string + func (i *Instruction) ActionName() string + func (i *Instruction) AnchorLine() int + func (i *Instruction) CacheGen() uint32 + func (i *Instruction) CacheVal() Value + func (i *Instruction) Inspect() string + func (i *Instruction) Line() int + func (i *Instruction) SetCache(gen uint32, val Value) + func (i *Instruction) SourceLine() int + type InstructionSet struct + Constants []any + Instructions []*Instruction + IsVararg bool + NumLocals int + NumParams int + Protos []*InstructionSet + Upvalues []UpvalueDesc + func DeserializeChunk(r io.Reader) (*InstructionSet, error) + func (is *InstructionSet) HasTry() bool + func (is *InstructionSet) LocalsResolved() bool + func (is *InstructionSet) MarkLocalsResolved() + func (is *InstructionSet) Name() string + func (is *InstructionSet) SetHasTry(b bool) + func (is *InstructionSet) Type() string + type UpvalueDesc struct + InStack bool + Index int + Name string + type Value = any Other modules containing this package github.com/hilthontt/luascript/v3