Beispiel #1
0
 public Assign(ASTExpression left, ASTExpression right) : base(left, right)
 {
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="While"/> class with structure like:
 /// while (Condition)
 ///     Body
 /// </summary>
 /// <param name="condition">The condition.</param>
 /// <param name="body">The body.</param>
 public While(ASTExpression condition, ASTStatement body)
 {
     Condition = condition;
     Body      = body;
 }
Beispiel #3
0
 public Div(ASTExpression left, ASTExpression right) : base(left, right)
 {
 }
Beispiel #4
0
 public Mult(ASTExpression left, ASTExpression right) : base(left, right)
 {
 }
Beispiel #5
0
 public ASTBinaryExpression(ASTExpression left, ASTExpression right)
 {
     Left  = left;
     Right = right;
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="If"/> class with structure like:
 /// if (Condition)
 ///     TrueBody
 /// else
 ///     FalseBody
 /// </summary>
 /// <param name="condition">The condition.</param>
 /// <param name="trueBody">The true body.</param>
 /// <param name="falseBody">The false body.</param>
 public If(ASTExpression condition, ASTStatement trueBody, ASTStatement falseBody)
 {
     Condition = condition;
     TrueBody  = trueBody;
     FalseBody = falseBody;
 }
Beispiel #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="If"/> class with structure like:
 /// if (Condition)
 ///     Body
 /// </summary>
 /// <param name="condition">The condition.</param>
 /// <param name="body">The body.</param>
 public If(ASTExpression condition, ASTStatement body)
 {
     Condition = condition;
     TrueBody  = body;
     FalseBody = null;
 }