comparison Implab/Formats/JSON/JSONScanner.cs @ 179:478ef706906a ref20160224

sync
author cin
date Wed, 23 Mar 2016 19:52:08 +0300
parents a0ff6a0e9c44
children c32688129f14
comparison
equal deleted inserted replaced
178:d5c5db0335ee 179:478ef706906a
10 /// Сканнер (лексер), разбивающий поток символов на токены JSON. 10 /// Сканнер (лексер), разбивающий поток символов на токены JSON.
11 /// </summary> 11 /// </summary>
12 public class JSONScanner : Disposable { 12 public class JSONScanner : Disposable {
13 readonly StringBuilder m_builder = new StringBuilder(); 13 readonly StringBuilder m_builder = new StringBuilder();
14 14
15 readonly ScannerContext<JSONGrammar.TokenType> m_jsonContext = JSONGrammar.Instance.JsonDFA; 15 readonly ScannerContext<JSONGrammar.TokenType> m_jsonContext = JSONGrammar.Instance.JsonExpression;
16 readonly ScannerContext<JSONGrammar.TokenType> m_stringContext = JSONGrammar.Instance.JsonStringDFA; 16 readonly ScannerContext<JSONGrammar.TokenType> m_stringContext = JSONGrammar.Instance.JsonStringExpression;
17 17
18 18
19 readonly TextScanner m_scanner; 19 readonly TextScanner m_scanner;
20 20
21 /// <summary> 21 /// <summary>