qlang

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func Debug

func Debug(fn func())

func Import

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

func SetAutoCall

func SetAutoCall(t reflect.Type)

func SetDumpCode

func SetDumpCode(dumpCode string)

func SetFindEntry

func SetFindEntry(fn func(file string, libs []string) (string, error))

func SetOnPop

func SetOnPop(fn func(v interface{}))

func SetReadFile

func SetReadFile(fn func(file string) ([]byte, error))

Types

type Options

type Options interpreter.Options

type Qlang

type Qlang struct {
	*exec.Context
	// contains filtered or unexported fields
}

func New

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

func (*Qlang) Cl

func (p *Qlang) Cl(codeText []byte, fname string) (end int, err error)

func (*Qlang) Eval

func (p *Qlang) Eval(expr string) (err error)

func (*Qlang) Exec

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

func (*Qlang) SafeCl

func (p *Qlang) SafeCl(codeText []byte, fname string) (end int, 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)

func (*Qlang) SetLibs

func (p *Qlang) SetLibs(libs string)

Jump to

Keyboard shortcuts

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