scripting

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Call

func Call(xctx *ExecutionContext, fn string, params ...interface{}) (interface{}, error)

TODO: Call the function from host

func Compile

func Compile(xctx *ExecutionContext, s string) (Ast, error)

func Execute

func Execute(xctx *ExecutionContext, s string) (interface{}, error)

func ExecuteAst

func ExecuteAst(xctx *ExecutionContext, ast Ast) (interface{}, error)

func Unmarshal

func Unmarshal(xctx *ExecutionContext, outPtr interface{}, s string) error

Types

type ExecutionContext

type ExecutionContext = xtor.ExecutionContext

func NewExecutionContext

func NewExecutionContext(dicts ...VariableInfoMap) *ExecutionContext

type ExecutionScope

type ExecutionScope = xtor.ExecutionScope

type ExecutionScopeType

type ExecutionScopeType = xtor.ExecutionScopeType

type VariableInfo

type VariableInfo = xtor.VariableInfo

type VariableInfoMap

type VariableInfoMap = map[string]*xtor.VariableInfo

func CloneDict

func CloneDict(src VariableInfoMap) VariableInfoMap

func MergeDict

func MergeDict(dest VariableInfoMap, srcDicts ...VariableInfoMap) VariableInfoMap

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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