Esempio n. 1
0
 protected PCondIsSymbolAA(PrimitiveIsSymbolA predicate, Argument consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Esempio n. 2
0
 public static SCode Make(PrimitiveIsSymbolA predicate, Argument consequent, SCode alternative)
 {
     throw new NotImplementedException ();
 }
Esempio n. 3
0
 protected PCondIsSymbolASQ(PrimitiveIsSymbolA predicate, SCode consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Esempio n. 4
0
 internal static PCondIsSymbolA Make(PrimitiveIsSymbolA predicate, SCode consequent, Quotation alternative)
 {
     return new PCondIsSymbolASQ (predicate, consequent, alternative);
 }
Esempio n. 5
0
 internal static SCode Make(PrimitiveIsSymbolA 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 PCondIsSymbolAQQ (predicate, consequent, alternative);
 }
Esempio n. 6
0
 internal static PCondIsSymbolA Make(PrimitiveIsSymbolA predicate, SCode consequent, LexicalVariable lexicalVariable)
 {
     throw new NotImplementedException ();
 }
Esempio n. 7
0
 internal static SCode Make(PrimitiveIsSymbolA predicate, Quotation consequent, LexicalVariable alternative)
 {
     return new PCondIsSymbolAQL (predicate, consequent, alternative);
 }
Esempio n. 8
0
 public static SCode Make(PrimitiveIsSymbolA predicate, SCode alternative)
 {
     return
         ((predicate is PrimitiveIsSymbolA0) ? POrIsSymbolA0.Make((PrimitiveIsSymbolA0)predicate, alternative) :
          new POrIsSymbolA(predicate, alternative));
 }
Esempio n. 9
0
 internal static SCode Make(PrimitiveIsSymbolA predicate, Quotation consequent, SCode alternative)
 {
     return
         (alternative is LexicalVariable) ? PCondIsSymbolAQL.Make (predicate, consequent, (LexicalVariable) alternative)
         : (alternative is Quotation) ? PCondIsSymbolAQQ.Make (predicate, consequent, (Quotation) alternative)
         : new PCondIsSymbolAQ (predicate, consequent, alternative);
 }
Esempio n. 10
0
 protected PCondIsSymbolAQL(PrimitiveIsSymbolA predicate, Quotation consequent, LexicalVariable alternative)
     : base(predicate, consequent, alternative)
 {
 }
Esempio n. 11
0
 protected PCondIsSymbolAQ(PrimitiveIsSymbolA predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
Esempio n. 12
0
 public static SCode Make(PrimitiveIsSymbolA predicate, LexicalVariable consequent, Quotation alternative)
 {
     throw new NotImplementedException ();
 }
Esempio n. 13
0
 protected PCondIsSymbolAL1(PrimitiveIsSymbolA predicate, LexicalVariable1 consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Esempio n. 14
0
 public static SCode Make(PrimitiveIsSymbolA predicate, SCode consequent, SCode alternative)
 {
     return
         (predicate is PrimitiveIsSymbolA0) ? PCondIsSymbolA0.Make ((PrimitiveIsSymbolA0) predicate, consequent, alternative)
         : (predicate is PrimitiveIsSymbolA1) ? PCondIsSymbolA1.Make ((PrimitiveIsSymbolA1) predicate, consequent, alternative)
         : (consequent is LexicalVariable) ? PCondIsSymbolAL.Make (predicate, (LexicalVariable) consequent, alternative)
         : (consequent is Quotation) ? PCondIsSymbolAQ.Make (predicate, (Quotation) consequent, alternative)
         : (alternative is LexicalVariable) ? PCondIsSymbolASL.Make (predicate, consequent, (LexicalVariable) alternative)
         : (alternative is Quotation) ? PCondIsSymbolASQ.Make (predicate, consequent, (Quotation) alternative)
         : new PCondIsSymbolA (predicate, consequent, alternative);
 }
Esempio n. 15
0
 protected PCondIsSymbolAQQ(PrimitiveIsSymbolA predicate, Quotation consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
 }
Esempio n. 16
0
 protected PCondIsSymbolAL(PrimitiveIsSymbolA predicate, LexicalVariable consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentName = consequent.Name;
     this.consequentDepth = consequent.Depth;
     this.consequentOffset = consequent.Offset;
 }
Esempio n. 17
0
 protected POrIsSymbolA(PrimitiveIsSymbolA predicate, SCode alternative)
     : base(predicate, alternative)
 {
     this.argumentOffset = predicate.arg0Offset;
 }