script

package module
v0.0.0-...-2cdba53 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

README

go-script

CircleCI Go Report Card Apache 2 License Go Version

Information coming soon. Nothing remotely stable atm.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExprCode

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

ExprCode is the runnable form of an expression node

func (*ExprCode) Run

func (e *ExprCode) Run() (vm.Value, error)

Run the code of the expression

func (*ExprCode) Type

func (e *ExprCode) Type() vm.Type

Type returns the type of the expression

type Runnable

type Runnable interface {
	Type() vm.Type          // The type of the value Run returns, or nil if Run returns nil.
	Run() (vm.Value, error) // Run runs the code; if the code is a single expression with a value, it returns the value; otherwise it returns nil.
}

Runnable represents code runnable by the vm

type World

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

World contains the root context for the current program.

func NewWorld

func NewWorld() *World

NewWorld creates a new World by asking the universe for a child scope.

func (*World) CompilePackage

func (w *World) CompilePackage(fset *token.FileSet, files []*ast.File, pkgPath string) (Runnable, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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