Class Interpreter

java.lang.Object
tech.ixor.calclox.Interpreter
All Implemented Interfaces:
Expr.Visitor<Object>, Statement.Visitor<Void>

public class Interpreter extends Object implements Expr.Visitor<Object>, Statement.Visitor<Void>
Executes resolved CalcLox syntax trees against lexical environments.

The interpreter owns the globals for one run, installs the native clock and eval functions, forwards output to a CalculatorFrontend, and synchronizes numeric declarations and assignments with the frontend variable map. Instances are stateful and are not intended to be shared between runs.