protected PCondIsSymbolAA(PrimitiveIsSymbolA predicate, Argument consequent, SCode alternative) : base(predicate, consequent, alternative) { }
public static SCode Make(PrimitiveIsSymbolA predicate, Argument consequent, SCode alternative) { throw new NotImplementedException (); }
protected PCondIsSymbolASQ(PrimitiveIsSymbolA predicate, SCode consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
internal static PCondIsSymbolA Make(PrimitiveIsSymbolA predicate, SCode consequent, Quotation alternative) { return new PCondIsSymbolASQ (predicate, consequent, alternative); }
internal static SCode Make(PrimitiveIsSymbolA 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 PCondIsSymbolAQQ (predicate, consequent, alternative); }
internal static PCondIsSymbolA Make(PrimitiveIsSymbolA predicate, SCode consequent, LexicalVariable lexicalVariable) { throw new NotImplementedException (); }
internal static SCode Make(PrimitiveIsSymbolA predicate, Quotation consequent, LexicalVariable alternative) { return new PCondIsSymbolAQL (predicate, consequent, alternative); }
public static SCode Make(PrimitiveIsSymbolA predicate, SCode alternative) { return ((predicate is PrimitiveIsSymbolA0) ? POrIsSymbolA0.Make((PrimitiveIsSymbolA0)predicate, alternative) : new POrIsSymbolA(predicate, alternative)); }
internal static SCode Make(PrimitiveIsSymbolA predicate, Quotation consequent, SCode alternative) { return (alternative is LexicalVariable) ? PCondIsSymbolAQL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsSymbolAQQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsSymbolAQ (predicate, consequent, alternative); }
protected PCondIsSymbolAQL(PrimitiveIsSymbolA predicate, Quotation consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { }
protected PCondIsSymbolAQ(PrimitiveIsSymbolA predicate, Quotation consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentValue = consequent.Quoted; }
public static SCode Make(PrimitiveIsSymbolA predicate, LexicalVariable consequent, Quotation alternative) { throw new NotImplementedException (); }
protected PCondIsSymbolAL1(PrimitiveIsSymbolA predicate, LexicalVariable1 consequent, SCode alternative) : base(predicate, consequent, alternative) { }
public static SCode Make(PrimitiveIsSymbolA predicate, SCode consequent, SCode alternative) { return (predicate is PrimitiveIsSymbolA0) ? PCondIsSymbolA0.Make ((PrimitiveIsSymbolA0) predicate, consequent, alternative) : (predicate is PrimitiveIsSymbolA1) ? PCondIsSymbolA1.Make ((PrimitiveIsSymbolA1) predicate, consequent, alternative) : (consequent is LexicalVariable) ? PCondIsSymbolAL.Make (predicate, (LexicalVariable) consequent, alternative) : (consequent is Quotation) ? PCondIsSymbolAQ.Make (predicate, (Quotation) consequent, alternative) : (alternative is LexicalVariable) ? PCondIsSymbolASL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsSymbolASQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsSymbolA (predicate, consequent, alternative); }
protected PCondIsSymbolAQQ(PrimitiveIsSymbolA predicate, Quotation consequent, Quotation alternative) : base(predicate, consequent, alternative) { }
protected PCondIsSymbolAL(PrimitiveIsSymbolA predicate, LexicalVariable consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentName = consequent.Name; this.consequentDepth = consequent.Depth; this.consequentOffset = consequent.Offset; }
protected POrIsSymbolA(PrimitiveIsSymbolA predicate, SCode alternative) : base(predicate, alternative) { this.argumentOffset = predicate.arg0Offset; }