Versions in this module Expand all Collapse all v0 v0.0.1 Feb 26, 2023 Changes in this version + func Compile(src, srcDesc string, mode py.CompileMode, futureFlags int, dont_inherit bool) (*py.Code, error) + func LegacyCompile(str, filename, mode string, flags int, dont_inherit bool) py.Object + type Instruction interface + Lineno func() int + Number func() int + Output func() []byte + Pos func() uint32 + SetLineno func(int) + SetPos func(int, uint32) bool + Size func() uint32 + StackEffect func() int + type Instructions []Instruction + func (is *Instructions) Add(i Instruction) + func (is Instructions) Assemble() string + func (is Instructions) EndsWithReturn() bool + func (is Instructions) Lnotab() []byte + func (is Instructions) Pass(pass int) bool + func (is Instructions) StackDepth() int + type JumpAbs struct + Dest *Label + func (o *JumpAbs) Resolve() + func (p *JumpAbs) Lineno() int + func (p *JumpAbs) Number() int + func (p *JumpAbs) Pos() uint32 + func (p *JumpAbs) SetLineno(lineno int) + func (p *JumpAbs) SetPos(number int, newPos uint32) bool + type JumpRel struct + Dest *Label + func (o *JumpRel) Resolve() + func (p *JumpRel) Lineno() int + func (p *JumpRel) Number() int + func (p *JumpRel) Pos() uint32 + func (p *JumpRel) SetLineno(lineno int) + func (p *JumpRel) SetPos(number int, newPos uint32) bool + type Label struct + func (o *Label) Size() uint32 + func (o *Label) StackEffect() int + func (o Label) Output() []byte + func (p *Label) Lineno() int + func (p *Label) Number() int + func (p *Label) Pos() uint32 + func (p *Label) SetLineno(lineno int) + func (p *Label) SetPos(number int, newPos uint32) bool + type Op struct + Op vm.OpCode + func (o *Op) Output() []byte + func (o *Op) Size() uint32 + func (o *Op) StackEffect() int + func (p *Op) Lineno() int + func (p *Op) Number() int + func (p *Op) Pos() uint32 + func (p *Op) SetLineno(lineno int) + func (p *Op) SetPos(number int, newPos uint32) bool + type OpArg struct + Arg uint32 + Op vm.OpCode + func (o *OpArg) Output() []byte + func (o *OpArg) Size() uint32 + func (o *OpArg) StackEffect() int + func (p *OpArg) Lineno() int + func (p *OpArg) Number() int + func (p *OpArg) Pos() uint32 + func (p *OpArg) SetLineno(lineno int) + func (p *OpArg) SetPos(number int, newPos uint32) bool + type Resolver interface + Resolve func()