Package tech.ixor.calclox
Interface CalculatorFrontend
public interface CalculatorFrontend
Connects a host application to CalcLox input variables and program output.
-
Method Summary
-
Method Details
-
variables
Returns the mutable variable map shared with a program. Adefine name;declaration reads from this map; numeric CalcLox declarations and assignments are written back to it.- Returns:
- the mutable host variable map, or
nullwhen host variables are unsupported
-
output
Receives the textual value produced by anoutputstatement.- Parameters:
result- the result to be displayed
-