interpreter

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct{}

func NewAdapter

func NewAdapter() Adapter

func (Adapter) Adapt

func (a Adapter) Adapt(irProg *ir.Program) (runtime.Program, error)

type Interpreter

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

func New

func New(
	compiler compiler.Compiler,
	adapter Adapter,
	runtime runtime.Runtime,
	builder pkgmanager.Manager,
) Interpreter

func (Interpreter) Interpret

func (i Interpreter) Interpret(ctx context.Context, workdirPath string, mainPkgName string) *compiler.Error

Jump to

Keyboard shortcuts

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