protected PCondIsVectorA1SQ(PrimitiveIsVectorA1 predicate, SCode consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
internal static SCode Make(PrimitiveIsVectorA1 predicate, SCode consequent, Quotation alternative) { return new PCondIsVectorA1SQ (predicate, consequent, alternative); }
protected PCondIsVectorA1SL(PrimitiveIsVectorA1 predicate, SCode consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { this.alternativeName = alternative.Name; this.alternativeDepth = alternative.Depth; this.alternativeOffset = alternative.Offset; }
internal static SCode Make(PrimitiveIsVectorA1 predicate, SCode consequent, LexicalVariable alternative) { return new PCondIsVectorA1SL (predicate, consequent, alternative); }
protected PCondIsVectorA1QQ(PrimitiveIsVectorA1 predicate, Quotation consequent, Quotation alternative) : base(predicate, consequent, alternative) { }
internal static SCode Make(PrimitiveIsVectorA1 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); } throw new NotImplementedException (); }
protected PCondIsVectorA1QL(PrimitiveIsVectorA1 predicate, Quotation consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { }
internal static SCode Make(PrimitiveIsVectorA1 predicate, Quotation quotation, LexicalVariable alternative) { throw new NotImplementedException (); }
internal static SCode Make(PrimitiveIsVectorA1 predicate, Quotation consequent, SCode alternative) { return (alternative is LexicalVariable) ? PCondIsVectorA1QL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsVectorA1QQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsVectorA1Q (predicate, consequent, alternative); }
protected PCondIsVectorA1Q(PrimitiveIsVectorA1 predicate, Quotation consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentValue = consequent.Quoted; }
protected PCondIsVectorA1LQ(PrimitiveIsVectorA1 predicate, LexicalVariable consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
protected PCondIsVectorA1L(PrimitiveIsVectorA1 predicate, LexicalVariable consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentName = consequent.Name; this.consequentDepth = consequent.Depth; this.consequentOffset = consequent.Offset; }
protected PCondIsVectorA1(PrimitiveIsVectorA1 predicate, SCode consequent, SCode alternative) : base(predicate, consequent, alternative) { }