interp

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Program

type Program exec.Code

func CompileAST

func CompileAST(pkg *ast.Package, fset *token.FileSet) (app *Program, err error)

CompileAST compiles a package by specified AST.

func (*Program) Dump added in v0.3.0

func (p *Program) Dump(w io.Writer)

Dump dumps code.

type Runtime

type Runtime struct {
}

func New

func New() *Runtime

func (*Runtime) RunProgram

func (p *Runtime) RunProgram(app *Program)

Jump to

Keyboard shortcuts

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