Пример #1
0
 protected PCondIsNegativeAA(PrimitiveIsNegativeA predicate, Argument consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #2
0
 public static SCode Make(PrimitiveIsNegativeA predicate, Argument consequent, SCode alternative)
 {
     throw new NotImplementedException ();
 }
Пример #3
0
 protected PCondIsNegativeASQ(PrimitiveIsNegativeA predicate, SCode consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Пример #4
0
 internal static PCondIsNegativeA Make(PrimitiveIsNegativeA predicate, SCode consequent, Quotation alternative)
 {
     return new PCondIsNegativeASQ (predicate, consequent, alternative);
 }
Пример #5
0
 internal static SCode Make(PrimitiveIsNegativeA predicate, Quotation consequent, Quotation alternative)
 {
     if (consequent.Quoted == alternative.Quoted) {
         Debug.WriteLine ("; Optimize (if <expr> <literal> <literal>) => (begin <expr> <literal>)");
         return Sequence2.Make (predicate, consequent);
     }
     else if (Configuration.EnableTrueUnspecific && consequent.Quoted == Constant.Unspecific) {
         Debug.WriteLine ("; Optimize (if <expr> <unspecific> <literal>) => (begin <expr> <literal>)");
         return Sequence2.Make (predicate, alternative);
     }
     else if (Configuration.EnableTrueUnspecific && alternative.Quoted == Constant.Unspecific) {
         Debug.WriteLine ("; Optimize (if <expr> <literal> <unspecific>) => (begin <expr> <literal>)");
         return Sequence2.Make (predicate, consequent);
     }
     return new PCondIsNegativeAQQ (predicate, consequent, alternative);
 }
Пример #6
0
 internal static PCondIsNegativeA Make(PrimitiveIsNegativeA predicate, SCode consequent, LexicalVariable lexicalVariable)
 {
     throw new NotImplementedException ();
 }
Пример #7
0
 internal static SCode Make(PrimitiveIsNegativeA predicate, Quotation consequent, LexicalVariable alternative)
 {
     return new PCondIsNegativeAQL (predicate, consequent, alternative);
 }
Пример #8
0
 protected PCondIsNegativeAQQ(PrimitiveIsNegativeA predicate, Quotation consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #9
0
 internal static SCode Make(PrimitiveIsNegativeA predicate, Quotation consequent, SCode alternative)
 {
     return
         (alternative is LexicalVariable) ? PCondIsNegativeAQL.Make (predicate, consequent, (LexicalVariable) alternative)
         : (alternative is Quotation) ? PCondIsNegativeAQQ.Make (predicate, consequent, (Quotation) alternative)
         : new PCondIsNegativeAQ (predicate, consequent, alternative);
 }
Пример #10
0
 protected PCondIsNegativeAQL(PrimitiveIsNegativeA predicate, Quotation consequent, LexicalVariable alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #11
0
 protected PCondIsNegativeAQ(PrimitiveIsNegativeA predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
Пример #12
0
 public static SCode Make(PrimitiveIsNegativeA predicate, LexicalVariable consequent, Quotation alternative)
 {
     throw new NotImplementedException ();
 }
Пример #13
0
 protected PCondIsNegativeAL1(PrimitiveIsNegativeA predicate, LexicalVariable1 consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Пример #14
0
 protected PCondIsNegativeAL(PrimitiveIsNegativeA predicate, LexicalVariable consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentName = consequent.Name;
     this.consequentDepth = consequent.Depth;
     this.consequentOffset = consequent.Offset;
 }
Пример #15
0
 public static SCode Make(PrimitiveIsNegativeA predicate, SCode consequent, SCode alternative)
 {
     return
         (predicate is PrimitiveIsNegativeA0) ? PCondIsNegativeA0.Make ((PrimitiveIsNegativeA0) predicate, consequent, alternative)
         : (predicate is PrimitiveIsNegativeA1) ? PCondIsNegativeA1.Make ((PrimitiveIsNegativeA1) predicate, consequent, alternative)
         : (consequent is LexicalVariable) ? PCondIsNegativeAL.Make (predicate, (LexicalVariable) consequent, alternative)
         : (consequent is Quotation) ? PCondIsNegativeAQ.Make (predicate, (Quotation) consequent, alternative)
         : (alternative is LexicalVariable) ? PCondIsNegativeASL.Make (predicate, consequent, (LexicalVariable) alternative)
         : (alternative is Quotation) ? PCondIsNegativeASQ.Make (predicate, consequent, (Quotation) alternative)
         : new PCondIsNegativeA (predicate, consequent, alternative);
 }