예제 #1
0
 public static new SCode Make(Primitive2 rator, SCode rand0, SCode rand1)
 {
     return
         ((rand0 is Argument) ? PrimitiveRecordRefA.Make(rator, (Argument)rand0, rand1) :
          (rand0 is StaticVariable) ? PrimitiveRecordRefS.Make(rator, (StaticVariable)rand0, rand1) :
          (rand1 is Quotation) ? PrimitiveRecordRefXQ.Make(rator, rand0, (Quotation)rand1) :
          new PrimitiveRecordRef(rator, rand0, rand1));
 }
예제 #2
0
 public static SCode Make(PrimitiveRecordRefXQ predicate, Quotation consequent, SCode alternative)
 {
     return
         (new PCondRecordRefXQQ(predicate, consequent, alternative));
 }
예제 #3
0
 protected PCondRecordRefXQQ(PrimitiveRecordRefXQ predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
예제 #4
0
 public static SCode Make(PrimitiveRecordRefXQ predicate, SCode consequent, SCode alternative)
 {
     return
         ((consequent is Quotation) ? PCondRecordRefXQQ.Make(predicate, (Quotation)consequent, alternative) :
          new PCondRecordRefXQ(predicate, consequent, alternative));
 }
예제 #5
0
 protected PCondRecordRefXQ(PrimitiveRecordRefXQ predicate, SCode consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.rand1Value = predicate.offset;
 }
예제 #6
0
 public static SCode Make(PrimitiveRecordRefXQ predicate, Quotation consequent, SCode alternative)
 {
     return
         new PCondRecordRefXQQ (predicate, consequent, alternative);
 }
예제 #7
0
 protected PCondRecordRefXQQ(PrimitiveRecordRefXQ predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
예제 #8
0
 public static SCode Make(PrimitiveRecordRefXQ predicate, SCode consequent, SCode alternative)
 {
     return
         (consequent is Quotation) ? PCondRecordRefXQQ.Make (predicate, (Quotation) consequent, alternative) :
         new PCondRecordRefXQ (predicate, consequent, alternative);
 }
예제 #9
0
 protected PCondRecordRefXQ(PrimitiveRecordRefXQ predicate, SCode consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.rand1Value = predicate.offset;
 }