A C E F G I M V

A

ActivationRecord - Class in <Unnamed>
An ActivationRecord is an environment in which one new name is bound to some value, while all other names retain the values they have in some pre-existing outer environment, accessed via a nesting link.
ActivationRecord(String, Object, Environment) - Constructor for class ActivationRecord
Creates an activation record that binds a name to an ordinary value.
ActivationRecord(String, String, Expression, Environment) - Constructor for class ActivationRecord
Creates an activation record that binds a name to a (possibly recursive) function.
Application - Class in <Unnamed>
An Application is an expression that when evaluated applies a function (found by evaluating the operator) to some argument value (found by evaluating the operand).
Application(Expression, Expression) - Constructor for class Application
Create an Application with the specified components.
apply(Object) - Method in class Closure
 
apply(Object) - Method in interface Function
Apply this function to a specified argument value.
apply(Object) - Method in class IntComparison
 
apply(Object) - Method in class IntOperation
 

C

Closure - Class in <Unnamed>
A Closure is a function defined by code being interpreted (either a function definition or a lambda expression), rather than being one of the built-in functions such as +.
Closure(String, Expression, Environment) - Constructor for class Closure
Creates a Closure with the specified components.
compute(int, int) - Method in class IntComparison
This method should be implemented in each concrete subclass.
compute(int, int) - Method in class IntOperation
This method should be implemented in each concrete subclass.
Conditional - Class in <Unnamed>
A Conditional is an if-then-else expression.
Conditional(Expression, Expression, Expression) - Constructor for class Conditional
Creates a Conditional with the specified components.
Constant - Class in <Unnamed>
A Constant is an expression with a directly specified value.
Constant(Object) - Constructor for class Constant
Creates a Constant with the specified value.

E

Environment - Interface in <Unnamed>
An Environment provides the correspondence between names and the values that they are names for.
eval(Environment) - Method in class Application
 
eval(Environment) - Method in class Conditional
 
eval(Environment) - Method in class Constant
 
eval(Environment) - Method in interface Expression
Evaluate this expression.
eval(Environment) - Method in class Variable
 
Expression - Interface in <Unnamed>
The representation of an expression; in other words, an AST.

F

FactorialTest - Class in <Unnamed>
A class containing a main program for testing out the evaluator.
FactorialTest() - Constructor for class FactorialTest
 
Function - Interface in <Unnamed>
The run-time representation of a function (that is, a procedure).

G

get(String) - Method in class ActivationRecord
 
get(String) - Method in interface Environment
Return the value corresponding to the specified name.
get(String) - Method in class InitialEnvironment
 

I

InitialEnvironment - Class in <Unnamed>
This is the outermost environment, containing predefined names.
InitialEnvironment() - Constructor for class InitialEnvironment
 
IntComparison - Class in <Unnamed>
An abstract base class for integer comparison functions such as <.
IntComparison() - Constructor for class IntComparison
 
IntOperation - Class in <Unnamed>
An abstract base class for integer arithmetic functions such as +.
IntOperation() - Constructor for class IntOperation
 

M

main(String[]) - Static method in class FactorialTest
When this program is run, it does the equivalent of the following ML program:

V

Variable - Class in <Unnamed>
A Variable is a name used as an expression.
Variable(String) - Constructor for class Variable
Creates a Variable with the specified name.

A C E F G I M V