public Assign(ASTExpression left, ASTExpression right) : base(left, right) { }
/// <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; }
public Div(ASTExpression left, ASTExpression right) : base(left, right) { }
public Mult(ASTExpression left, ASTExpression right) : base(left, right) { }
public ASTBinaryExpression(ASTExpression left, ASTExpression right) { Left = left; Right = right; }
/// <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; }
/// <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; }