Mercurial > pub > ImplabNet
comparison Implab/Automaton/MapAlphabet.cs @ 178:d5c5db0335ee ref20160224
working on JSON parser
| author | cin |
|---|---|
| date | Wed, 23 Mar 2016 19:51:45 +0300 |
| parents | 0c3c69fe225b |
| children | b2b6a6640aa3 |
comparison
equal
deleted
inserted
replaced
| 177:a0ff6a0e9c44 | 178:d5c5db0335ee |
|---|---|
| 52 int cls; | 52 int cls; |
| 53 if (m_map.TryGetValue(symbol, out cls)) | 53 if (m_map.TryGetValue(symbol, out cls)) |
| 54 return cls; | 54 return cls; |
| 55 if (!m_supportUnclassified) | 55 if (!m_supportUnclassified) |
| 56 throw new ArgumentOutOfRangeException("symbol", "The specified symbol isn't in the alphabet"); | 56 throw new ArgumentOutOfRangeException("symbol", "The specified symbol isn't in the alphabet"); |
| 57 return DFAConst.UNCLASSIFIED_INPUT; | 57 return AutomatonConst.UNCLASSIFIED_INPUT; |
| 58 } | 58 } |
| 59 | 59 |
| 60 public int Count { | 60 public int Count { |
| 61 get { | 61 get { |
| 62 return m_nextCls; | 62 return m_nextCls; |
