protected LetterTerminal(LetterTerminal other, ParserCloneArgs args) : base(other, args) { }
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 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); }
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 TagParser(TagParser other, ParserCloneArgs args) : base(other, args) { AddTag = other.AddTag; IncludeTag = other.IncludeTag; ExcludeTag = other.ExcludeTag; AllowWithDifferentPosition = other.AllowWithDifferentPosition; }
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); }
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 ExceptParser(ExceptParser other, ParserCloneArgs args) : base(other, args) { Except = args.Clone(other.Except); }
public override Parser Clone(ParserCloneArgs args) { return(new LiteralTerminal(this, args)); }
protected EndParser(EndParser other, ParserCloneArgs chain) : base(other, chain) { }
protected LetterOrDigitTerminal(LetterOrDigitTerminal other, ParserCloneArgs args) : base(other, args) { }
public override Parser Clone(ParserCloneArgs args) { return new LetterTerminal(this, args); }
protected PunctuationTerminal(PunctuationTerminal other, ParserCloneArgs args) : base(other, args) { }
public override Parser Clone(ParserCloneArgs args) { return(new ControlTerminal(this, args)); }
protected ControlTerminal(ControlTerminal other, ParserCloneArgs args) : base(other, args) { }
private AnySurrogatePairTerminal(AnySurrogatePairTerminal other, ParserCloneArgs args) : base(other, args) { }
public override Parser Clone(ParserCloneArgs args) { return(new AnySurrogatePairTerminal(this, args)); }
public override Parser Clone(ParserCloneArgs args) { return new AnySurrogatePairTerminal(this, args); }
protected CharSetTerminal(CharSetTerminal other, ParserCloneArgs args) : base(other, args) { this.Characters = other.characters != null ? (char[])other.characters.Clone() : null; }
public override Parser Clone(ParserCloneArgs args) { return new ControlTerminal(this, args); }
protected DigitTerminal(DigitTerminal other, ParserCloneArgs args) : base(other, args) { }
protected SequenceParser(SequenceParser other, ParserCloneArgs chain) : base(other, chain) { Separator = chain.Clone(other.Separator); }
protected EmptyParser(EmptyParser other, ParserCloneArgs args) : base(other, args) { }
public override Parser Clone(ParserCloneArgs args) { return new SequenceParser(this, args); }
public override Parser Clone(ParserCloneArgs args) { return new PunctuationTerminal(this, args); }
protected SingleCharTerminal(SingleCharTerminal other, ParserCloneArgs args) : base(other, args) { this.Character = other.character; }
public override Parser Clone(ParserCloneArgs args) { return(new LetterOrDigitTerminal(this, args)); }
public override Parser Clone(ParserCloneArgs args) { return(new RepeatCharTerminal(this, args)); }
protected SymbolTerminal(SymbolTerminal other, ParserCloneArgs args) : base(other, args) { }
protected RepeatCharTerminal(RepeatCharTerminal other, ParserCloneArgs args) : base(other, args) { _items = new List <RepeatCharItem>(other._items.Select(r => (RepeatCharItem)r.Clone())); }
protected LiteralTerminal(LiteralTerminal other, ParserCloneArgs chain) : base(other, chain) { CaseSensitive = other.CaseSensitive; Value = other.Value; }
protected StartParser(StartParser other, ParserCloneArgs chain) : base(other, chain) { }
protected CharRangeTerminal(CharRangeTerminal other, ParserCloneArgs args) : base(other, args) { this.Start = other.Start; this.End = other.End; }
public override Parser Clone(ParserCloneArgs args) { return new ExceptParser(this, args); }
public override Parser Clone(ParserCloneArgs args) { return new GroupParser(this, args); }
public override Parser Clone(ParserCloneArgs args) { return(new NumberParser(this, args)); }
public override Parser Clone(ParserCloneArgs args) { return new NumberParser(this, args); }
public override Parser Clone(ParserCloneArgs args) { throw new NotImplementedException(); }
protected OptionalParser(OptionalParser other, ParserCloneArgs chain) : base(other, chain) { }
public override Parser Clone(ParserCloneArgs args) { return new RepeatCharTerminal(this, args); }
public override Parser Clone(ParserCloneArgs args) { return(new PunctuationTerminal(this, args)); }
protected RepeatCharTerminal(RepeatCharTerminal other, ParserCloneArgs args) : base(other, args) { _items = new List<RepeatCharItem>(other._items.Select(r => (RepeatCharItem)r.Clone())); }
public override Parser Clone(ParserCloneArgs args) { return(new StartParser(this, args)); }
public override Parser Clone(ParserCloneArgs args) { return new CharSetTerminal(this, args); }
protected CharTerminal(CharTerminal other, ParserCloneArgs chain) : base(other, chain) { this.Inverse = other.Inverse; this.CaseSensitive = other.CaseSensitive; }
protected SurrogatePairTerminal(SurrogatePairTerminal other, ParserCloneArgs args) : base(other, args) { Inverse = other.Inverse; }