Esempio n. 1
0
 public Template(TemplateOperator op, Template left, Template right)
 {
     this.op    = op;
     this.left  = left;
     this.right = right;
     this.value = 0;
 }
Esempio n. 2
0
 /*
  * public Template(string templateString)
  * {
  *  this.op = TemplateOperator.None;
  *  this.value = 1;
  *  this.left = null;
  *  this.right = null;
  * }*/
 /*
  * public Template(TemplateOperator op)
  * {
  *  this.op = op;
  *  this.value = 0;
  *  this.left = null;
  *  this.right = null;
  * }
  */
 public Template(int v)
 {
     Debug.Assert(v > 0);
     this.op    = TemplateOperator.None;
     this.value = v;
     this.left  = null;
     this.right = null;
 }
Esempio n. 3
0
 /*
 public Template(string templateString)
 {
     this.op = TemplateOperator.None;
     this.value = 1;
     this.left = null;
     this.right = null;
 }*/
 /*
 public Template(TemplateOperator op)
 {
     this.op = op;
     this.value = 0;
     this.left = null;
     this.right = null;
 }
 */
 public Template(int v)
 {
     Debug.Assert(v > 0);
     this.op = TemplateOperator.None;
     this.value = v;
     this.left = null;
     this.right = null;
 }
Esempio n. 4
0
 public Template(TemplateOperator op, Template left, Template right)
 {
     this.op = op;
     this.left = left;
     this.right = right;
     this.value = 0;
 }
Esempio n. 5
0
 public TemplateCondition(string left, TemplateOperator oprt, string right)
 {
     this.Left  = left;
     this.Oprt  = oprt;
     this.Right = right.Replace("\\_", " ");
 }