comparison Implab/JSON/JSONScanner.cs @ 158:130781364799 v2

refactoring, code cleanup
author cin
date Thu, 18 Feb 2016 14:34:02 +0300
parents 10c7337d29e7
children
comparison
equal deleted inserted replaced
157:948c015a9011 158:130781364799
17 17
18 /// <summary> 18 /// <summary>
19 /// Создает новый экземпляр сканнера 19 /// Создает новый экземпляр сканнера
20 /// </summary> 20 /// </summary>
21 public JSONScanner() 21 public JSONScanner()
22 : base(JSONGrammar.Instance.JsonDFA) { 22 : base(JSONGrammar.Instance.JsonDFA.States, JSONGrammar.Instance.JsonDFA.Alphabet.GetTranslationMap()) {
23 m_stringBuffer = new char[1024]; 23 m_stringBuffer = new char[1024];
24 var dfa = JSONGrammar.Instance.JsonStringDFA; 24 var dfa = JSONGrammar.Instance.JsonStringDFA;
25 m_stringAlphabet = dfa.Alphabet.GetTranslationMap(); 25 m_stringAlphabet = dfa.Alphabet.GetTranslationMap();
26 m_stringDFA = dfa.States; 26 m_stringDFA = dfa.States;
27 } 27 }