compiler

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

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

func NewCompiler

func NewCompiler() *Compiler

func (*Compiler) AddFuncRegistry

func (c *Compiler) AddFuncRegistry(reg vm.ExportRegistry)

func (*Compiler) CompilePackage

func (c *Compiler) CompilePackage(
	packageReader mod.PackageReader,
	errLogger errlogger.ErrLogger,
) (*vm.CompiledPackage, error)

func (*Compiler) CompileSimple

func (c *Compiler) CompileSimple(
	filename string,
	scriptData []byte,
	errLogger errlogger.ErrLogger,
) (*vm.CompiledPackage, error)

func (*Compiler) SetDiag

func (c *Compiler) SetDiag(diag bool)

Jump to

Keyboard shortcuts

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