comparison Implab/Automaton/DFATable.cs @ 229:5f7a3e1d32b9 v2

JsonXmlReader performance tuning JsonScanner now operates strings and doesn't parses number and literals. Added SerializationHelpers to common serialize/deserialize operations
author cin
date Tue, 12 Sep 2017 19:07:42 +0300
parents 4f82e0f161c3
children 302ca905c19e
comparison
equal deleted inserted replaced
228:6fa235c5a760 229:5f7a3e1d32b9
117 for (int i = 0; i < StateCount; i++) 117 for (int i = 0; i < StateCount; i++)
118 for (int j = 0; j < AlphabetSize; j++) 118 for (int j = 0; j < AlphabetSize; j++)
119 table[i, j] = AutomatonConst.UNREACHABLE_STATE; 119 table[i, j] = AutomatonConst.UNREACHABLE_STATE;
120 120
121 foreach (var t in this) 121 foreach (var t in this)
122 table[t.s1,t.edge] = t.s2; 122 table[t.s1,t.edge] = (byte)t.s2;
123 123
124 return table; 124 return table;
125 } 125 }
126 126
127 public bool[] CreateFinalStateTable() { 127 public bool[] CreateFinalStateTable() {