comparison Implab/Formats/JSON/JSONGrammar.cs @ 182:76e8f2ba12b8 ref20160224

pretty print DFA, the minimization is still buggy
author cin
date Thu, 24 Mar 2016 18:52:10 +0300
parents b2b6a6640aa3
children 4f82e0f161c3
comparison
equal deleted inserted replaced
181:b2b6a6640aa3 182:76e8f2ba12b8
106 return m_stringExpression; 106 return m_stringExpression;
107 } 107 }
108 } 108 }
109 109
110 Token SymbolRangeToken(char start, char stop) { 110 Token SymbolRangeToken(char start, char stop) {
111 return SymbolToken(Enumerable.Range(start,stop - start).Select(x => (char)x)); 111 return SymbolToken(Enumerable.Range(start, stop - start + 1).Select(x => (char)x));
112 } 112 }
113 113
114 protected override IndexedAlphabetBase<char> CreateAlphabet() { 114 protected override IndexedAlphabetBase<char> CreateAlphabet() {
115 return new CharAlphabet(); 115 return new CharAlphabet();
116 } 116 }