Пример #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);
		}
Пример #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);
 }
Пример #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();
 }
Пример #4
0
 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);
 }
Пример #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();
 }
Пример #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);
 }
Пример #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);
 }
Пример #8
0
 protected SequenceParser(SequenceParser other, ParserCloneArgs chain)
     : base(other, chain)
 {
     Separator = chain.Clone(other.Separator);
 }
Пример #9
0
 protected ExceptParser(ExceptParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Except = args.Clone(other.Except);
 }
Пример #10
0
		protected SequenceParser(SequenceParser other, ParserCloneArgs chain)
			: base(other, chain)
		{
			Separator = chain.Clone(other.Separator);
		}
Пример #11
0
 protected ExceptParser(ExceptParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Except = args.Clone(other.Except);
 }
Пример #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;
 }