]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/spirit/example/qi/compiler_tutorial/conjure3/conjure_static_switch_lexer.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / spirit / example / qi / compiler_tutorial / conjure3 / conjure_static_switch_lexer.hpp
1 // Copyright (c) 2008-2009 Ben Hanson
2 // Copyright (c) 2008-2011 Hartmut Kaiser
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See accompanying
5 // file licence_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6
7 // Auto-generated by boost::lexer, do not edit
8
9 #if !defined(BOOST_SPIRIT_LEXER_NEXT_TOKEN_CONJURE_STATIC_SWITCH_JUL_25_2011_07_25_53)
10 #define BOOST_SPIRIT_LEXER_NEXT_TOKEN_CONJURE_STATIC_SWITCH_JUL_25_2011_07_25_53
11
12 #include <boost/detail/iterator.hpp>
13 #include <boost/spirit/home/support/detail/lexer/char_traits.hpp>
14
15 ////////////////////////////////////////////////////////////////////////////////
16 // the generated table of state names and the tokenizer have to be
17 // defined in the boost::spirit::lex::lexertl::static_ namespace
18 namespace boost { namespace spirit { namespace lex { namespace lexertl { namespace static_ {
19
20 ////////////////////////////////////////////////////////////////////////////////
21 // this table defines the names of the lexer states
22 char const* const lexer_state_names_conjure_static_switch[1] =
23 {
24 "INITIAL"
25 };
26
27 ////////////////////////////////////////////////////////////////////////////////
28 // this variable defines the number of lexer states
29 std::size_t const lexer_state_count_conjure_static_switch = 1;
30
31 ////////////////////////////////////////////////////////////////////////////////
32 // this function returns the next matched token
33 template<typename Iterator>
34 std::size_t next_token_conjure_static_switch (std::size_t& /*start_state_*/, bool& /*bol_*/,
35 Iterator &start_token_, Iterator const& end_, std::size_t& unique_id_)
36 {
37 static std::size_t const npos = static_cast<std::size_t>(~0);
38
39 if (start_token_ == end_)
40 {
41 unique_id_ = npos;
42 return 0;
43 }
44
45 Iterator curr_ = start_token_;
46 bool end_state_ = false;
47 std::size_t id_ = npos;
48 std::size_t uid_ = npos;
49 Iterator end_token_ = start_token_;
50
51 char ch_ = 0;
52
53 if (curr_ == end_) goto end;
54 ch_ = *curr_;
55 ++curr_;
56
57 if ((ch_ >= '0' && ch_ <= '9')) goto state0_1;
58
59 if (ch_ == 't') goto state0_2;
60
61 if (ch_ == 'f') goto state0_3;
62
63 if (ch_ == 'v') goto state0_4;
64
65 if (ch_ == 'i') goto state0_5;
66
67 if (ch_ == 'e') goto state0_6;
68
69 if (ch_ == 'w') goto state0_7;
70
71 if (ch_ == 'r') goto state0_8;
72
73 if (ch_ == '|') goto state0_9;
74
75 if (ch_ == '&') goto state0_10;
76
77 if (ch_ == '=') goto state0_11;
78
79 if (ch_ == '!') goto state0_12;
80
81 if (ch_ == '<') goto state0_13;
82
83 if (ch_ == '>') goto state0_14;
84
85 if (ch_ == '+') goto state0_15;
86
87 if (ch_ == '-') goto state0_16;
88
89 if (ch_ == '*') goto state0_17;
90
91 if (ch_ == '/') goto state0_18;
92
93 if (ch_ == '(') goto state0_19;
94
95 if (ch_ == ')') goto state0_20;
96
97 if (ch_ == '{') goto state0_21;
98
99 if (ch_ == '}') goto state0_22;
100
101 if (ch_ == ',') goto state0_23;
102
103 if (ch_ == ';') goto state0_24;
104
105 if ((ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'd') || (ch_ >= 'g' && ch_ <= 'h') || (ch_ >= 'j' && ch_ <= 'q') || ch_ == 's' || ch_ == 'u' || (ch_ >= 'x' && ch_ <= 'z')) goto state0_25;
106
107 if ((ch_ >= '\t' && ch_ <= '\n') || ch_ == '\r' || ch_ == ' ') goto state0_26;
108 goto end;
109
110 state0_1:
111 end_state_ = true;
112 id_ = 35;
113 uid_ = 0;
114 end_token_ = curr_;
115
116 if (curr_ == end_) goto end;
117 ch_ = *curr_;
118 ++curr_;
119
120 if ((ch_ >= '0' && ch_ <= '9')) goto state0_1;
121 goto end;
122
123 state0_2:
124 end_state_ = true;
125 id_ = 32;
126 uid_ = 28;
127 end_token_ = curr_;
128
129 if (curr_ == end_) goto end;
130 ch_ = *curr_;
131 ++curr_;
132
133 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'q') || (ch_ >= 's' && ch_ <= 'z')) goto state0_25;
134
135 if (ch_ == 'r') goto state0_27;
136 goto end;
137
138 state0_3:
139 end_state_ = true;
140 id_ = 32;
141 uid_ = 28;
142 end_token_ = curr_;
143
144 if (curr_ == end_) goto end;
145 ch_ = *curr_;
146 ++curr_;
147
148 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'b' && ch_ <= 'z')) goto state0_25;
149
150 if (ch_ == 'a') goto state0_28;
151 goto end;
152
153 state0_4:
154 end_state_ = true;
155 id_ = 32;
156 uid_ = 28;
157 end_token_ = curr_;
158
159 if (curr_ == end_) goto end;
160 ch_ = *curr_;
161 ++curr_;
162
163 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'n') || (ch_ >= 'p' && ch_ <= 'z')) goto state0_25;
164
165 if (ch_ == 'o') goto state0_29;
166 goto end;
167
168 state0_5:
169 end_state_ = true;
170 id_ = 32;
171 uid_ = 28;
172 end_token_ = curr_;
173
174 if (curr_ == end_) goto end;
175 ch_ = *curr_;
176 ++curr_;
177
178 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'e') || (ch_ >= 'g' && ch_ <= 'm') || (ch_ >= 'o' && ch_ <= 'z')) goto state0_25;
179
180 if (ch_ == 'n') goto state0_30;
181
182 if (ch_ == 'f') goto state0_31;
183 goto end;
184
185 state0_6:
186 end_state_ = true;
187 id_ = 32;
188 uid_ = 28;
189 end_token_ = curr_;
190
191 if (curr_ == end_) goto end;
192 ch_ = *curr_;
193 ++curr_;
194
195 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'k') || (ch_ >= 'm' && ch_ <= 'z')) goto state0_25;
196
197 if (ch_ == 'l') goto state0_32;
198 goto end;
199
200 state0_7:
201 end_state_ = true;
202 id_ = 32;
203 uid_ = 28;
204 end_token_ = curr_;
205
206 if (curr_ == end_) goto end;
207 ch_ = *curr_;
208 ++curr_;
209
210 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'g') || (ch_ >= 'i' && ch_ <= 'z')) goto state0_25;
211
212 if (ch_ == 'h') goto state0_33;
213 goto end;
214
215 state0_8:
216 end_state_ = true;
217 id_ = 32;
218 uid_ = 28;
219 end_token_ = curr_;
220
221 if (curr_ == end_) goto end;
222 ch_ = *curr_;
223 ++curr_;
224
225 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'd') || (ch_ >= 'f' && ch_ <= 'z')) goto state0_25;
226
227 if (ch_ == 'e') goto state0_34;
228 goto end;
229
230 state0_9:
231 if (curr_ == end_) goto end;
232 ch_ = *curr_;
233 ++curr_;
234
235 if (ch_ == '|') goto state0_35;
236 goto end;
237
238 state0_10:
239 if (curr_ == end_) goto end;
240 ch_ = *curr_;
241 ++curr_;
242
243 if (ch_ == '&') goto state0_36;
244 goto end;
245
246 state0_11:
247 end_state_ = true;
248 id_ = 61;
249 uid_ = 26;
250 end_token_ = curr_;
251
252 if (curr_ == end_) goto end;
253 ch_ = *curr_;
254 ++curr_;
255
256 if (ch_ == '=') goto state0_37;
257 goto end;
258
259 state0_12:
260 end_state_ = true;
261 id_ = 262177;
262 uid_ = 20;
263 end_token_ = curr_;
264
265 if (curr_ == end_) goto end;
266 ch_ = *curr_;
267 ++curr_;
268
269 if (ch_ == '=') goto state0_38;
270 goto end;
271
272 state0_13:
273 end_state_ = true;
274 id_ = 131091;
275 uid_ = 12;
276 end_token_ = curr_;
277
278 if (curr_ == end_) goto end;
279 ch_ = *curr_;
280 ++curr_;
281
282 if (ch_ == '=') goto state0_39;
283 goto end;
284
285 state0_14:
286 end_state_ = true;
287 id_ = 131093;
288 uid_ = 14;
289 end_token_ = curr_;
290
291 if (curr_ == end_) goto end;
292 ch_ = *curr_;
293 ++curr_;
294
295 if (ch_ == '=') goto state0_40;
296 goto end;
297
298 state0_15:
299 end_state_ = true;
300 id_ = 393241;
301 uid_ = 16;
302 end_token_ = curr_;
303 goto end;
304
305 state0_16:
306 end_state_ = true;
307 id_ = 393242;
308 uid_ = 17;
309 end_token_ = curr_;
310 goto end;
311
312 state0_17:
313 end_state_ = true;
314 id_ = 131099;
315 uid_ = 18;
316 end_token_ = curr_;
317 goto end;
318
319 state0_18:
320 end_state_ = true;
321 id_ = 131100;
322 uid_ = 19;
323 end_token_ = curr_;
324
325 if (curr_ == end_) goto end;
326 ch_ = *curr_;
327 ++curr_;
328
329 if (ch_ == '*') goto state0_41;
330 goto end;
331
332 state0_19:
333 end_state_ = true;
334 id_ = 40;
335 uid_ = 21;
336 end_token_ = curr_;
337 goto end;
338
339 state0_20:
340 end_state_ = true;
341 id_ = 41;
342 uid_ = 22;
343 end_token_ = curr_;
344 goto end;
345
346 state0_21:
347 end_state_ = true;
348 id_ = 123;
349 uid_ = 23;
350 end_token_ = curr_;
351 goto end;
352
353 state0_22:
354 end_state_ = true;
355 id_ = 125;
356 uid_ = 24;
357 end_token_ = curr_;
358 goto end;
359
360 state0_23:
361 end_state_ = true;
362 id_ = 44;
363 uid_ = 25;
364 end_token_ = curr_;
365 goto end;
366
367 state0_24:
368 end_state_ = true;
369 id_ = 59;
370 uid_ = 27;
371 end_token_ = curr_;
372 goto end;
373
374 state0_25:
375 end_state_ = true;
376 id_ = 32;
377 uid_ = 28;
378 end_token_ = curr_;
379
380 if (curr_ == end_) goto end;
381 ch_ = *curr_;
382 ++curr_;
383
384 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'z')) goto state0_25;
385 goto end;
386
387 state0_26:
388 end_state_ = true;
389 id_ = 34;
390 uid_ = 30;
391 end_token_ = curr_;
392
393 if (curr_ == end_) goto end;
394 ch_ = *curr_;
395 ++curr_;
396
397 if ((ch_ >= '\t' && ch_ <= '\n') || ch_ == '\r' || ch_ == ' ') goto state0_26;
398 goto end;
399
400 state0_27:
401 end_state_ = true;
402 id_ = 32;
403 uid_ = 28;
404 end_token_ = curr_;
405
406 if (curr_ == end_) goto end;
407 ch_ = *curr_;
408 ++curr_;
409
410 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 't') || (ch_ >= 'v' && ch_ <= 'z')) goto state0_25;
411
412 if (ch_ == 'u') goto state0_42;
413 goto end;
414
415 state0_28:
416 end_state_ = true;
417 id_ = 32;
418 uid_ = 28;
419 end_token_ = curr_;
420
421 if (curr_ == end_) goto end;
422 ch_ = *curr_;
423 ++curr_;
424
425 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'k') || (ch_ >= 'm' && ch_ <= 'z')) goto state0_25;
426
427 if (ch_ == 'l') goto state0_43;
428 goto end;
429
430 state0_29:
431 end_state_ = true;
432 id_ = 32;
433 uid_ = 28;
434 end_token_ = curr_;
435
436 if (curr_ == end_) goto end;
437 ch_ = *curr_;
438 ++curr_;
439
440 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'h') || (ch_ >= 'j' && ch_ <= 'z')) goto state0_25;
441
442 if (ch_ == 'i') goto state0_44;
443 goto end;
444
445 state0_30:
446 end_state_ = true;
447 id_ = 32;
448 uid_ = 28;
449 end_token_ = curr_;
450
451 if (curr_ == end_) goto end;
452 ch_ = *curr_;
453 ++curr_;
454
455 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 's') || (ch_ >= 'u' && ch_ <= 'z')) goto state0_25;
456
457 if (ch_ == 't') goto state0_45;
458 goto end;
459
460 state0_31:
461 end_state_ = true;
462 id_ = 65538;
463 uid_ = 4;
464 end_token_ = curr_;
465
466 if (curr_ == end_) goto end;
467 ch_ = *curr_;
468 ++curr_;
469
470 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'z')) goto state0_25;
471 goto end;
472
473 state0_32:
474 end_state_ = true;
475 id_ = 32;
476 uid_ = 28;
477 end_token_ = curr_;
478
479 if (curr_ == end_) goto end;
480 ch_ = *curr_;
481 ++curr_;
482
483 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'r') || (ch_ >= 't' && ch_ <= 'z')) goto state0_25;
484
485 if (ch_ == 's') goto state0_46;
486 goto end;
487
488 state0_33:
489 end_state_ = true;
490 id_ = 32;
491 uid_ = 28;
492 end_token_ = curr_;
493
494 if (curr_ == end_) goto end;
495 ch_ = *curr_;
496 ++curr_;
497
498 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'h') || (ch_ >= 'j' && ch_ <= 'z')) goto state0_25;
499
500 if (ch_ == 'i') goto state0_47;
501 goto end;
502
503 state0_34:
504 end_state_ = true;
505 id_ = 32;
506 uid_ = 28;
507 end_token_ = curr_;
508
509 if (curr_ == end_) goto end;
510 ch_ = *curr_;
511 ++curr_;
512
513 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 's') || (ch_ >= 'u' && ch_ <= 'z')) goto state0_25;
514
515 if (ch_ == 't') goto state0_48;
516 goto end;
517
518 state0_35:
519 end_state_ = true;
520 id_ = 131084;
521 uid_ = 8;
522 end_token_ = curr_;
523 goto end;
524
525 state0_36:
526 end_state_ = true;
527 id_ = 131085;
528 uid_ = 9;
529 end_token_ = curr_;
530 goto end;
531
532 state0_37:
533 end_state_ = true;
534 id_ = 131089;
535 uid_ = 10;
536 end_token_ = curr_;
537 goto end;
538
539 state0_38:
540 end_state_ = true;
541 id_ = 131090;
542 uid_ = 11;
543 end_token_ = curr_;
544 goto end;
545
546 state0_39:
547 end_state_ = true;
548 id_ = 131092;
549 uid_ = 13;
550 end_token_ = curr_;
551 goto end;
552
553 state0_40:
554 end_state_ = true;
555 id_ = 131094;
556 uid_ = 15;
557 end_token_ = curr_;
558 goto end;
559
560 state0_41:
561 if (curr_ == end_) goto end;
562 ch_ = *curr_;
563 ++curr_;
564
565 if (ch_ != '*') goto state0_41;
566
567 if (ch_ == '*') goto state0_49;
568 goto end;
569
570 state0_42:
571 end_state_ = true;
572 id_ = 32;
573 uid_ = 28;
574 end_token_ = curr_;
575
576 if (curr_ == end_) goto end;
577 ch_ = *curr_;
578 ++curr_;
579
580 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'd') || (ch_ >= 'f' && ch_ <= 'z')) goto state0_25;
581
582 if (ch_ == 'e') goto state0_50;
583 goto end;
584
585 state0_43:
586 end_state_ = true;
587 id_ = 32;
588 uid_ = 28;
589 end_token_ = curr_;
590
591 if (curr_ == end_) goto end;
592 ch_ = *curr_;
593 ++curr_;
594
595 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'r') || (ch_ >= 't' && ch_ <= 'z')) goto state0_25;
596
597 if (ch_ == 's') goto state0_42;
598 goto end;
599
600 state0_44:
601 end_state_ = true;
602 id_ = 32;
603 uid_ = 28;
604 end_token_ = curr_;
605
606 if (curr_ == end_) goto end;
607 ch_ = *curr_;
608 ++curr_;
609
610 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'c') || (ch_ >= 'e' && ch_ <= 'z')) goto state0_25;
611
612 if (ch_ == 'd') goto state0_51;
613 goto end;
614
615 state0_45:
616 end_state_ = true;
617 id_ = 65537;
618 uid_ = 3;
619 end_token_ = curr_;
620
621 if (curr_ == end_) goto end;
622 ch_ = *curr_;
623 ++curr_;
624
625 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'z')) goto state0_25;
626 goto end;
627
628 state0_46:
629 end_state_ = true;
630 id_ = 32;
631 uid_ = 28;
632 end_token_ = curr_;
633
634 if (curr_ == end_) goto end;
635 ch_ = *curr_;
636 ++curr_;
637
638 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'd') || (ch_ >= 'f' && ch_ <= 'z')) goto state0_25;
639
640 if (ch_ == 'e') goto state0_52;
641 goto end;
642
643 state0_47:
644 end_state_ = true;
645 id_ = 32;
646 uid_ = 28;
647 end_token_ = curr_;
648
649 if (curr_ == end_) goto end;
650 ch_ = *curr_;
651 ++curr_;
652
653 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'k') || (ch_ >= 'm' && ch_ <= 'z')) goto state0_25;
654
655 if (ch_ == 'l') goto state0_53;
656 goto end;
657
658 state0_48:
659 end_state_ = true;
660 id_ = 32;
661 uid_ = 28;
662 end_token_ = curr_;
663
664 if (curr_ == end_) goto end;
665 ch_ = *curr_;
666 ++curr_;
667
668 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 't') || (ch_ >= 'v' && ch_ <= 'z')) goto state0_25;
669
670 if (ch_ == 'u') goto state0_54;
671 goto end;
672
673 state0_49:
674 if (curr_ == end_) goto end;
675 ch_ = *curr_;
676 ++curr_;
677
678 if (ch_ == '*') goto state0_49;
679
680 if (ch_ != '*' && ch_ != '/') goto state0_55;
681
682 if (ch_ == '/') goto state0_56;
683 goto end;
684
685 state0_50:
686 end_state_ = true;
687 id_ = 36;
688 uid_ = 1;
689 end_token_ = curr_;
690
691 if (curr_ == end_) goto end;
692 ch_ = *curr_;
693 ++curr_;
694
695 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'z')) goto state0_25;
696 goto end;
697
698 state0_51:
699 end_state_ = true;
700 id_ = 65536;
701 uid_ = 2;
702 end_token_ = curr_;
703
704 if (curr_ == end_) goto end;
705 ch_ = *curr_;
706 ++curr_;
707
708 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'z')) goto state0_25;
709 goto end;
710
711 state0_52:
712 end_state_ = true;
713 id_ = 65539;
714 uid_ = 5;
715 end_token_ = curr_;
716
717 if (curr_ == end_) goto end;
718 ch_ = *curr_;
719 ++curr_;
720
721 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'z')) goto state0_25;
722 goto end;
723
724 state0_53:
725 end_state_ = true;
726 id_ = 32;
727 uid_ = 28;
728 end_token_ = curr_;
729
730 if (curr_ == end_) goto end;
731 ch_ = *curr_;
732 ++curr_;
733
734 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'd') || (ch_ >= 'f' && ch_ <= 'z')) goto state0_25;
735
736 if (ch_ == 'e') goto state0_57;
737 goto end;
738
739 state0_54:
740 end_state_ = true;
741 id_ = 32;
742 uid_ = 28;
743 end_token_ = curr_;
744
745 if (curr_ == end_) goto end;
746 ch_ = *curr_;
747 ++curr_;
748
749 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'q') || (ch_ >= 's' && ch_ <= 'z')) goto state0_25;
750
751 if (ch_ == 'r') goto state0_58;
752 goto end;
753
754 state0_55:
755 if (curr_ == end_) goto end;
756 ch_ = *curr_;
757 ++curr_;
758
759 if (ch_ != '*') goto state0_55;
760
761 if (ch_ == '*') goto state0_59;
762 goto end;
763
764 state0_56:
765 end_state_ = true;
766 id_ = 33;
767 uid_ = 29;
768 end_token_ = curr_;
769 goto end;
770
771 state0_57:
772 end_state_ = true;
773 id_ = 65540;
774 uid_ = 6;
775 end_token_ = curr_;
776
777 if (curr_ == end_) goto end;
778 ch_ = *curr_;
779 ++curr_;
780
781 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'z')) goto state0_25;
782 goto end;
783
784 state0_58:
785 end_state_ = true;
786 id_ = 32;
787 uid_ = 28;
788 end_token_ = curr_;
789
790 if (curr_ == end_) goto end;
791 ch_ = *curr_;
792 ++curr_;
793
794 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'm') || (ch_ >= 'o' && ch_ <= 'z')) goto state0_25;
795
796 if (ch_ == 'n') goto state0_60;
797 goto end;
798
799 state0_59:
800 if (curr_ == end_) goto end;
801 ch_ = *curr_;
802 ++curr_;
803
804 if (ch_ != '*' && ch_ != '/') goto state0_55;
805
806 if (ch_ == '/') goto state0_56;
807
808 if (ch_ == '*') goto state0_59;
809 goto end;
810
811 state0_60:
812 end_state_ = true;
813 id_ = 65541;
814 uid_ = 7;
815 end_token_ = curr_;
816
817 if (curr_ == end_) goto end;
818 ch_ = *curr_;
819 ++curr_;
820
821 if ((ch_ >= '0' && ch_ <= '9') || (ch_ >= 'A' && ch_ <= 'Z') || ch_ == '_' || (ch_ >= 'a' && ch_ <= 'z')) goto state0_25;
822
823 end:
824 if (end_state_)
825 {
826 // return longest match
827 start_token_ = end_token_;
828 }
829 else
830 {
831 id_ = npos;
832 uid_ = npos;
833 }
834
835 unique_id_ = uid_;
836 return id_;
837 }
838
839 ////////////////////////////////////////////////////////////////////////////////
840 // this defines a generic accessors for the information above
841 struct lexer_conjure_static_switch
842 {
843 // version number and feature-set of compatible static lexer engine
844 enum
845 {
846 static_version = 65536,
847 supports_bol = false,
848 supports_eol = false
849 };
850
851 // return the number of lexer states
852 static std::size_t state_count()
853 {
854 return lexer_state_count_conjure_static_switch;
855 }
856
857 // return the name of the lexer state as given by 'idx'
858 static char const* state_name(std::size_t idx)
859 {
860 return lexer_state_names_conjure_static_switch[idx];
861 }
862
863 // return the next matched token
864 template<typename Iterator>
865 static std::size_t next(std::size_t &start_state_, bool& bol_
866 , Iterator &start_token_, Iterator const& end_, std::size_t& unique_id_)
867 {
868 return next_token_conjure_static_switch(start_state_, bol_, start_token_, end_, unique_id_);
869 }
870 };
871
872 }}}}} // namespace boost::spirit::lex::lexertl::static_
873
874 #endif