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);
 }
示例#3
0
 public ArithmeticOp(ArithmeticOperatorType type) : base(TokenType.Arithmetic_Op)
 {
     ArithmeticOperatorType = type;
 }