Exemple #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);
 }
Exemple #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;
 }
Exemple #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;
		}
Exemple #4
0
 protected UnaryParser(UnaryParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Inner = args.Clone(other.Inner);
 }
Exemple #5
0
 protected UnaryParser(UnaryParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Inner = args.Clone(other.Inner);
 }