asm

package
v2.0.0-alpha.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 7 Imported by: 1

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

func Assemble(fasm string) (*bytecode.Program, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL