Class | Description |
---|---|
Addition |
Represents a + b, the addition of two expressions
|
BinaryExpression |
The base class of any binary expression, e.g., a + b, a - b, or, in future
use, a < b and so on.
|
Division |
Represents a / b, the division of two expressions
|
Expression | |
Multiplication |
Represents a x b, the multiplication of two expressions
|
Negation |
Represents unary minus, e.g., -expression
|
Number |
Represents a number
|
Subtraction |
Represents a subtraction (e.g., lhs - rhs)
|
UnaryExpression |
Represents a unary expression
|
Variable |
A variable stores a value and can be used in an expression.
|
VariableFactory |
Clients can use this class to obtain a unique variable per identifier
(avoiding a proliferation of objects)
|