protected PCondIsNegativeLSQ(PrimitiveIsNegativeL predicate, SCode consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
public static SCode Make(PrimitiveIsNegativeL predicate, SCode consequent, Quotation alternative) { return new PCondIsNegativeLSQ (predicate, consequent, alternative); }
protected PCondIsNegativeLSL(PrimitiveIsNegativeL predicate, SCode consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { }
public static SCode Make(PrimitiveIsNegativeL predicate, SCode consequent, LexicalVariable alternative) { return new PCondIsNegativeLSL (predicate, consequent, alternative); }
protected PCondIsNegativeLQQ(PrimitiveIsNegativeL predicate, Quotation consequent, Quotation alternative) : base(predicate, consequent, alternative) { }
public static SCode Make(PrimitiveIsNegativeL 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 PCondIsNegativeLQQ (predicate, consequent, alternative); }
protected PCondIsNegativeLQL(PrimitiveIsNegativeL predicate, Quotation consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { }
public static SCode Make(PrimitiveIsNegativeL predicate, Quotation consequent, SCode alternative) { return (alternative is LexicalVariable) ? PCondIsNegativeLQL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsNegativeLQQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsNegativeLQ (predicate, consequent, alternative); }
protected PCondIsNegativeLQ(PrimitiveIsNegativeL predicate, Quotation consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentValue = consequent.Quoted; }
public static SCode Make(PrimitiveIsNegativeL predicate, SCode consequent, SCode alternative) { return (predicate is PrimitiveIsNegativeA) ? PCondIsNegativeA.Make ((PrimitiveIsNegativeA) predicate, consequent, alternative) : (predicate is PrimitiveIsNegativeL1) ? PCondIsNegativeL1.Make ((PrimitiveIsNegativeL1) predicate, consequent, alternative) : (consequent is LexicalVariable) ? PCondIsNegativeLL.Make (predicate, (LexicalVariable) consequent, alternative) : (consequent is Quotation) ? PCondIsNegativeLQ.Make (predicate, (Quotation) consequent, alternative) : (alternative is LexicalVariable) ? PCondIsNegativeLSL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsNegativeLSQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsNegativeL (predicate, consequent, alternative); }
protected PCondIsNegativeL(PrimitiveIsNegativeL predicate, SCode consequent, SCode alternative) : base(predicate, consequent, alternative) { this.predicateName = ((LexicalVariable) predicate.Operand).Name; this.predicateDepth = ((LexicalVariable) predicate.Operand).Depth; this.predicateOffset = ((LexicalVariable) predicate.Operand).Offset; }