class ArithmCls
class ArithmCls: public PTreeNodeCls
An arithmetic expression
Inheritance:
-
-
Public Methods
-
ArithmCls(PPTreeNodeCls left, PPTreeNodeCls right, ArithmOp op) - Constructor
-
int emit() - SLICK Emitter
-
Documentation
An arithmetic expression. Expr: Expr + Expr
| Expr - Expr
| Expr * Expr
| Expr / Expr
-
ArithmOp
- The available arithmetic operations.
- PlusOp
- Addition
- MinusOp
- Subtraction
- MultOp
- Multiplication
- DivOp
- Division
-
ArithmCls(PPTreeNodeCls left, PPTreeNodeCls right, ArithmOp op)
- Constructor.
- Parameters:
-
left - Left side of expression
right - Right side of expression
op - Arithmetic operation
-
int emit()
- SLICK Emitter.
Emits the left, then the right expression and finally the operator opcode (polish notation).
- Returns:
- 0
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
DOC++

