Home
 

class ArithmCls

class ArithmCls: public PTreeNodeCls

An arithmetic expression

Inheritance:


Public Classes

[more] ArithmOp
The available arithmetic operations


Public Methods

[more] ArithmCls(PPTreeNodeCls left, PPTreeNodeCls right, ArithmOp op)
Constructor
[more]int emit()
SLICK Emitter



Documentation

An arithmetic expression.    Expr: Expr + Expr
        | Expr - Expr
        | Expr * Expr
        | Expr / Expr
oArithmOp
The available arithmetic operations.
PlusOp
Addition
MinusOp
Subtraction
MultOp
Multiplication
DivOp
Division

oArithmCls(PPTreeNodeCls left, PPTreeNodeCls right, ArithmOp op)
Constructor.
Parameters:
left - Left side of expression
right - Right side of expression
op - Arithmetic operation

oint 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++