internal static SCode Make(PrimitiveIsCharA0 predicate, SCode consequent, Quotation alternative) { return new PCondIsCharA0SQ (predicate, consequent, alternative); }
internal static SCode Make(PrimitiveIsCharA0 predicate, SCode consequent, LexicalVariable alternative) { return new PCondIsCharA0SL (predicate, consequent, alternative); }
protected PCondIsCharA0SQ(PrimitiveIsCharA0 predicate, SCode consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
internal static SCode Make(PrimitiveIsCharA0 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 PCondIsCharA0QQ (predicate, consequent, alternative); }
protected PCondIsCharA0SL(PrimitiveIsCharA0 predicate, SCode consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { this.alternativeName = alternative.Name; this.alternativeDepth = alternative.Depth; this.alternativeOffset = alternative.Offset; }
protected PCondIsCharA0QL(PrimitiveIsCharA0 predicate, Quotation consequent, LexicalVariable alternative) : base(predicate, consequent, alternative) { }
protected PCondIsCharA0QQ(PrimitiveIsCharA0 predicate, Quotation consequent, Quotation alternative) : base(predicate, consequent, alternative) { }
internal static SCode Make(PrimitiveIsCharA0 predicate, Quotation consequent, SCode alternative) { return (alternative is LexicalVariable) ? PCondIsCharA0QL.Make (predicate, consequent, (LexicalVariable) alternative) : (alternative is Quotation) ? PCondIsCharA0QQ.Make (predicate, consequent, (Quotation) alternative) : new PCondIsCharA0Q (predicate, consequent, alternative); }
protected PCondIsCharA0Q(PrimitiveIsCharA0 predicate, Quotation consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentValue = consequent.Quoted; }
protected PCondIsCharA0LQ(PrimitiveIsCharA0 predicate, LexicalVariable consequent, Quotation alternative) : base(predicate, consequent, alternative) { this.alternativeValue = alternative.Quoted; }
protected PCondIsCharA0L(PrimitiveIsCharA0 predicate, LexicalVariable consequent, SCode alternative) : base(predicate, consequent, alternative) { this.consequentName = consequent.Name; this.consequentDepth = consequent.Depth; this.consequentOffset = consequent.Offset; }
protected PCondIsCharA0(PrimitiveIsCharA0 predicate, SCode consequent, SCode alternative) : base(predicate, consequent, alternative) { }