qlang

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InsertSemis = (*Options)(interpreter.InsertSemis)
)

Functions

func Import

func Import(mod string, table map[string]interface{})

func SetAutoCall

func SetAutoCall(t reflect.Type)

Types

type Options

type Options interpreter.Options

type Qlang

type Qlang struct {
	*qlangv1.Interpreter
	*interpreter.Engine
}

func New

func New(options *Options) (lang Qlang, err error)

func (Qlang) Exec

func (p Qlang) Exec(code []byte, fname string) (err error)

func (Qlang) SafeEval

func (p Qlang) SafeEval(expr string) (err error)

func (Qlang) SafeExec

func (p Qlang) SafeExec(code []byte, fname string) (err error)

Directories

Path Synopsis
cl
lib

Jump to

Keyboard shortcuts

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