compiler

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCircularDependency = errors.New("circular dependency")

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

func New

func New() *Compiler

func (*Compiler) Compile

func (c *Compiler) Compile(programFile string) (*vm.Program, error)

func (*Compiler) RegisterBuiltins

func (c *Compiler) RegisterBuiltins(pkgName string, exports export.Exports)

func (*Compiler) SetFS

func (c *Compiler) SetFS(fs fs.FS)

Jump to

Keyboard shortcuts

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