コード例 #1
0
ファイル: Template.cs プロジェクト: luckysunda/hice-dt
 public Template(TemplateOperator op, Template left, Template right)
 {
     this.op    = op;
     this.left  = left;
     this.right = right;
     this.value = 0;
 }
コード例 #2
0
ファイル: Template.cs プロジェクト: luckysunda/hice-dt
 /*
  * 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;
 }
コード例 #3
0
ファイル: Template.cs プロジェクト: Chenguang-Zhu/ICE-C5
 /*
 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;
 }
コード例 #4
0
ファイル: Template.cs プロジェクト: Chenguang-Zhu/ICE-C5
 public Template(TemplateOperator op, Template left, Template right)
 {
     this.op = op;
     this.left = left;
     this.right = right;
     this.value = 0;
 }
コード例 #5
0
 public TemplateCondition(string left, TemplateOperator oprt, string right)
 {
     this.Left  = left;
     this.Oprt  = oprt;
     this.Right = right.Replace("\\_", " ");
 }