public RealArithmeticExpression(ArithmeticOperatorType operatorType, ArithmeticExpression left, ArithmeticExpression right) { this.operatorType = operatorType; this.left = left; this.right = right; }
protected void exitRealArithmeticExpression(ArithmeticOperatorType Operator) { ArithmeticExpression right = this.arithmeticExpressions.Pop(); ArithmeticExpression left = this.arithmeticExpressions.Pop(); RealArithmeticExpression expr = new RealArithmeticExpression(Operator, left, right); this.arithmeticExpressions.Push(expr); }
public ArithmeticOp(ArithmeticOperatorType type) : base(TokenType.Arithmetic_Op) { ArithmeticOperatorType = type; }