Private
environmentPrivate
localsChecks if the operands are numbers
of the operator
Private
evaluateEvaluates the AST via visitor
The expression to be evaluated
Private
executeAnalog to this.evaluate() but for statements
ast.Stmt to be executed
Execute a list of statements in an given environment
list of statements
environment to execute the statements in.
Private
is_BeerObject
BeerObject
true if a and b are equal, false otherwise
Private
is_Checks if the object is truthy
BeerObject
Private
look_Set resolved values to the locals of the interpreter
ast.Expr to be interpreted
The depth of the expression
Private
stringifyConverts the object to a string representation
BeerObject
string representation of the object
{ast.LiteralExpr} expression
The expression to be evaluated
The block statement to be evaluated
TODO
The statement to be evaluated
Evaluate the expression
The expression to be evaluated
void;
The statement to be evaluated
void;
The expression to be evaluated
void;
The expression to be evaluated
BeerObject;
The expression to be evaluated
BeerObject;
If statement visitor
The if statement to be evaluated
The expression to be evaluated
BeerObject;
Print the evaluated expression
The expression to be evaluated
void;
The expression to be evaluated
visit for setExpr
BeerObject;
Visitor for GetExpr
BeerObject;
Visitor for this in classes
{ast.ThisExpr} expression
The expression to be evaluated
BeerObject;
Evaluate the stmt and define in the environment
The statment to be evaluated
void;
Find the value of the variable in the environment
The expression to be evaluated
BeerObject;
The expression to be evaluated
void;
Generated using TypeDoc
The interpreter class is responsible for evaluating the AST