Example #1
0
 public Assignment(ElementOfArray array, Nodes.Expression expr, Node.Coords coords)
 {
     Var = null;
     Value = expr;
     Array = array;
     this.Coords = coords;
 }
Example #2
0
 public Assignment(Variable var, Nodes.Expression expr, Node.Coords coords)
 {
     Var = var;
     Value = expr;
     Array = null;
     this.Coords = coords;
 }
Example #3
0
 public Condition(Expression left, CompareSign compare, Expression right)
 {
     Compare = compare;
     Left = left;
     Right = right;
     NextTrue = null;
     NextFalse = null;
 }
Example #4
0
 public BinaryOperation(TypeOfOperations operation, Expression left, Expression right)
 {
     if (left == null)
     {
         throw new ArgumentNullException("left");
     }
     if (right == null)
     {
         throw new ArgumentNullException("right");
     }
     Left = left;
     Right = right;
     Operation = operation;
 }
Example #5
0
 public ElementOfArray(string name, Expression index)
 {
     Name = name;
     Index = index;
 }
Example #6
0
 public Print(Expression outExpr, IPrint printer)
 {
     OutExpr = outExpr;
     OutString = null;
     PrintInterface = printer;
 }
Example #7
0
 public Print(string outString, IPrint printer)
 {
     OutString = outString;
     OutExpr = null;
     PrintInterface = printer;
 }