protected PCondIsBigFixnumLSQ(PrimitiveIsBigFixnumL predicate, SCode consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
public static SCode Make(PrimitiveIsBigFixnumL predicate, SCode consequent, Quotation alternative) { return new PCondIsBigFixnumLSQ (predicate, consequent, alternative); }
protected PCondIsBigFixnumLSL(PrimitiveIsBigFixnumL predicate, SCode consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { }
public static SCode Make(PrimitiveIsBigFixnumL predicate, SCode consequent, LexicalVariable alternative) { return new PCondIsBigFixnumLSL (predicate, consequent, alternative); }
protected PCondIsBigFixnumLQQ(PrimitiveIsBigFixnumL predicate, Quotation consequent, Quotation alternative) : base(predicate, consequent, alternative) { }
public static SCode Make(PrimitiveIsBigFixnumL 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 PCondIsBigFixnumLQQ (predicate, consequent, alternative); }
public static SCode Make(PrimitiveIsBigFixnumL predicate, Quotation consequent, SCode alternative) { return (alternative is LexicalVariable) ? PCondIsBigFixnumLQL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsBigFixnumLQQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsBigFixnumLQ (predicate, consequent, alternative); }
protected PCondIsBigFixnumLQ(PrimitiveIsBigFixnumL predicate, Quotation consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentValue = consequent.Quoted; }
protected PCondIsBigFixnumLLQ(PrimitiveIsBigFixnumL predicate, LexicalVariable consequent, Quotation alternative) : base(predicate, consequent, alternative) { }
public static SCode Make(PrimitiveIsBigFixnumL predicate, SCode consequent, SCode alternative) { return (predicate is PrimitiveIsBigFixnumA) ? PCondIsBigFixnumA.Make ((PrimitiveIsBigFixnumA) predicate, consequent, alternative) : (predicate is PrimitiveIsBigFixnumL1) ? PCondIsBigFixnumL1.Make ((PrimitiveIsBigFixnumL1) predicate, consequent, alternative) : (consequent is LexicalVariable) ? PCondIsBigFixnumLL.Make (predicate, (LexicalVariable) consequent, alternative) : (consequent is Quotation) ? PCondIsBigFixnumLQ.Make (predicate, (Quotation) consequent, alternative) : (alternative is LexicalVariable) ? PCondIsBigFixnumLSL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsBigFixnumLSQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsBigFixnumL (predicate, consequent, alternative); }
protected PCondIsBigFixnumL(PrimitiveIsBigFixnumL 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; }