protected PCondIsNegativeAA(PrimitiveIsNegativeA predicate, Argument consequent, SCode alternative) : base(predicate, consequent, alternative) { }
public static SCode Make(PrimitiveIsNegativeA predicate, Argument consequent, SCode alternative) { throw new NotImplementedException (); }
protected PCondIsNegativeASQ(PrimitiveIsNegativeA predicate, SCode consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
internal static PCondIsNegativeA Make(PrimitiveIsNegativeA predicate, SCode consequent, Quotation alternative) { return new PCondIsNegativeASQ (predicate, consequent, alternative); }
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); }
internal static PCondIsNegativeA Make(PrimitiveIsNegativeA predicate, SCode consequent, LexicalVariable lexicalVariable) { throw new NotImplementedException (); }
internal static SCode Make(PrimitiveIsNegativeA predicate, Quotation consequent, LexicalVariable alternative) { return new PCondIsNegativeAQL (predicate, consequent, alternative); }
protected PCondIsNegativeAQQ(PrimitiveIsNegativeA predicate, Quotation consequent, Quotation alternative) : base(predicate, consequent, alternative) { }
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); }
protected PCondIsNegativeAQL(PrimitiveIsNegativeA predicate, Quotation consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { }
protected PCondIsNegativeAQ(PrimitiveIsNegativeA predicate, Quotation consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentValue = consequent.Quoted; }
public static SCode Make(PrimitiveIsNegativeA predicate, LexicalVariable consequent, Quotation alternative) { throw new NotImplementedException (); }
protected PCondIsNegativeAL1(PrimitiveIsNegativeA predicate, LexicalVariable1 consequent, SCode alternative) : base(predicate, consequent, alternative) { }
protected PCondIsNegativeAL(PrimitiveIsNegativeA predicate, LexicalVariable consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentName = consequent.Name; this.consequentDepth = consequent.Depth; this.consequentOffset = consequent.Offset; }
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); }