Mercurial > pub > ImplabNet
comparison Implab/Formats/ScannerContext.cs @ 177:a0ff6a0e9c44 ref20160224
refactoring
author | cin |
---|---|
date | Wed, 23 Mar 2016 01:42:00 +0300 |
parents | 0c3c69fe225b |
children |
comparison
equal
deleted
inserted
replaced
176:0c3c69fe225b | 177:a0ff6a0e9c44 |
---|---|
1 using System; | 1 namespace Implab.Formats { |
2 /// <summary> | |
3 /// Represents a scanner configuration usefull to recongnize token, based on the DFA. | |
4 /// </summary> | |
5 public class ScannerContext<TTag> { | |
2 | 6 |
3 namespace Implab.Formats { | |
4 public class ScannerContext<TTag> { | |
5 public int[,] Dfa { get; private set; } | 7 public int[,] Dfa { get; private set; } |
8 | |
6 public bool[] Final { get; private set; } | 9 public bool[] Final { get; private set; } |
10 | |
7 public TTag[][] Tags { get; private set; } | 11 public TTag[][] Tags { get; private set; } |
12 | |
8 public int State { get; private set; } | 13 public int State { get; private set; } |
14 | |
9 public int[] Alphabet { get; private set; } | 15 public int[] Alphabet { get; private set; } |
10 | 16 |
11 public ScannerContext(int[,] dfa, bool[] final, TTag[][] tags, int state, int[] alphabet) { | 17 public ScannerContext(int[,] dfa, bool[] final, TTag[][] tags, int state, int[] alphabet) { |
12 Dfa = dfa; | 18 Dfa = dfa; |
13 Final = final; | 19 Final = final; |