summaryrefslogtreecommitdiff
path: root/test/cases/rlhc.d/case/clang1.c-C-G0--goto-backend.in
blob: 8f9db26ccfc26ef3fa92b9061406aff23fc21d4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
host( "working/clang1.rl", 1 ) @{/*
	* @@LANG: c
	* A mini C-like language scanner.
	*/
	
	#include <stdio.h>
	#include <string.h>
	#define IDENT_BUFLEN 256
	
	
	
	#include <stdio.h>
	
}@
array s8 _clang_actions( 0, 8 ) = { 0, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 2, 0, 8, 2, 1, 0, 2, 2, 1, 2, 2, 8, 2, 3, 1, 2, 3, 8, 2, 4, 1, 2, 4, 8, 2, 5, 1, 2, 5, 8, 2, 6, 1, 2, 6, 8, 2, 7, 1, 2, 7, 8, 3, 2, 1, 0, 3, 3, 1, 0, 3, 4, 1, 0, 3, 5, 1, 0, 3, 6, 1, 0, 3, 7, 1, 0, 0 };

array s8 _clang_eof_actions( 0, 15 ) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15, 7, 15, 11, 9, 5, 11, 13, 0 };

array s8 _clang_nfa_targs( 0, 0 ) = { 0, 0 };

array s8 _clang_nfa_offsets( 0, 0 ) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };

array s8 _clang_nfa_push_actions( 0, 0 ) = { 0, 0 };

array s8 _clang_nfa_pop_trans( 0, 0 ) = { 0, 0 };

value int clang_start = 10;
value int clang_first_final = 10;

value int clang_en_main = 10;

host( "working/clang1.rl", 133 ) @{
	
	
	char data[] = 
	"/*\n"
	" *  Copyright\n"
	" */\n"
	"\n"
	"/*  Aapl.\n"
	" */\n"
	"\n"
	"#define _AAPL_RESIZE_H\n"
	"\n"
	"#include <assert.h>\n"
	"\n"
	"#ifdef AAPL_NAMESPACE\n"
	"namespace Aapl {\n"
		"#endif\n"
		"#define LIN_DEFAULT_STEP 256\n"
		"#define EXPN_UP( existing, needed ) \\\n"
		"		need > eng ? (ned<<1) : eing\n"
		"	\n"
		"\n"
		"/*@@}*/\n"
	"#undef EXPN_UP\n"
	"#ifdef AAPL_NAMESPACE\n"
	"#endif /* _AAPL_RESIZE_H */\n";
	
	void test( char *buf )
	{
		int len = strlen( buf );
		char *p = buf, *pe = buf + len;
		char *eof = pe;
		char identBuf[IDENT_BUFLEN+1];
		int identLen;
		int curLine;
		int cs;
		
		identLen = 0;
		curLine = 1;
		
	}@
	{
		cs = cast(int)clang_start;
	}
	host( "working/clang1.rl", 174 ) @{
	}@
	{
		index s8 _acts;
		uint _nacts;
		
		if ( p == pe )
		goto _test_eof;
		if ( cs == 0 )
		goto _out;
		_resume:
		switch ( cs ) {
			case 10:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr12;
				}
				case 34: {
					goto ctr17;
				}
				case 39: {
					goto ctr18;
				}
				case 47: {
					goto ctr19;
				}
				case 48: {
					goto ctr20;
				}
				case 95: {
					goto ctr22;
				}
			}
			if ( ( deref( data, p )) < 65 ) {
				if ( ( deref( data, p )) < 49 ) {
					if ( 33 <= ( deref( data, p )) && ( deref( data, p )) <= 46 ) {
						goto ctr16;
					}
				} else if ( ( deref( data, p )) > 57 ) {
					{
						goto ctr16;
					}
				} else {
					goto ctr21;
				}
			} else if ( ( deref( data, p )) > 90 ) {
				if ( ( deref( data, p )) < 97 ) {
					{
						goto ctr16;
					}
				} else if ( ( deref( data, p )) > 122 ) {
					if ( ( deref( data, p )) <= 126 ) {
						goto ctr16;
					}
				} else {
					goto ctr22;
				}
			} else {
				goto ctr22;
			}
			{
				goto ctr10;
			}
			case 11:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr24;
				}
				case 34: {
					goto ctr26;
				}
				case 39: {
					goto ctr27;
				}
				case 47: {
					goto ctr28;
				}
				case 48: {
					goto ctr29;
				}
				case 95: {
					goto ctr31;
				}
			}
			if ( ( deref( data, p )) < 65 ) {
				if ( ( deref( data, p )) < 49 ) {
					if ( 33 <= ( deref( data, p )) && ( deref( data, p )) <= 46 ) {
						goto ctr25;
					}
				} else if ( ( deref( data, p )) > 57 ) {
					{
						goto ctr25;
					}
				} else {
					goto ctr30;
				}
			} else if ( ( deref( data, p )) > 90 ) {
				if ( ( deref( data, p )) < 97 ) {
					{
						goto ctr25;
					}
				} else if ( ( deref( data, p )) > 122 ) {
					if ( ( deref( data, p )) <= 126 ) {
						goto ctr25;
					}
				} else {
					goto ctr31;
				}
			} else {
				goto ctr31;
			}
			{
				goto ctr23;
			}
			case 1:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr1;
				}
				case 34: {
					goto ctr2;
				}
				case 92: {
					goto ctr3;
				}
			}
			{
				goto ctr0;
			}
			case 12:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr33;
				}
				case 34: {
					goto ctr35;
				}
				case 39: {
					goto ctr36;
				}
				case 47: {
					goto ctr37;
				}
				case 48: {
					goto ctr38;
				}
				case 95: {
					goto ctr40;
				}
			}
			if ( ( deref( data, p )) < 65 ) {
				if ( ( deref( data, p )) < 49 ) {
					if ( 33 <= ( deref( data, p )) && ( deref( data, p )) <= 46 ) {
						goto ctr34;
					}
				} else if ( ( deref( data, p )) > 57 ) {
					{
						goto ctr34;
					}
				} else {
					goto ctr39;
				}
			} else if ( ( deref( data, p )) > 90 ) {
				if ( ( deref( data, p )) < 97 ) {
					{
						goto ctr34;
					}
				} else if ( ( deref( data, p )) > 122 ) {
					if ( ( deref( data, p )) <= 126 ) {
						goto ctr34;
					}
				} else {
					goto ctr40;
				}
			} else {
				goto ctr40;
			}
			{
				goto ctr32;
			}
			case 2:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr5;
				}
				case 39: {
					goto ctr2;
				}
				case 92: {
					goto ctr6;
				}
			}
			{
				goto ctr4;
			}
			case 3:
			if ( ( deref( data, p )) == 10 ) {
				goto ctr5;
			}
			{
				goto ctr4;
			}
			case 13:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr24;
				}
				case 34: {
					goto ctr26;
				}
				case 39: {
					goto ctr27;
				}
				case 42: {
					goto ctr7;
				}
				case 47: {
					goto ctr11;
				}
				case 48: {
					goto ctr29;
				}
				case 95: {
					goto ctr31;
				}
			}
			if ( ( deref( data, p )) < 65 ) {
				if ( ( deref( data, p )) < 49 ) {
					if ( 33 <= ( deref( data, p )) && ( deref( data, p )) <= 46 ) {
						goto ctr25;
					}
				} else if ( ( deref( data, p )) > 57 ) {
					{
						goto ctr25;
					}
				} else {
					goto ctr30;
				}
			} else if ( ( deref( data, p )) > 90 ) {
				if ( ( deref( data, p )) < 97 ) {
					{
						goto ctr25;
					}
				} else if ( ( deref( data, p )) > 122 ) {
					if ( ( deref( data, p )) <= 126 ) {
						goto ctr25;
					}
				} else {
					goto ctr31;
				}
			} else {
				goto ctr31;
			}
			{
				goto ctr23;
			}
			case 4:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr8;
				}
				case 42: {
					goto ctr9;
				}
			}
			{
				goto ctr7;
			}
			case 5:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr8;
				}
				case 42: {
					goto ctr9;
				}
				case 47: {
					goto ctr10;
				}
			}
			{
				goto ctr7;
			}
			case 6:
			if ( ( deref( data, p )) == 10 ) {
				goto ctr12;
			}
			{
				goto ctr11;
			}
			case 14:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr42;
				}
				case 34: {
					goto ctr44;
				}
				case 39: {
					goto ctr45;
				}
				case 46: {
					goto ctr46;
				}
				case 47: {
					goto ctr47;
				}
				case 95: {
					goto ctr49;
				}
				case 120: {
					goto ctr50;
				}
			}
			if ( ( deref( data, p )) < 65 ) {
				if ( ( deref( data, p )) < 48 ) {
					if ( 33 <= ( deref( data, p )) && ( deref( data, p )) <= 45 ) {
						goto ctr43;
					}
				} else if ( ( deref( data, p )) > 57 ) {
					{
						goto ctr43;
					}
				} else {
					goto ctr48;
				}
			} else if ( ( deref( data, p )) > 90 ) {
				if ( ( deref( data, p )) < 97 ) {
					{
						goto ctr43;
					}
				} else if ( ( deref( data, p )) > 122 ) {
					if ( ( deref( data, p )) <= 126 ) {
						goto ctr43;
					}
				} else {
					goto ctr49;
				}
			} else {
				goto ctr49;
			}
			{
				goto ctr41;
			}
			case 7:
			if ( 48 <= ( deref( data, p )) && ( deref( data, p )) <= 57 ) {
				goto ctr13;
			}
			{
				goto ctr14;
			}
			case 0:
			goto _out;
			case 15:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr52;
				}
				case 34: {
					goto ctr54;
				}
				case 39: {
					goto ctr55;
				}
				case 47: {
					goto ctr56;
				}
				case 95: {
					goto ctr57;
				}
			}
			if ( ( deref( data, p )) < 65 ) {
				if ( ( deref( data, p )) < 48 ) {
					if ( 33 <= ( deref( data, p )) && ( deref( data, p )) <= 46 ) {
						goto ctr53;
					}
				} else if ( ( deref( data, p )) > 57 ) {
					{
						goto ctr53;
					}
				} else {
					goto ctr13;
				}
			} else if ( ( deref( data, p )) > 90 ) {
				if ( ( deref( data, p )) < 97 ) {
					{
						goto ctr53;
					}
				} else if ( ( deref( data, p )) > 122 ) {
					if ( ( deref( data, p )) <= 126 ) {
						goto ctr53;
					}
				} else {
					goto ctr57;
				}
			} else {
				goto ctr57;
			}
			{
				goto ctr51;
			}
			case 16:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr59;
				}
				case 34: {
					goto ctr61;
				}
				case 39: {
					goto ctr62;
				}
				case 47: {
					goto ctr63;
				}
				case 95: {
					goto ctr64;
				}
			}
			if ( ( deref( data, p )) < 65 ) {
				if ( ( deref( data, p )) < 48 ) {
					if ( 33 <= ( deref( data, p )) && ( deref( data, p )) <= 46 ) {
						goto ctr60;
					}
				} else if ( ( deref( data, p )) > 57 ) {
					{
						goto ctr60;
					}
				} else {
					goto ctr64;
				}
			} else if ( ( deref( data, p )) > 90 ) {
				if ( ( deref( data, p )) < 97 ) {
					{
						goto ctr60;
					}
				} else if ( ( deref( data, p )) > 122 ) {
					if ( ( deref( data, p )) <= 126 ) {
						goto ctr60;
					}
				} else {
					goto ctr64;
				}
			} else {
				goto ctr64;
			}
			{
				goto ctr58;
			}
			case 17:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr42;
				}
				case 34: {
					goto ctr44;
				}
				case 39: {
					goto ctr45;
				}
				case 46: {
					goto ctr46;
				}
				case 47: {
					goto ctr47;
				}
				case 95: {
					goto ctr49;
				}
			}
			if ( ( deref( data, p )) < 65 ) {
				if ( ( deref( data, p )) < 48 ) {
					if ( 33 <= ( deref( data, p )) && ( deref( data, p )) <= 45 ) {
						goto ctr43;
					}
				} else if ( ( deref( data, p )) > 57 ) {
					{
						goto ctr43;
					}
				} else {
					goto ctr48;
				}
			} else if ( ( deref( data, p )) > 90 ) {
				if ( ( deref( data, p )) < 97 ) {
					{
						goto ctr43;
					}
				} else if ( ( deref( data, p )) > 122 ) {
					if ( ( deref( data, p )) <= 126 ) {
						goto ctr43;
					}
				} else {
					goto ctr49;
				}
			} else {
				goto ctr49;
			}
			{
				goto ctr41;
			}
			case 8:
			if ( ( deref( data, p )) < 65 ) {
				if ( 48 <= ( deref( data, p )) && ( deref( data, p )) <= 57 ) {
					goto ctr15;
				}
			} else if ( ( deref( data, p )) > 70 ) {
				if ( 97 <= ( deref( data, p )) && ( deref( data, p )) <= 102 ) {
					goto ctr15;
				}
			} else {
				goto ctr15;
			}
			{
				goto ctr14;
			}
			case 18:
			switch( ( deref( data, p )) ) {
				case 10: {
					goto ctr66;
				}
				case 34: {
					goto ctr68;
				}
				case 39: {
					goto ctr69;
				}
				case 47: {
					goto ctr70;
				}
				case 95: {
					goto ctr72;
				}
			}
			if ( ( deref( data, p )) < 71 ) {
				if ( ( deref( data, p )) < 48 ) {
					if ( 33 <= ( deref( data, p )) && ( deref( data, p )) <= 46 ) {
						goto ctr67;
					}
				} else if ( ( deref( data, p )) > 57 ) {
					if ( ( deref( data, p )) > 64 ) {
						{
							goto ctr71;
						}
					} else {
						goto ctr67;
					}
				} else {
					goto ctr71;
				}
			} else if ( ( deref( data, p )) > 90 ) {
				if ( ( deref( data, p )) < 97 ) {
					{
						goto ctr67;
					}
				} else if ( ( deref( data, p )) > 102 ) {
					if ( ( deref( data, p )) > 122 ) {
						if ( ( deref( data, p )) <= 126 ) {
							goto ctr67;
						}
					} else {
						goto ctr72;
					}
				} else {
					goto ctr71;
				}
			} else {
				goto ctr72;
			}
			{
				goto ctr65;
			}
			case 9:
			if ( ( deref( data, p )) == 10 ) {
				goto ctr1;
			}
			{
				goto ctr0;
			}
		}
		
		ctr14: cs = 0; goto _again;
		ctr0: cs = 1; goto f0;
		ctr1: cs = 1; goto f1;
		ctr17: cs = 1; goto f4;
		ctr26: cs = 1; goto f8;
		ctr35: cs = 1; goto f12;
		ctr44: cs = 1; goto f16;
		ctr54: cs = 1; goto f20;
		ctr61: cs = 1; goto f24;
		ctr68: cs = 1; goto f28;
		ctr4: cs = 2; goto f0;
		ctr5: cs = 2; goto f1;
		ctr18: cs = 2; goto f4;
		ctr27: cs = 2; goto f8;
		ctr36: cs = 2; goto f12;
		ctr45: cs = 2; goto f16;
		ctr55: cs = 2; goto f20;
		ctr62: cs = 2; goto f24;
		ctr69: cs = 2; goto f28;
		ctr6: cs = 3; goto _again;
		ctr7: cs = 4; goto _again;
		ctr8: cs = 4; goto f2;
		ctr9: cs = 5; goto _again;
		ctr11: cs = 6; goto _again;
		ctr46: cs = 7; goto f0;
		ctr50: cs = 8; goto _again;
		ctr3: cs = 9; goto _again;
		ctr10: cs = 10; goto _again;
		ctr12: cs = 10; goto f2;
		ctr23: cs = 10; goto f5;
		ctr24: cs = 10; goto f6;
		ctr32: cs = 10; goto f9;
		ctr33: cs = 10; goto f10;
		ctr41: cs = 10; goto f13;
		ctr42: cs = 10; goto f14;
		ctr51: cs = 10; goto f17;
		ctr52: cs = 10; goto f18;
		ctr58: cs = 10; goto f21;
		ctr59: cs = 10; goto f22;
		ctr65: cs = 10; goto f25;
		ctr66: cs = 10; goto f26;
		ctr16: cs = 11; goto f3;
		ctr25: cs = 11; goto f7;
		ctr34: cs = 11; goto f11;
		ctr43: cs = 11; goto f15;
		ctr53: cs = 11; goto f19;
		ctr60: cs = 11; goto f23;
		ctr67: cs = 11; goto f27;
		ctr2: cs = 12; goto _again;
		ctr19: cs = 13; goto f3;
		ctr28: cs = 13; goto f7;
		ctr37: cs = 13; goto f11;
		ctr47: cs = 13; goto f15;
		ctr56: cs = 13; goto f19;
		ctr63: cs = 13; goto f23;
		ctr70: cs = 13; goto f27;
		ctr20: cs = 14; goto f3;
		ctr29: cs = 14; goto f7;
		ctr38: cs = 14; goto f11;
		ctr13: cs = 15; goto f0;
		ctr64: cs = 16; goto f0;
		ctr22: cs = 16; goto f3;
		ctr31: cs = 16; goto f7;
		ctr40: cs = 16; goto f11;
		ctr49: cs = 16; goto f15;
		ctr57: cs = 16; goto f19;
		ctr72: cs = 16; goto f27;
		ctr48: cs = 17; goto f0;
		ctr21: cs = 17; goto f3;
		ctr30: cs = 17; goto f7;
		ctr39: cs = 17; goto f11;
		ctr71: cs = 18; goto f0;
		ctr15: cs = 18; goto f3;
		
		f0: _acts = offset( _clang_actions, 1 ); goto execFuncs;
		f4: _acts = offset( _clang_actions, 3 ); goto execFuncs;
		f21: _acts = offset( _clang_actions, 5 ); goto execFuncs;
		f9: _acts = offset( _clang_actions, 7 ); goto execFuncs;
		f17: _acts = offset( _clang_actions, 9 ); goto execFuncs;
		f13: _acts = offset( _clang_actions, 11 ); goto execFuncs;
		f25: _acts = offset( _clang_actions, 13 ); goto execFuncs;
		f5: _acts = offset( _clang_actions, 15 ); goto execFuncs;
		f2: _acts = offset( _clang_actions, 17 ); goto execFuncs;
		f1: _acts = offset( _clang_actions, 19 ); goto execFuncs;
		f3: _acts = offset( _clang_actions, 22 ); goto execFuncs;
		f24: _acts = offset( _clang_actions, 25 ); goto execFuncs;
		f22: _acts = offset( _clang_actions, 28 ); goto execFuncs;
		f12: _acts = offset( _clang_actions, 31 ); goto execFuncs;
		f10: _acts = offset( _clang_actions, 34 ); goto execFuncs;
		f20: _acts = offset( _clang_actions, 37 ); goto execFuncs;
		f18: _acts = offset( _clang_actions, 40 ); goto execFuncs;
		f16: _acts = offset( _clang_actions, 43 ); goto execFuncs;
		f14: _acts = offset( _clang_actions, 46 ); goto execFuncs;
		f28: _acts = offset( _clang_actions, 49 ); goto execFuncs;
		f26: _acts = offset( _clang_actions, 52 ); goto execFuncs;
		f8: _acts = offset( _clang_actions, 55 ); goto execFuncs;
		f6: _acts = offset( _clang_actions, 58 ); goto execFuncs;
		f23: _acts = offset( _clang_actions, 61 ); goto execFuncs;
		f11: _acts = offset( _clang_actions, 65 ); goto execFuncs;
		f19: _acts = offset( _clang_actions, 69 ); goto execFuncs;
		f15: _acts = offset( _clang_actions, 73 ); goto execFuncs;
		f27: _acts = offset( _clang_actions, 77 ); goto execFuncs;
		f7: _acts = offset( _clang_actions, 81 ); goto execFuncs;
		
		execFuncs:
		_nacts = cast(uint)deref( _clang_actions, _acts );
		_acts += 1;
		while ( _nacts > 0 ) {
			switch ( deref( _clang_actions, _acts ) ) {
				case 0{
					host( "working/clang1.rl", 14 ) ${
						if ( identLen < IDENT_BUFLEN ) {
							identBuf[identLen] = ={( deref( data, p ))}=;
							identLen += 1;
						}
					}$
				}
				case 1{
					host( "working/clang1.rl", 22 ) ${
						identLen = 0;
					}$
				}
				case 2{
					host( "working/clang1.rl", 27 ) ${
						identBuf[identLen] = 0;
						printf("ident(%i): %s\n", curLine, identBuf);
					}$
				}
				case 3{
					host( "working/clang1.rl", 31 ) ${
						identBuf[identLen] = 0;
						printf("literal(%i): %s\n", curLine, identBuf);
					}$
				}
				case 4{
					host( "working/clang1.rl", 35 ) ${
						identBuf[identLen] = 0;
						printf("float(%i): %s\n", curLine, identBuf);
					}$
				}
				case 5{
					host( "working/clang1.rl", 39 ) ${
						identBuf[identLen] = 0;
						printf("int(%i): %s\n", curLine, identBuf);
					}$
				}
				case 6{
					host( "working/clang1.rl", 43 ) ${
						identBuf[identLen] = 0;
						printf("hex(%i): 0x%s\n", curLine, identBuf);
					}$
				}
				case 7{
					host( "working/clang1.rl", 47 ) ${
						identBuf[identLen] = 0;
						printf("symbol(%i): %s\n", curLine, identBuf);
					}$
				}
				case 8{
					host( "working/clang1.rl", 121 ) ${ curLine += 1; }$
				}
			}
			_acts += 1;
			_nacts -= 1;
		}
		
		goto _again;
		
		_again:
		if ( cs == 0 )
		goto _out;
		p += 1;
		if ( p != pe )
		goto _resume;
		_test_eof: {}
		if ( p == eof )
		{
			index s8 __acts;
			uint __nacts;
			__acts = offset( _clang_actions, _clang_eof_actions[cs] );
			__nacts = cast(uint)deref( _clang_actions, __acts ); __acts += 1;
			while ( __nacts > 0 ) {
				switch ( deref( _clang_actions, __acts ) ) {
					case 2{
						host( "working/clang1.rl", 27 ) ${
							identBuf[identLen] = 0;
							printf("ident(%i): %s\n", curLine, identBuf);
						}$
					}
					case 3{
						host( "working/clang1.rl", 31 ) ${
							identBuf[identLen] = 0;
							printf("literal(%i): %s\n", curLine, identBuf);
						}$
					}
					case 4{
						host( "working/clang1.rl", 35 ) ${
							identBuf[identLen] = 0;
							printf("float(%i): %s\n", curLine, identBuf);
						}$
					}
					case 5{
						host( "working/clang1.rl", 39 ) ${
							identBuf[identLen] = 0;
							printf("int(%i): %s\n", curLine, identBuf);
						}$
					}
					case 6{
						host( "working/clang1.rl", 43 ) ${
							identBuf[identLen] = 0;
							printf("hex(%i): 0x%s\n", curLine, identBuf);
						}$
					}
					case 7{
						host( "working/clang1.rl", 47 ) ${
							identBuf[identLen] = 0;
							printf("symbol(%i): %s\n", curLine, identBuf);
						}$
					}
				}
				__acts += 1;
				__nacts -= 1;
			}
		}
		
		_out: {}
	}
	host( "working/clang1.rl", 175 ) @{
		
		if ( cs >= clang_first_final )
		printf("ACCEPT\n");
		else
		printf("FAIL\n");
	}
	
	int main()
	{
		test( 
		"999 0xaAFF99 99.99 /*\n"
		"*/ 'lksdj' //\n"
		"\"\n"
		"\n"
		"literal\n"
		"\n"
		"\n"
		"\"0x00aba foobardd.ddsf 0x0.9\n" );
		test( 
		"wordwithnum00asdf\n"
		"000wordfollowsnum,makes new symbol\n"
		"\n"
		"finishing early /* unfinished ...\n" );
		test( data );
		return 0;
	}
	
}@