示例#1
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);
 }
示例#2
0
 /// <summary>
 /// Initializes a new copy of the <see cref="Eto.Parse.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)
 {
     this.EnableMatchEvents = other.EnableMatchEvents;
     this.Separator         = args.Clone(other.Separator);
     this.CaseSensitive     = other.CaseSensitive;
     this.Optimizations     = other.Optimizations;
 }
示例#3
0
		/// <summary>
		/// Initializes a new copy of the <see cref="Eto.Parse.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)
		{
			this.EnableMatchEvents = other.EnableMatchEvents;
			this.Separator = args.Clone(other.Separator);
			this.CaseSensitive = other.CaseSensitive;
			this.Optimizations = other.Optimizations;
		}
示例#4
0
 protected UnaryParser(UnaryParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Inner = args.Clone(other.Inner);
 }
示例#5
0
 protected UnaryParser(UnaryParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Inner = args.Clone(other.Inner);
 }