Пример #1
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;
		}
Пример #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
		protected UntilParser(UntilParser other, ParserCloneArgs args)
			: base(other, args)
		{
			Minimum = other.Minimum;
			Maximum = other.Maximum;
			Skip = other.Skip;
			Capture = other.Capture;
		}
Пример #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
 public abstract Parser Clone(ParserCloneArgs args);
Пример #6
0
 /// <summary>
 /// Initializes a new copy of the <see cref="Eto.Parse.Parser"/> class
 /// </summary>
 /// <param name="other">Parser to copy</param>
 /// <param name="args">Arguments for the copy</param>
 protected Parser(Parser other, ParserCloneArgs args)
 {
     AddError = other.AddError;
     args.Add(other, this);
 }
Пример #7
0
 public override Parser Clone(ParserCloneArgs args)
 {
     return new AlternativeParser(this, args);
 }
Пример #8
0
 protected AlternativeParser(AlternativeParser other, ParserCloneArgs chain)
     : base(other, chain)
 {
 }
Пример #9
0
		protected EndParser(EndParser other, ParserCloneArgs chain)
			: base(other, chain)
		{
		}
Пример #10
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new UntilParser(this, args);
		}
Пример #11
0
		protected ListParser(ListParser other, ParserCloneArgs chain)
			: base(other, chain)
		{
			Items = new List<Parser>(other.Items.Select(chain.Clone));
		}
Пример #12
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new LiteralTerminal(this, args);
		}
Пример #13
0
		protected LiteralTerminal(LiteralTerminal other, ParserCloneArgs chain)
			: base(other, chain)
		{
			CaseSensitive = other.CaseSensitive;
			Value = other.Value;
		}
Пример #14
0
 protected UnaryParser(UnaryParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Inner = args.Clone(other.Inner);
 }
Пример #15
0
 protected UnaryParser(UnaryParser other, ParserCloneArgs args)
     : base(other, args)
 {
     Inner = args.Clone(other.Inner);
 }
Пример #16
0
 public override Parser Clone(ParserCloneArgs args)
 {
     return(new UnaryParser(this, args));
 }
Пример #17
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new Grammar(this, args);
		}
Пример #18
0
 public override Parser Clone(ParserCloneArgs args)
 {
     return(new Grammar(this, args));
 }
Пример #19
0
 protected ListParser(ListParser other, ParserCloneArgs chain)
     : base(other, chain)
 {
     Items = new List <Parser>(other.Items.Select(chain.Clone));
 }
Пример #20
0
 public override Parser Clone(ParserCloneArgs args)
 {
     return new RepeatParser(this, args);
 }
Пример #21
0
		protected StartParser(StartParser other, ParserCloneArgs chain)
			: base(other, chain)
		{
		}