Interpreter.this

Constructs a new Interpreter with a global environment. Note that all calls to evaluate run in a new environment below the global environment. This allows keywords such as let and const to not pollute the global namespace. However, scripts can use var to declare variables that are global.

class Interpreter
this
(
bool printDisasm = false
,
bool printSteps = false
)

Parameters

printDisasm bool

If this is set to true, bytecode disassembly of each program will be printed before execution.

printSteps bool

If this is set to true, detailed step by step execution of bytecode in the VM will be printed.

Meta