public InitializationStatement(BaseAST identifier, BaseAST expression)
 {
     SetValues(
         identifier as IdentifierExpression,
         expression as Expression
     );
 }
 public BinaryExpression(string operator_, BaseAST left, BaseAST right)
 {
     SetValues(
         operator_,
         left as Expression,
         right as Expression
     );
 }
Пример #3
0
 public IfStatement(BaseAST condition, BaseAST onTrue, BaseAST onFalse)
 {
     SetValues(
         condition as BooleanExpression,
         onTrue,
         onFalse
     );
 }
 public BooleanExpression(string relop, BaseAST left, BaseAST right)
 {
     SetValues(
         left as Expression,
         right as Expression,
         relop
     );
 }
Пример #5
0
 protected void SetValues(BaseBooleanExpression condition, BaseAST onTrue, BaseAST onFalse)
 {
     Condition = condition;
     OnTrue    = onTrue;
     OnFalse   = onFalse;
 }
Пример #6
0
 protected void SetValues(BaseBooleanExpression condition, BaseAST onTrue, BaseAST onFalse)
 {
     Condition = condition;
     OnTrue = onTrue;
     OnFalse = onFalse;
 }
Пример #7
0
 public IfStatement(BaseAST condition, BaseAST onTrue)
     : this(condition, onTrue, null)
 {
 }
 public WhileExpression(BaseAST condition, BaseAST block)
 {
     SetValues(condition as BooleanExpression, block as BlockStatement);
 }
 public AssignmentExpression(BaseAST identifier, BaseAST expression)
 {
     SetValues(identifier as IdentifierExpression, expression as Expression);
 }