Exemplo n.º 1
0
 public Assign(ASTExpression left, ASTExpression right) : base(left, right)
 {
 }
Exemplo n.º 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;
 }
Exemplo n.º 3
0
 public Div(ASTExpression left, ASTExpression right) : base(left, right)
 {
 }
Exemplo n.º 4
0
 public Mult(ASTExpression left, ASTExpression right) : base(left, right)
 {
 }
Exemplo n.º 5
0
 public ASTBinaryExpression(ASTExpression left, ASTExpression right)
 {
     Left  = left;
     Right = right;
 }
Exemplo n.º 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;
 }
Exemplo n.º 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;
 }