Ejemplo n.º 1
0
 public static SCode Make(PrimitiveIsVectorA predicate, Argument consequent, SCode alternative)
 {
     throw new NotImplementedException ();
 }
Ejemplo n.º 2
0
 internal static PCondIsVectorA Make(PrimitiveIsVectorA predicate, SCode consequent, Quotation alternative)
 {
     return new PCondIsVectorASQ (predicate, consequent, alternative);
 }
Ejemplo n.º 3
0
 protected PCondIsVectorAA(PrimitiveIsVectorA predicate, Argument consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Ejemplo n.º 4
0
 internal static PCondIsVectorA Make(PrimitiveIsVectorA predicate, SCode consequent, LexicalVariable lexicalVariable)
 {
     throw new NotImplementedException ();
 }
Ejemplo n.º 5
0
 protected PCondIsVectorASQ(PrimitiveIsVectorA predicate, SCode consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Ejemplo n.º 6
0
 protected PCondIsVectorAQQ(PrimitiveIsVectorA predicate, Quotation consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
 }
Ejemplo n.º 7
0
 internal static SCode Make(PrimitiveIsVectorA 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 PCondIsVectorAQQ (predicate, consequent, alternative);
 }
Ejemplo n.º 8
0
 protected PCondIsVectorAQL(PrimitiveIsVectorA predicate, Quotation consequent, LexicalVariable alternative)
     : base(predicate, consequent, alternative)
 {
 }
Ejemplo n.º 9
0
 internal static SCode Make(PrimitiveIsVectorA predicate, Quotation consequent, LexicalVariable alternative)
 {
     return new PCondIsVectorAQL (predicate, consequent, alternative);
 }
Ejemplo n.º 10
0
 protected PCondIsVectorAQ(PrimitiveIsVectorA predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
Ejemplo n.º 11
0
 internal static SCode Make(PrimitiveIsVectorA predicate, Quotation consequent, SCode alternative)
 {
     return
         (alternative is LexicalVariable) ? PCondIsVectorAQL.Make (predicate, consequent, (LexicalVariable) alternative)
         : (alternative is Quotation) ? PCondIsVectorAQQ.Make (predicate, consequent, (Quotation) alternative)
         : new PCondIsVectorAQ (predicate, consequent, alternative);
 }
Ejemplo n.º 12
0
 public static SCode Make(PrimitiveIsVectorA predicate, LexicalVariable consequent, Quotation alternative)
 {
     throw new NotImplementedException ();
 }
Ejemplo n.º 13
0
 protected PCondIsVectorAL1(PrimitiveIsVectorA predicate, LexicalVariable1 consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Ejemplo n.º 14
0
 public static SCode Make(PrimitiveIsVectorA predicate, SCode consequent, SCode alternative)
 {
     return
         (predicate is PrimitiveIsVectorA0) ? PCondIsVectorA0.Make ((PrimitiveIsVectorA0) predicate, consequent, alternative)
         : (predicate is PrimitiveIsVectorA1) ? PCondIsVectorA1.Make ((PrimitiveIsVectorA1) predicate, consequent, alternative)
         : (consequent is LexicalVariable) ? PCondIsVectorAL.Make (predicate, (LexicalVariable) consequent, alternative)
         : (consequent is Quotation) ? PCondIsVectorAQ.Make (predicate, (Quotation) consequent, alternative)
         : (alternative is LexicalVariable) ? PCondIsVectorASL.Make (predicate, consequent, (LexicalVariable) alternative)
         : (alternative is Quotation) ? PCondIsVectorASQ.Make (predicate, consequent, (Quotation) alternative)
         : new PCondIsVectorA (predicate, consequent, alternative);
 }
Ejemplo n.º 15
0
 protected PCondIsVectorAL(PrimitiveIsVectorA predicate, LexicalVariable consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentName = consequent.Name;
     this.consequentDepth = consequent.Depth;
     this.consequentOffset = consequent.Offset;
 }
Ejemplo n.º 16
0
 internal static SCode Make(PrimitiveIsVectorA predicate, LexicalVariable consequent, SCode alternative)
 {
     return
         (consequent is Argument) ? Unimplemented():
         (consequent is LexicalVariable1) ? Unimplemented():
         (alternative is LexicalVariable) ? PCondIsVectorALL.Make (predicate, consequent, (LexicalVariable) alternative):
         (alternative is Quotation) ? PCondIsVectorALQ.Make (predicate, consequent, (Quotation) alternative):
         new PCondIsVectorAL (predicate, consequent, alternative);
 }