예제 #1
0
 public Assign(ASTExpression left, ASTExpression right) : base(left, right)
 {
 }
예제 #2
0
파일: While.cs 프로젝트: imtsuki/NotC
 /// <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;
 }
예제 #3
0
 public Div(ASTExpression left, ASTExpression right) : base(left, right)
 {
 }
예제 #4
0
 public Mult(ASTExpression left, ASTExpression right) : base(left, right)
 {
 }
예제 #5
0
 public ASTBinaryExpression(ASTExpression left, ASTExpression right)
 {
     Left  = left;
     Right = right;
 }
예제 #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;
 }
예제 #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;
 }