Example #1
0
 internal static SCode Make(PrimitiveIsSymbolA0 predicate, SCode consequent, Quotation alternative)
 {
     return new PCondIsSymbolA0SQ (predicate, consequent, alternative);
 }
Example #2
0
 internal static SCode Make(PrimitiveIsSymbolA0 predicate, SCode consequent, LexicalVariable alternative)
 {
     return new PCondIsSymbolA0SL (predicate, consequent, alternative);
 }
Example #3
0
 protected PCondIsSymbolA0SQ(PrimitiveIsSymbolA0 predicate, SCode consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Example #4
0
 internal static SCode Make(PrimitiveIsSymbolA0 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 PCondIsSymbolA0QQ (predicate, consequent, alternative);
 }
Example #5
0
 protected PCondIsSymbolA0SL(PrimitiveIsSymbolA0 predicate, SCode consequent, LexicalVariable alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeName = alternative.Name;
     this.alternativeDepth = alternative.Depth;
     this.alternativeOffset = alternative.Offset;
 }
Example #6
0
 protected PCondIsSymbolA0QL(PrimitiveIsSymbolA0 predicate, Quotation consequent, LexicalVariable alternative)
     : base(predicate, consequent, alternative)
 {
 }
Example #7
0
 protected PCondIsSymbolA0QQ(PrimitiveIsSymbolA0 predicate, Quotation consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
 }
Example #8
0
 protected PCondIsSymbolA0Q(PrimitiveIsSymbolA0 predicate, Quotation consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentValue = consequent.Quoted;
 }
Example #9
0
 internal static SCode Make(PrimitiveIsSymbolA0 predicate, Quotation consequent, SCode alternative)
 {
     return
     (alternative is LexicalVariable) ? PCondIsSymbolA0QL.Make (predicate, consequent, (LexicalVariable) alternative)
     : (alternative is Quotation) ? PCondIsSymbolA0QQ.Make (predicate, consequent, (Quotation) alternative)
     : new PCondIsSymbolA0Q (predicate, consequent, alternative);
 }
Example #10
0
 protected PCondIsSymbolA0LQ(PrimitiveIsSymbolA0 predicate, LexicalVariable consequent, Quotation alternative)
     : base(predicate, consequent, alternative)
 {
     this.alternativeValue = alternative.Quoted;
 }
Example #11
0
 protected PCondIsSymbolA0L(PrimitiveIsSymbolA0 predicate, LexicalVariable consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
     this.consequentName = consequent.Name;
     this.consequentDepth = consequent.Depth;
     this.consequentOffset = consequent.Offset;
 }
Example #12
0
 protected PCondIsSymbolA0(PrimitiveIsSymbolA0 predicate, SCode consequent, SCode alternative)
     : base(predicate, consequent, alternative)
 {
 }
Example #13
0
 public static SCode Make(PrimitiveIsSymbolA0 predicate, SCode alternative)
 {
     return
         (new POrIsSymbolA0(predicate, alternative));
 }
Example #14
0
 protected POrIsSymbolA0(PrimitiveIsSymbolA0 predicate, SCode alternative)
     : base(predicate, alternative)
 {
 }