Esempio n. 1
0
 protected PCondIsFixnumA1QL(PrimitiveIsFixnumA1 predicate, Quotation consequent, LexicalVariable alternative)
     : base(predicate, consequent, alternative)
 {
 }
Esempio n. 2
0
 protected PCondIsFixnumA1Q(PrimitiveIsFixnumA1 predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
Esempio n. 3
0
 internal static SCode Make(PrimitiveIsFixnumA1 predicate, Quotation consequent, SCode alternative)
 {
     return
     (alternative is LexicalVariable) ? PCondIsFixnumA1QL.Make (predicate, consequent, (LexicalVariable) alternative)
     : (alternative is Quotation) ? PCondIsFixnumA1QQ.Make (predicate, consequent, (Quotation) alternative)
     : new PCondIsFixnumA1Q (predicate, consequent, alternative);
 }
Esempio n. 4
0
 protected PCondIsFixnumA1LQ(PrimitiveIsFixnumA1 predicate, LexicalVariable consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Esempio n. 5
0
 internal static SCode Make(PrimitiveIsFixnumA1 predicate, LexicalVariable consequent, Quotation alternative)
 {
     return new PCondIsFixnumA1LQ (predicate, consequent, alternative);
 }
Esempio n. 6
0
 protected PCondIsFixnumA1(PrimitiveIsFixnumA1 predicate, SCode consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Esempio n. 7
0
 protected PCondIsFixnumA1L(PrimitiveIsFixnumA1 predicate, LexicalVariable consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentName = consequent.Name;
     this.consequentDepth = consequent.Depth;
     this.consequentOffset = consequent.Offset;
 }
Esempio n. 8
0
 protected PCondIsFixnumA1SQ(PrimitiveIsFixnumA1 predicate, SCode consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Esempio n. 9
0
 protected PCondIsFixnumA1SL(PrimitiveIsFixnumA1 predicate, SCode consequent, LexicalVariable alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeName = alternative.Name;
     this.alternativeDepth = alternative.Depth;
     this.alternativeOffset = alternative.Offset;
 }
Esempio n. 10
0
 internal static SCode Make(PrimitiveIsFixnumA1 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);
     }
     throw new NotImplementedException ();
 }
Esempio n. 11
0
 protected PCondIsFixnumA1QQ(PrimitiveIsFixnumA1 predicate, Quotation consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
 }
Esempio n. 12
0
 internal static SCode Make(PrimitiveIsFixnumA1 predicate, Quotation quotation, LexicalVariable alternative)
 {
     throw new NotImplementedException ();
 }