Package tech.ixor.calclox
package tech.ixor.calclox
Embeds the CalcLox language in a host application.
Use CalcLoxRunner to execute source code and implement
CalculatorFrontend to provide numeric variables and receive
values produced by output statements. Each execution uses an isolated interpreter;
numeric declarations and assignments are synchronized with the frontend's mutable variable map.
Invalid source and runtime failures are reported as
CalcLoxRunnerError instances with source-line information.
- See Also:
-
ClassDescriptionThe AST Printer for the CalcLox language that prints the generated AST structure from the code.Entry point for executing CalcLox programs in an embedding application.Connects a host application to CalcLox input variables and program output.Stores variables for one lexical scope in a CalcLox execution.Executes resolved CalcLox syntax trees against lexical environments.Represents a native or user-defined value that CalcLox can invoke.Runtime representation of a user-defined CalcLox function.Builds CalcLox statements and expressions from a token stream.Resolves lexical variable references before interpretation.Internal, stackless control-flow signal used to return from a function body.Internal execution failure paired with the token that caused it.Converts CalcLox source text into the token stream consumed by
Parser.