Interpreter.evaluate

This is the main entry point for evaluating a script program.

class Interpreter
ScriptAny
evaluate
(
in string code
,
string name = "<program>"
)

Parameters

code string

This is the source code of a script to be executed.

Return Value

Type: ScriptAny

If the script has a return statement with an expression, this value will be the result of that expression otherwise it will be ScriptAny.UNDEFINED

Meta