lib/json: regenerate with new nitcc
[nit.git] / lib / json / json_lexer.nit
1 # Lexer generated by nitcc for the grammar json
2 module json_lexer is no_warning "missing-doc"
3 import nitcc_runtime
4 import json_parser
5 class Lexer_json
6 super Lexer
7 redef fun start_state do return dfastate_0
8 end
9 private fun dfastate_0: DFAState0 do return once new DFAState0
10 private fun dfastate_1: DFAState1 do return once new DFAState1
11 private fun dfastate_2: DFAState2 do return once new DFAState2
12 private fun dfastate_3: DFAState3 do return once new DFAState3
13 private fun dfastate_4: DFAState4 do return once new DFAState4
14 private fun dfastate_5: DFAState5 do return once new DFAState5
15 private fun dfastate_6: DFAState6 do return once new DFAState6
16 private fun dfastate_7: DFAState7 do return once new DFAState7
17 private fun dfastate_8: DFAState8 do return once new DFAState8
18 private fun dfastate_9: DFAState9 do return once new DFAState9
19 private fun dfastate_10: DFAState10 do return once new DFAState10
20 private fun dfastate_11: DFAState11 do return once new DFAState11
21 private fun dfastate_12: DFAState12 do return once new DFAState12
22 private fun dfastate_13: DFAState13 do return once new DFAState13
23 private fun dfastate_14: DFAState14 do return once new DFAState14
24 private fun dfastate_15: DFAState15 do return once new DFAState15
25 private fun dfastate_16: DFAState16 do return once new DFAState16
26 private fun dfastate_17: DFAState17 do return once new DFAState17
27 private fun dfastate_18: DFAState18 do return once new DFAState18
28 private fun dfastate_19: DFAState19 do return once new DFAState19
29 private fun dfastate_20: DFAState20 do return once new DFAState20
30 private fun dfastate_21: DFAState21 do return once new DFAState21
31 private fun dfastate_22: DFAState22 do return once new DFAState22
32 private fun dfastate_23: DFAState23 do return once new DFAState23
33 private fun dfastate_24: DFAState24 do return once new DFAState24
34 private fun dfastate_25: DFAState25 do return once new DFAState25
35 private fun dfastate_26: DFAState26 do return once new DFAState26
36 private fun dfastate_27: DFAState27 do return once new DFAState27
37 private fun dfastate_28: DFAState28 do return once new DFAState28
38 private fun dfastate_29: DFAState29 do return once new DFAState29
39 private fun dfastate_30: DFAState30 do return once new DFAState30
40 private fun dfastate_31: DFAState31 do return once new DFAState31
41 private fun dfastate_32: DFAState32 do return once new DFAState32
42 private fun dfastate_33: DFAState33 do return once new DFAState33
43 private fun dfastate_34: DFAState34 do return once new DFAState34
44 class MyNToken
45 super NToken
46 end
47 private class DFAState0
48 super DFAState
49 redef fun trans(char) do
50 var c = char.ascii
51 if c <= 8 then return null
52 if c <= 10 then return dfastate_1
53 if c <= 31 then return null
54 if c <= 32 then return dfastate_1
55 if c <= 33 then return null
56 if c <= 34 then return dfastate_2
57 if c <= 43 then return null
58 if c <= 44 then return dfastate_3
59 if c <= 45 then return dfastate_4
60 if c <= 47 then return null
61 if c <= 57 then return dfastate_5
62 if c <= 58 then return dfastate_6
63 if c <= 90 then return null
64 if c <= 91 then return dfastate_7
65 if c <= 92 then return null
66 if c <= 93 then return dfastate_8
67 if c <= 101 then return null
68 if c <= 102 then return dfastate_9
69 if c <= 109 then return null
70 if c <= 110 then return dfastate_10
71 if c <= 115 then return null
72 if c <= 116 then return dfastate_11
73 if c <= 122 then return null
74 if c <= 123 then return dfastate_12
75 if c <= 124 then return null
76 if c <= 125 then return dfastate_13
77 return null
78 end
79 end
80 private class DFAState1
81 super DFAState
82 redef fun is_accept do return true
83 redef fun make_token(position, text) do
84 return null
85 end
86 redef fun trans(char) do
87 var c = char.ascii
88 if c <= 8 then return null
89 if c <= 10 then return dfastate_1
90 if c <= 31 then return null
91 if c <= 32 then return dfastate_1
92 return null
93 end
94 end
95 private class DFAState2
96 super DFAState
97 redef fun trans(char) do
98 var c = char.ascii
99 if c <= 33 then return dfastate_2
100 if c <= 34 then return dfastate_29
101 if c <= 91 then return dfastate_2
102 if c <= 92 then return dfastate_30
103 return dfastate_2
104 end
105 end
106 private class DFAState3
107 super DFAState
108 redef fun is_accept do return true
109 redef fun make_token(position, text) do
110 var t = new N_39d_44d_39d
111 t.position = position
112 t.text = text
113 return t
114 end
115 end
116 private class DFAState4
117 super DFAState
118 redef fun trans(char) do
119 var c = char.ascii
120 if c <= 47 then return null
121 if c <= 57 then return dfastate_5
122 return null
123 end
124 end
125 private class DFAState5
126 super DFAState
127 redef fun is_accept do return true
128 redef fun make_token(position, text) do
129 var t = new Nnumber
130 t.position = position
131 t.text = text
132 return t
133 end
134 redef fun trans(char) do
135 var c = char.ascii
136 if c <= 45 then return null
137 if c <= 46 then return dfastate_24
138 if c <= 47 then return null
139 if c <= 57 then return dfastate_5
140 if c <= 68 then return null
141 if c <= 69 then return dfastate_25
142 if c <= 100 then return null
143 if c <= 101 then return dfastate_25
144 return null
145 end
146 end
147 private class DFAState6
148 super DFAState
149 redef fun is_accept do return true
150 redef fun make_token(position, text) do
151 var t = new N_39d_58d_39d
152 t.position = position
153 t.text = text
154 return t
155 end
156 end
157 private class DFAState7
158 super DFAState
159 redef fun is_accept do return true
160 redef fun make_token(position, text) do
161 var t = new N_39d_91d_39d
162 t.position = position
163 t.text = text
164 return t
165 end
166 end
167 private class DFAState8
168 super DFAState
169 redef fun is_accept do return true
170 redef fun make_token(position, text) do
171 var t = new N_39d_93d_39d
172 t.position = position
173 t.text = text
174 return t
175 end
176 end
177 private class DFAState9
178 super DFAState
179 redef fun trans(char) do
180 var c = char.ascii
181 if c <= 96 then return null
182 if c <= 97 then return dfastate_20
183 return null
184 end
185 end
186 private class DFAState10
187 super DFAState
188 redef fun trans(char) do
189 var c = char.ascii
190 if c <= 116 then return null
191 if c <= 117 then return dfastate_17
192 return null
193 end
194 end
195 private class DFAState11
196 super DFAState
197 redef fun trans(char) do
198 var c = char.ascii
199 if c <= 113 then return null
200 if c <= 114 then return dfastate_14
201 return null
202 end
203 end
204 private class DFAState12
205 super DFAState
206 redef fun is_accept do return true
207 redef fun make_token(position, text) do
208 var t = new N_39d_123d_39d
209 t.position = position
210 t.text = text
211 return t
212 end
213 end
214 private class DFAState13
215 super DFAState
216 redef fun is_accept do return true
217 redef fun make_token(position, text) do
218 var t = new N_39d_125d_39d
219 t.position = position
220 t.text = text
221 return t
222 end
223 end
224 private class DFAState14
225 super DFAState
226 redef fun trans(char) do
227 var c = char.ascii
228 if c <= 116 then return null
229 if c <= 117 then return dfastate_15
230 return null
231 end
232 end
233 private class DFAState15
234 super DFAState
235 redef fun trans(char) do
236 var c = char.ascii
237 if c <= 100 then return null
238 if c <= 101 then return dfastate_16
239 return null
240 end
241 end
242 private class DFAState16
243 super DFAState
244 redef fun is_accept do return true
245 redef fun make_token(position, text) do
246 var t = new N_39dtrue_39d
247 t.position = position
248 t.text = text
249 return t
250 end
251 end
252 private class DFAState17
253 super DFAState
254 redef fun trans(char) do
255 var c = char.ascii
256 if c <= 107 then return null
257 if c <= 108 then return dfastate_18
258 return null
259 end
260 end
261 private class DFAState18
262 super DFAState
263 redef fun trans(char) do
264 var c = char.ascii
265 if c <= 107 then return null
266 if c <= 108 then return dfastate_19
267 return null
268 end
269 end
270 private class DFAState19
271 super DFAState
272 redef fun is_accept do return true
273 redef fun make_token(position, text) do
274 var t = new N_39dnull_39d
275 t.position = position
276 t.text = text
277 return t
278 end
279 end
280 private class DFAState20
281 super DFAState
282 redef fun trans(char) do
283 var c = char.ascii
284 if c <= 107 then return null
285 if c <= 108 then return dfastate_21
286 return null
287 end
288 end
289 private class DFAState21
290 super DFAState
291 redef fun trans(char) do
292 var c = char.ascii
293 if c <= 114 then return null
294 if c <= 115 then return dfastate_22
295 return null
296 end
297 end
298 private class DFAState22
299 super DFAState
300 redef fun trans(char) do
301 var c = char.ascii
302 if c <= 100 then return null
303 if c <= 101 then return dfastate_23
304 return null
305 end
306 end
307 private class DFAState23
308 super DFAState
309 redef fun is_accept do return true
310 redef fun make_token(position, text) do
311 var t = new N_39dfalse_39d
312 t.position = position
313 t.text = text
314 return t
315 end
316 end
317 private class DFAState24
318 super DFAState
319 redef fun trans(char) do
320 var c = char.ascii
321 if c <= 47 then return null
322 if c <= 57 then return dfastate_28
323 return null
324 end
325 end
326 private class DFAState25
327 super DFAState
328 redef fun trans(char) do
329 var c = char.ascii
330 if c <= 42 then return null
331 if c <= 43 then return dfastate_26
332 if c <= 44 then return null
333 if c <= 45 then return dfastate_26
334 if c <= 47 then return null
335 if c <= 57 then return dfastate_27
336 return null
337 end
338 end
339 private class DFAState26
340 super DFAState
341 redef fun trans(char) do
342 var c = char.ascii
343 if c <= 47 then return null
344 if c <= 57 then return dfastate_27
345 return null
346 end
347 end
348 private class DFAState27
349 super DFAState
350 redef fun is_accept do return true
351 redef fun make_token(position, text) do
352 var t = new Nnumber
353 t.position = position
354 t.text = text
355 return t
356 end
357 redef fun trans(char) do
358 var c = char.ascii
359 if c <= 47 then return null
360 if c <= 57 then return dfastate_27
361 return null
362 end
363 end
364 private class DFAState28
365 super DFAState
366 redef fun is_accept do return true
367 redef fun make_token(position, text) do
368 var t = new Nnumber
369 t.position = position
370 t.text = text
371 return t
372 end
373 redef fun trans(char) do
374 var c = char.ascii
375 if c <= 47 then return null
376 if c <= 57 then return dfastate_28
377 if c <= 68 then return null
378 if c <= 69 then return dfastate_25
379 if c <= 100 then return null
380 if c <= 101 then return dfastate_25
381 return null
382 end
383 end
384 private class DFAState29
385 super DFAState
386 redef fun is_accept do return true
387 redef fun make_token(position, text) do
388 var t = new Nstring
389 t.position = position
390 t.text = text
391 return t
392 end
393 end
394 private class DFAState30
395 super DFAState
396 redef fun trans(char) do
397 var c = char.ascii
398 if c <= 33 then return null
399 if c <= 34 then return dfastate_2
400 if c <= 46 then return null
401 if c <= 47 then return dfastate_2
402 if c <= 91 then return null
403 if c <= 92 then return dfastate_2
404 if c <= 97 then return null
405 if c <= 98 then return dfastate_2
406 if c <= 101 then return null
407 if c <= 102 then return dfastate_2
408 if c <= 109 then return null
409 if c <= 110 then return dfastate_2
410 if c <= 113 then return null
411 if c <= 114 then return dfastate_2
412 if c <= 115 then return null
413 if c <= 116 then return dfastate_2
414 if c <= 117 then return dfastate_31
415 return null
416 end
417 end
418 private class DFAState31
419 super DFAState
420 redef fun trans(char) do
421 var c = char.ascii
422 if c <= 47 then return null
423 if c <= 57 then return dfastate_32
424 if c <= 64 then return null
425 if c <= 90 then return dfastate_32
426 if c <= 96 then return null
427 if c <= 122 then return dfastate_32
428 return null
429 end
430 end
431 private class DFAState32
432 super DFAState
433 redef fun trans(char) do
434 var c = char.ascii
435 if c <= 47 then return null
436 if c <= 57 then return dfastate_33
437 if c <= 64 then return null
438 if c <= 90 then return dfastate_33
439 if c <= 96 then return null
440 if c <= 122 then return dfastate_33
441 return null
442 end
443 end
444 private class DFAState33
445 super DFAState
446 redef fun trans(char) do
447 var c = char.ascii
448 if c <= 47 then return null
449 if c <= 57 then return dfastate_34
450 if c <= 64 then return null
451 if c <= 90 then return dfastate_34
452 if c <= 96 then return null
453 if c <= 122 then return dfastate_34
454 return null
455 end
456 end
457 private class DFAState34
458 super DFAState
459 redef fun trans(char) do
460 var c = char.ascii
461 if c <= 47 then return null
462 if c <= 57 then return dfastate_2
463 if c <= 64 then return null
464 if c <= 90 then return dfastate_2
465 if c <= 96 then return null
466 if c <= 122 then return dfastate_2
467 return null
468 end
469 end