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