protected BooleanTerminal(BooleanTerminal other, ParserCloneArgs args) : base(other, args) { this.CaseSensitive = other.CaseSensitive; this.TrueValues = other.TrueValues != null ? (string[])other.TrueValues.Clone() : null; this.FalseValues = other.FalseValues != null ? (string[])other.FalseValues.Clone() : null; }
protected NumberParser(NumberParser other, ParserCloneArgs chain) : base(other, chain) { AllowSign = other.AllowSign; AllowExponent = other.AllowExponent; DecimalSeparator = other.DecimalSeparator; ValueType = other.ValueType; }
protected UntilParser(UntilParser other, ParserCloneArgs args) : base(other, args) { Minimum = other.Minimum; Maximum = other.Maximum; Skip = other.Skip; Capture = other.Capture; }
protected GroupParser(GroupParser other, ParserCloneArgs chain) : base(other, chain) { this.line = chain.Clone(other.line); this.start = chain.Clone(other.start); this.end = chain.Clone(other.end); SetLine(); SetBlock(); SetInner(); }
protected RepeatParser(RepeatParser other, ParserCloneArgs args) : base(other, args) { Minimum = other.Minimum; Maximum = other.Maximum; Until = args.Clone(other.Until); SkipUntil = other.SkipUntil; CaptureUntil = other.CaptureUntil; Separator = args.Clone(other.Separator); }
protected SingleLineWhiteSpaceTerminal(SingleLineWhiteSpaceTerminal other, ParserCloneArgs args) : base(other, args) { }
public override Parser Clone(ParserCloneArgs args) { return new SingleLineWhiteSpaceTerminal(this, args); }
protected ExceptParser(ExceptParser other, ParserCloneArgs args) : base(other, args) { Except = args.Clone(other.Except); }
protected RepeatCharTerminal(RepeatCharTerminal other, ParserCloneArgs args) : base(other, args) { _items = new List<RepeatCharItem>(other._items.Select(r => (RepeatCharItem)r.Clone())); }
protected PunctuationTerminal(PunctuationTerminal other, ParserCloneArgs args) : base(other, args) { }
public override Parser Clone(ParserCloneArgs args) { return new UnaryParser(this, args); }
public override Parser Clone(ParserCloneArgs args) { return new LetterTerminal(this, args); }
public override Parser Clone(ParserCloneArgs args) { return new GroupParser(this, args); }
public override Parser Clone(ParserCloneArgs args) { return new SequenceParser(this, args); }
protected SequenceParser(SequenceParser other, ParserCloneArgs chain) : base(other, chain) { Separator = chain.Clone(other.Separator); }
protected WhiteSpaceTerminal(WhiteSpaceTerminal other, ParserCloneArgs args) : base(other, args) { }
protected SurrogatePairTerminal(SurrogatePairTerminal other, ParserCloneArgs args) : base(other, args) { Inverse = other.Inverse; }
protected LetterTerminal(LetterTerminal other, ParserCloneArgs args) : base(other, args) { }
protected UnaryParser(UnaryParser other, ParserCloneArgs args) : base(other, args) { Inner = args.Clone(other.Inner); }
public override Parser Clone(ParserCloneArgs args) { return new NumberParser(this, args); }
public override Parser Clone(ParserCloneArgs args) { return new PunctuationTerminal(this, args); }
private SingleSurrogatePairTerminal(SingleSurrogatePairTerminal other, ParserCloneArgs args) : base(other, args) { }
public override Parser Clone(ParserCloneArgs args) { return new RepeatCharTerminal(this, args); }
private AnySurrogatePairTerminal(AnySurrogatePairTerminal other, ParserCloneArgs args) : base(other, args) { }
private SurrogatePairRangeTerminal(SurrogatePairRangeTerminal other, ParserCloneArgs args) : base(other, args) { }
public override Parser Clone(ParserCloneArgs args) { return new ExceptParser(this, args); }
public override Parser Clone(ParserCloneArgs args) { return new SingleSurrogatePairTerminal(this, args); }
protected StringParser(StringParser other, ParserCloneArgs args) : base(other, args) { this.BeginQuoteCharacters = other.BeginQuoteCharacters != null ? (char[])other.BeginQuoteCharacters.Clone() : null; this.EndQuoteCharacters = other.EndQuoteCharacters != null ? (char[])other.EndQuoteCharacters.Clone() : null; this.AllowDoubleQuote = other.AllowDoubleQuote; this.AllowEscapeCharacters = other.AllowEscapeCharacters; this.AllowNonQuoted = other.AllowNonQuoted; this.NonQuotedLetter = args.Clone(other.NonQuotedLetter); }
public override Parser Clone(ParserCloneArgs args) { return new BooleanTerminal(this, args); }
public override Parser Clone(ParserCloneArgs args) { return new StringParser(this, args); }