Mercurial > pub > ImplabNet
diff Implab/Formats/TextScanner.cs @ 178:d5c5db0335ee ref20160224
working on JSON parser
author | cin |
---|---|
date | Wed, 23 Mar 2016 19:51:45 +0300 |
parents | a0ff6a0e9c44 |
children | c32688129f14 |
line wrap: on
line diff
--- a/Implab/Formats/TextScanner.cs Wed Mar 23 01:42:00 2016 +0300 +++ b/Implab/Formats/TextScanner.cs Wed Mar 23 19:51:45 2016 +0300 @@ -61,15 +61,15 @@ while (pos < m_bufferSize) { var ch = m_buffer[pos]; - state = dfa[state, ch > maxSymbol ? DFAConst.UNCLASSIFIED_INPUT : alphabet[ch]]; - if (state == DFAConst.UNREACHABLE_STATE) + state = dfa[state, ch > maxSymbol ? AutomatonConst.UNCLASSIFIED_INPUT : alphabet[ch]]; + if (state == AutomatonConst.UNREACHABLE_STATE) break; pos++; } m_tokenLength = pos - m_bufferOffset; - } while (state != DFAConst.UNREACHABLE_STATE && Feed()); + } while (state != AutomatonConst.UNREACHABLE_STATE && Feed()); m_tokenOffset = m_bufferOffset; m_bufferOffset += m_tokenLength;