Пример #1
0
 public static SCode Make(PrimitiveCombination2LQ predicate, Quotation consequent, SCode alternative)
 {
     return
         (alternative is LexicalVariable) ? PCond2LQQL.Make (predicate, consequent, (LexicalVariable) alternative) :
         (alternative is Quotation) ? PCond2LQQQ.Make (predicate, consequent, (Quotation) alternative) :
         new PCond2LQQ (predicate, consequent, alternative);
 }
Пример #2
0
 public static SCode Make(PrimitiveCombination2LQ predicate, Argument consequent, SCode alternative)
 {
     return
         (consequent is Argument0) ? PCond2LQA0.Make (predicate, (Argument0) consequent, alternative) :
         (consequent is Argument1) ? PCond2LQA1.Make (predicate, (Argument1) consequent, alternative) :
         (alternative is LexicalVariable) ? PCond2LQAL.Make (predicate, consequent, (LexicalVariable) alternative) :
         (alternative is Quotation) ? PCond2LQAQ.Make (predicate, consequent, (Quotation) alternative) :
         new PCond2LQA (predicate, consequent, alternative);
 }
Пример #3
0
 protected PCond2LQQ(PrimitiveCombination2LQ predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
Пример #4
0
 PCond2LQSL1(PrimitiveCombination2LQ predicate, SCode consequent, LexicalVariable1 alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #5
0
 PCond2LQSQ(PrimitiveCombination2LQ predicate, SCode consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Пример #6
0
 public static SCode Make(PrimitiveCombination2LQ predicate, SCode consequent, Argument alternative)
 {
     return
         (alternative is Argument0) ? PCond2LQSA0.Make (predicate, consequent, (Argument0) alternative) :
         (alternative is Argument1) ? PCond2LQSA1.Make (predicate, consequent, (Argument1) alternative) :
         new PCond2LQSA (predicate, consequent, alternative);
 }
Пример #7
0
 protected PCond2LQSL(PrimitiveCombination2LQ predicate, SCode consequent, LexicalVariable alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeName = alternative.Name;
     this.alternativeDepth = alternative.Depth;
     this.alternativeOffset = alternative.Offset;
 }
Пример #8
0
 protected PCond2LQL(PrimitiveCombination2LQ predicate, LexicalVariable consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentName = consequent.Name;
     this.consequentDepth = consequent.Depth;
     this.consequentOffset = consequent.Offset;
 }
Пример #9
0
 public static SCode Make(PrimitiveCombination2LQ predicate, LexicalVariable consequent, SCode alternative)
 {
     return
         (consequent is Argument) ? PCond2LQA.Make (predicate, (Argument) consequent, alternative) :
         (consequent is LexicalVariable1) ? PCond2LQL1.Make (predicate, (LexicalVariable1) consequent, alternative) :
         (alternative is LexicalVariable) ? PCond2LQLL.Make (predicate, consequent, (LexicalVariable) alternative) :
         (alternative is Quotation) ? PCond2LQLQ.Make (predicate, consequent, (Quotation) alternative) :
         new PCond2LQL (predicate, consequent, alternative);
 }
Пример #10
0
 // (s q a1 l1)
 protected PCond2LQA1A(PrimitiveCombination2LQ predicate, Argument1 consequent, Argument alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #11
0
 // (s q a a0)
 PCond2LQAA0(PrimitiveCombination2LQ predicate, Argument consequent, Argument0 alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #12
0
 // (s q a0 l1)
 PCond2LQA0L1(PrimitiveCombination2LQ predicate, Argument0 consequent, LexicalVariable1 alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #13
0
 public static SCode Make(PrimitiveCombination2LQ predicate, Argument0 consequent, Argument0 alternative)
 {
     return
         new PCond2LQA0A0 (predicate, consequent, alternative);
 }
Пример #14
0
 // (s q a0 s)
 protected PCond2LQA0(PrimitiveCombination2LQ predicate, Argument0 consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #15
0
 // (s q q a1)
 PCond2LQQA1(PrimitiveCombination2LQ predicate, Quotation consequent, Argument1 alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #16
0
 // (s q l1 l1)
 protected PCond2LQL1A(PrimitiveCombination2LQ predicate, LexicalVariable1 consequent, Argument alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #17
0
 public static SCode Make(PrimitiveCombination2LQ predicate, Quotation consequent, Argument1 alternative)
 {
     return
         new PCond2LQQA1 (predicate, consequent, alternative);
 }
Пример #18
0
 public static SCode Make(PrimitiveCombination2LQ predicate, LexicalVariable1 consequent, Quotation alternative)
 {
     return
         new PCond2LQL1Q (predicate, consequent, alternative);
 }
Пример #19
0
 PCond2LQSA1(PrimitiveCombination2LQ predicate, SCode consequent, Argument1 alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #20
0
 public static SCode Make(PrimitiveCombination2LQ predicate, LexicalVariable consequent, Argument0 alternative)
 {
     return
         new PCond2LQLA0 (predicate, consequent, alternative);
 }
Пример #21
0
 public static SCode Make(PrimitiveCombination2LQ predicate, SCode consequent, LexicalVariable alternative)
 {
     return
         (alternative is Argument) ? PCond2LQSA.Make (predicate, consequent, (Argument) alternative) :
         (alternative is LexicalVariable1) ? PCond2LQSL1.Make (predicate, consequent, (LexicalVariable1) alternative) :
         new PCond2LQSL (predicate, consequent, alternative);
 }
Пример #22
0
 // (s q l a1)
 PCond2LQLA1(PrimitiveCombination2LQ predicate, LexicalVariable consequent, Argument1 alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #23
0
 public static SCode Make(PrimitiveCombination2LQ predicate, SCode consequent, LexicalVariable1 alternative)
 {
     return new PCond2LQSL1 (predicate, consequent, alternative);
 }
Пример #24
0
 PCond2LQLQ(PrimitiveCombination2LQ predicate, LexicalVariable consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Пример #25
0
 public static SCode Make(PrimitiveCombination2LQ predicate, SCode consequent, Quotation alternative)
 {
     return new PCond2LQSQ (predicate, consequent, alternative);
 }
Пример #26
0
 protected PCond2LQ(PrimitiveCombination2LQ predicate, SCode consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.rand1Value = predicate.rand1Value;
 }