Documentation
¶
Index ¶
Constants ¶
View Source
const Version = 1
Variables ¶
View Source
var (
ErrInvalidProgram = fmt.Errorf("invalid program: program cannot be nil or empty")
)
Functions ¶
func Assemble ¶
TODO: Implement the assembler that converts FASM (Ferret Assembly) code into a Ferret VM program.
func Disassemble ¶
func Disassemble(p *bytecode.Program, options ...DisassemblerOption) (string, error)
Disassemble returns a human-readable disassembly of the given program.
Types ¶
type DisassemblerOption ¶
type DisassemblerOption func(*disassemblerOptions)
func WithDebug ¶
func WithDebug() DisassemblerOption
Click to show internal directories.
Click to hide internal directories.