interpreter

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemInterpreter = NewInterpreter(nil)

Functions

func NewInterpreter

func NewInterpreter(options *jpl.JPLInterpreterConfig) jpl.JPLInterpreter

func ParseFunction

func ParseFunction(argNames []string, source string, presets *jpl.JPLRuntimeScopeConfig) (jpl.JPLFunc, jpl.JPLSyntaxError)

Create an orphan JPL function from the specified source program string.

Some optional scope presets may be specified, e.g. for allowing the function access to some specified variables. Other than that, the function does not have access to any external variables.

Types

type ParserContext

type ParserContext struct {
	Interpreter jpl.JPLInterpreter
}

Jump to

Keyboard shortcuts

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