1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5

6
namespace TurnerSoftware.RobotsExclusionTools.Tokenization
7
{
8
	public class TokenPattern
9
	{
10 1
		public TokenType Token { get; }
11 1
		public IReadOnlyCollection<TokenType> Preceeding { get; }
12 1
		public IReadOnlyCollection<TokenType> Succeeding { get; }
13

14 1
		public TokenPattern(TokenType token, TokenType[] preceeding, TokenType[] succeeding)
15 1
		{
16 1
			Token = token;
17 1
			Preceeding = preceeding ?? Array.Empty<TokenType>();
18 1
			Succeeding = succeeding ?? Array.Empty<TokenType>();
19 1
		}
20
	}
21
}

Read our documentation on viewing source code .

Loading