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 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 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 SequenceParser(SequenceParser other, ParserCloneArgs chain) : base(other, chain) { Separator = chain.Clone(other.Separator); }
protected ExceptParser(ExceptParser other, ParserCloneArgs args) : base(other, args) { Except = args.Clone(other.Except); }
/// <summary> /// Initializes a new copy of the <see cref="Grammar"/> class /// </summary> /// <param name="other">Other object to copy</param> /// <param name="args">Arguments for the copy</param> protected Grammar(Grammar other, ParserCloneArgs args) { EnableMatchEvents = other.EnableMatchEvents; Separator = args.Clone(other.Separator); CaseSensitive = other.CaseSensitive; }