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
}
Click to show internal directories.
Click to hide internal directories.