Example #1
0
        public override REBase Copy()
        {
            REExpression _operandL = (OperandLeft != null)? (REExpression)OperandLeft.Copy() : null;
            REExpression _operandR = (OperandRight != null)? (REExpression)OperandRight.Copy() : null;

            return(new REEqual(_operandL, _operandR));
        }
Example #2
0
        public override REBase Copy()
        {
            REExpression _condition     = (Condition != null)? (REExpression)Condition.Copy() : null;
            REStatement  _thenStatement = (ThenStatement != null)? (REStatement)ThenStatement.Copy() : null;
            REStatement  _elseStatement = (ElseStatement != null)? (REStatement)ElseStatement.Copy() : null;

            return(new REIfStatement(_condition, _thenStatement, _elseStatement));
        }
Example #3
0
 public REIfStatement(REExpression condition, REStatement thenStatement, REStatement elseStatement = null)
 {
     Condition     = condition;
     ThenStatement = thenStatement;
     ElseStatement = elseStatement;
 }
Example #4
0
 public REEqual(REExpression operandLeft, REExpression operandRight)
     : base(operandLeft, operandRight)
 {
 }