Example #1
0
		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);
		}
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #5
0
 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();
 }
Example #6
0
 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);
 }
Example #7
0
 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);
 }
Example #8
0
 protected SequenceParser(SequenceParser other, ParserCloneArgs chain)
     : base(other, chain)
 {
     Separator = chain.Clone(other.Separator);
 }
Example #9
0
 protected ExceptParser(ExceptParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Except = args.Clone(other.Except);
 }
		protected SequenceParser(SequenceParser other, ParserCloneArgs chain)
			: base(other, chain)
		{
			Separator = chain.Clone(other.Separator);
		}
Example #11
0
 protected ExceptParser(ExceptParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Except = args.Clone(other.Except);
 }
Example #12
0
 /// <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;
 }