Class: Interpreter

Interpreter

Executes a collection of ASTs in order to run Lox code.

Constructor

new Interpreter()

Source:

Methods

interpret(statements, repl)

Interprets collection of ASTs in order to execute user input.

Parameters:
Name Type Default Description
statements Array.<Statement>

Collection of statements representing parsed user input.

repl boolean false

= false If true then ExpressionStatements will print their value; otherwise nothing.

Source: