Interpreter.evaluateFile

Evaluates a file that can be either binary bytecode or textual source code.

class Interpreter
ScriptAny
evaluateFile
(
in string pathName
,
bool printDisasm = false
,
bool fromScript = false
)

Parameters

pathName string

the location of the code file in the file system.

printDisasm bool

Whether or not bytecode disassembly should be printed before running

fromScript bool

This should be left to false and will be used internally

Return Value

Type: ScriptAny

The result of evaluating the file, undefined if no return statement.

Meta