Beispiel #1
0
		protected BooleanTerminal(BooleanTerminal other, ParserCloneArgs args)
			: base(other, args)
		{
			this.CaseSensitive = other.CaseSensitive;
			this.TrueValues = other.TrueValues != null ? (string[])other.TrueValues.Clone() : null;
			this.FalseValues = other.FalseValues != null ? (string[])other.FalseValues.Clone() : null;
		}
Beispiel #2
0
		protected NumberParser(NumberParser other, ParserCloneArgs chain)
			: base(other, chain)
		{
			AllowSign = other.AllowSign;
			AllowExponent = other.AllowExponent;
			DecimalSeparator = other.DecimalSeparator;
			ValueType = other.ValueType;
		}
Beispiel #3
0
		protected UntilParser(UntilParser other, ParserCloneArgs args)
			: base(other, args)
		{
			Minimum = other.Minimum;
			Maximum = other.Maximum;
			Skip = other.Skip;
			Capture = other.Capture;
		}
Beispiel #4
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();
		}
Beispiel #5
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);
		}
		protected SingleLineWhiteSpaceTerminal(SingleLineWhiteSpaceTerminal other, ParserCloneArgs args)
			: base(other, args)
		{
		}
		public override Parser Clone(ParserCloneArgs args)
		{
			return new SingleLineWhiteSpaceTerminal(this, args);
		}
Beispiel #8
0
		protected ExceptParser(ExceptParser other, ParserCloneArgs args)
			: base(other, args)
		{
			Except = args.Clone(other.Except);
		}
Beispiel #9
0
		protected RepeatCharTerminal(RepeatCharTerminal other, ParserCloneArgs args)
			: base(other, args)
		{
			_items = new List<RepeatCharItem>(other._items.Select(r => (RepeatCharItem)r.Clone()));
		}
Beispiel #10
0
		protected PunctuationTerminal(PunctuationTerminal other, ParserCloneArgs args)
			: base(other, args)
		{
		}
Beispiel #11
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new UnaryParser(this, args);
		}
Beispiel #12
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new LetterTerminal(this, args);
		}
Beispiel #13
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new GroupParser(this, args);
		}
Beispiel #14
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new SequenceParser(this, args);
		}
Beispiel #15
0
		protected SequenceParser(SequenceParser other, ParserCloneArgs chain)
			: base(other, chain)
		{
			Separator = chain.Clone(other.Separator);
		}
Beispiel #16
0
		protected WhiteSpaceTerminal(WhiteSpaceTerminal other, ParserCloneArgs args)
			: base(other, args)
		{
		}
Beispiel #17
0
 protected SurrogatePairTerminal(SurrogatePairTerminal other, ParserCloneArgs args) 
     : base(other, args)
 {
     Inverse = other.Inverse;
 }
Beispiel #18
0
		protected LetterTerminal(LetterTerminal other, ParserCloneArgs args)
			: base(other, args)
		{
		}
Beispiel #19
0
		protected UnaryParser(UnaryParser other, ParserCloneArgs args)
			: base(other, args)
		{
			Inner = args.Clone(other.Inner);
		}
Beispiel #20
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new NumberParser(this, args);
		}
Beispiel #21
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new PunctuationTerminal(this, args);
		}
 private SingleSurrogatePairTerminal(SingleSurrogatePairTerminal other, ParserCloneArgs args) 
     : base(other, args)
 {
 }
Beispiel #23
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new RepeatCharTerminal(this, args);
		}
        private AnySurrogatePairTerminal(AnySurrogatePairTerminal other, ParserCloneArgs args)
			: base(other, args)
		{
		}
 private SurrogatePairRangeTerminal(SurrogatePairRangeTerminal other, ParserCloneArgs args)
     : base(other, args)
 {
 }
Beispiel #26
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new ExceptParser(this, args);
		}
 public override Parser Clone(ParserCloneArgs args)
 {
     return new SingleSurrogatePairTerminal(this, args);
 }
Beispiel #28
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);
		}
Beispiel #29
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new BooleanTerminal(this, args);
		}
Beispiel #30
0
		public override Parser Clone(ParserCloneArgs args)
		{
			return new StringParser(this, args);
		}