compiler

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 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 added in v0.5.0

func New() *Compiler

func (*Compiler) Compile added in v0.5.0

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

func (*Compiler) RegisterBuiltins added in v0.5.0

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

func (*Compiler) SetFS added in v0.5.0

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