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
|
host( "working/cppscan6_ruby.rl", 1 ) @{#
# @@LANG: ruby
# @@GENERATED: true
#
}@
array s8 _scanner_actions( 0, 45 ) = { 0, 1, 2, 1, 3, 1, 8, 1, 9, 1, 10, 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 1, 16, 1, 17, 1, 18, 1, 19, 1, 20, 1, 21, 1, 22, 1, 23, 1, 24, 1, 25, 1, 26, 1, 27, 1, 28, 1, 29, 1, 30, 1, 31, 1, 32, 1, 33, 1, 34, 1, 35, 1, 36, 1, 37, 1, 38, 1, 39, 1, 40, 1, 41, 1, 42, 1, 43, 1, 44, 1, 45, 2, 0, 1, 2, 3, 4, 2, 3, 5, 2, 3, 6, 2, 3, 7, 0 };
array char _scanner_trans_keys( 0, 28 ) = { 1, 0, 0, 24, 1, 0, 0, 24, 1, 0, 11, 11, 9, 14, 13, 14, 2, 2, 2, 12, 0, 0, 13, 20, 2, 28, 2, 28, 16, 16, 16, 16, 6, 16, 16, 16, 9, 16, 10, 17, 8, 8, 8, 14, 13, 26, 13, 26, 2, 16, 11, 27, 11, 26, 13, 26, 11, 26, 15, 15, 16, 16, 13, 27, 3, 27, 16, 16, 16, 28, 0 };
array s8 _scanner_char_class( 0, 28 ) = { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 4, 4, 5, 6, 7, 4, 4, 8, 9, 4, 10, 11, 12, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 15, 4, 4, 16, 17, 4, 4, 18, 18, 18, 18, 19, 20, 21, 21, 21, 21, 21, 22, 21, 21, 21, 21, 21, 21, 21, 21, 23, 21, 21, 21, 21, 21, 4, 24, 4, 25, 21, 4, 18, 18, 18, 18, 19, 20, 21, 21, 21, 21, 21, 26, 21, 21, 21, 21, 21, 21, 21, 21, 23, 21, 21, 27, 21, 21, 4, 28, 4, 4, 0 };
array s16 _scanner_index_offsets( 0, 321 ) = { 0, 0, 25, 25, 50, 50, 51, 57, 59, 60, 71, 72, 80, 107, 134, 135, 136, 147, 148, 156, 164, 165, 172, 186, 200, 215, 232, 248, 262, 278, 279, 280, 295, 320, 321, 0 };
array s8 _scanner_indicies( 0, 70 ) = { 0, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 0, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 6, 8, 9, 9, 0, 0, 10, 10, 10, 10, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 13, 15, 17, 17, 16, 16, 16, 17, 17, 17, 19, 1, 20, 21, 22, 4, 23, 24, 25, 26, 27, 28, 29, 30, 31, 20, 32, 32, 32, 32, 33, 32, 20, 34, 32, 32, 35, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 38, 39, 40, 37, 37, 37, 37, 37, 37, 37, 37, 37, 41, 42, 43, 37, 37, 37, 37, 37, 37, 44, 45, 37, 37, 37, 37, 37, 46, 47, 49, 50, 37, 37, 51, 37, 52, 52, 52, 52, 53, 53, 53, 53, 54, 55, 53, 55, 53, 53, 53, 55, 10, 10, 53, 53, 53, 53, 53, 55, 53, 55, 53, 53, 53, 55, 11, 37, 37, 37, 37, 37, 37, 37, 37, 37, 14, 37, 37, 37, 56, 52, 57, 58, 58, 57, 57, 57, 57, 54, 57, 57, 59, 59, 57, 57, 59, 60, 52, 61, 58, 58, 61, 61, 61, 61, 54, 61, 61, 62, 62, 61, 61, 62, 17, 17, 63, 63, 63, 17, 17, 17, 63, 64, 64, 63, 63, 64, 52, 57, 29, 29, 57, 57, 57, 57, 54, 57, 57, 59, 59, 57, 57, 59, 65, 66, 32, 32, 67, 67, 67, 32, 32, 32, 32, 32, 32, 67, 67, 32, 32, 1, 67, 67, 67, 4, 67, 67, 67, 67, 67, 32, 32, 67, 67, 67, 32, 32, 32, 32, 32, 32, 67, 67, 32, 32, 68, 69, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 37, 70, 0 };
array s8 _scanner_index_defaults( 0, 67 ) = { 0, 1, 1, 4, 4, 7, 0, 0, 11, 11, 14, 16, 18, 18, 37, 37, 37, 37, 37, 37, 48, 37, 53, 53, 37, 57, 61, 63, 57, 37, 37, 67, 67, 37, 37, 0 };
array s8 _scanner_trans_cond_spaces( -1, 0 ) = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0 };
array s8 _scanner_cond_targs( 0, 34 ) = { 12, 1, 12, 2, 3, 12, 4, 12, 12, 7, 23, 8, 9, 12, 10, 12, 12, 27, 13, 14, 12, 15, 16, 17, 18, 19, 21, 24, 25, 28, 29, 30, 31, 32, 33, 34, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 20, 12, 12, 12, 5, 22, 12, 6, 12, 12, 12, 26, 12, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 0 };
array s8 _scanner_cond_actions( 0, 93 ) = { 79, 0, 7, 0, 0, 5, 0, 77, 51, 0, 0, 0, 0, 55, 0, 57, 75, 0, 0, 0, 53, 0, 0, 0, 0, 0, 3, 3, 90, 90, 0, 0, 0, 84, 0, 0, 73, 71, 21, 31, 23, 37, 27, 43, 33, 45, 35, 0, 69, 47, 49, 0, 87, 61, 0, 9, 29, 63, 93, 11, 0, 65, 13, 67, 15, 17, 19, 59, 39, 41, 25, 0 };
array s8 _scanner_to_state_actions( 0, 81 ) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
array s8 _scanner_from_state_actions( 0, 1 ) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
array s8 _scanner_eof_trans( 0, 68 ) = { 0, 1, 1, 1, 1, 8, 1, 1, 8, 8, 8, 17, 0, 37, 38, 38, 38, 38, 38, 38, 49, 38, 54, 54, 38, 58, 62, 64, 58, 38, 38, 68, 68, 38, 38, 0 };
array s8 _scanner_nfa_targs( 0, 0 ) = { 0, 0 };
array s8 _scanner_nfa_offsets( 0, 0 ) = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
array s8 _scanner_nfa_push_actions( 0, 0 ) = { 0, 0 };
array s8 _scanner_nfa_pop_trans( 0, 0 ) = { 0, 0 };
value int scanner_start = 12;
value int scanner_first_final = 12;
value int scanner_error = 0;
value int scanner_en_main = 12;
host( "working/cppscan6_ruby.rl", 286 ) @{
def run_machine( data )
p = 0
pe = data.length
eof = data.length
cs = 0;
_m =
_a =
buffer = Array.new
blen = 0
ts = 1
te = 1
act = 1
token = 1
}@
{
cs = cast(int)scanner_start;
ts = nil;
te = nil;
act = 0;
}
host( "working/cppscan6_ruby.rl", 301 ) @{
}@
{
uint _trans = 0;
uint _have = 0;
uint _cont = 1;
index s8 _acts;
uint _nacts;
index char _keys;
index s8 _inds;
while ( _cont == 1 ) {
if ( cs == 0 )
_cont = 0;
_have = 0;
if ( p == pe ) {
if ( p == eof )
{
if ( _scanner_eof_trans[cs] > 0 ) {
_trans = cast(uint)_scanner_eof_trans[cs] - 1;
_have = 1;
}
if ( _have == 0 ) {
}
}
if ( _have == 0 )
_cont = 0;
}
if ( _cont == 1 ) {
if ( _have == 0 ) {
_acts = offset( _scanner_actions, _scanner_from_state_actions[cs] );
_nacts = cast(uint)deref( _scanner_actions, _acts );
_acts += 1;
while ( _nacts > 0 ) {
switch ( deref( _scanner_actions, _acts ) ) {
case 2 {
host( "NONE", 1 ) ${${ts = p;}$}$
}
}
_nacts -= 1;
_acts += 1;
}
_keys = offset( _scanner_trans_keys, (cs<<1) );
_inds = offset( _scanner_indicies, _scanner_index_offsets[cs] );
if ( ( deref( data, p )) <= 126 && ( deref( data, p )) >= 10 )
{
int _ic = cast(int)_scanner_char_class[cast(int)( deref( data, p )) - 10];
if ( _ic <= cast(int)deref( _scanner_trans_keys, _keys+1 ) && _ic >= cast(int)deref( _scanner_trans_keys, _keys ) )
_trans = cast(uint)deref( _scanner_indicies, _inds + cast(int)( _ic - cast(int)deref( _scanner_trans_keys, _keys ) ) );
else
_trans = cast(uint)_scanner_index_defaults[cs];
}
else {
_trans = cast(uint)_scanner_index_defaults[cs];
}
}
if ( _cont == 1 ) {
cs = cast(int)_scanner_cond_targs[_trans];
if ( _scanner_cond_actions[_trans] != 0 ) {
_acts = offset( _scanner_actions, _scanner_cond_actions[_trans] );
_nacts = cast(uint)deref( _scanner_actions, _acts );
_acts += 1;
while ( _nacts > 0 )
{
switch ( deref( _scanner_actions, _acts ) )
{
case 3 {
host( "NONE", 1 ) ${${te = p+1;}$}$
}
case 4 {
host( "working/cppscan6_ruby.rl", 44 ) ${${act = 3;}$}$
}
case 5 {
host( "working/cppscan6_ruby.rl", 60 ) ${${act = 4;}$}$
}
case 6 {
host( "working/cppscan6_ruby.rl", 71 ) ${${act = 5;}$}$
}
case 7 {
host( "working/cppscan6_ruby.rl", 82 ) ${${act = 6;}$}$
}
case 8 {
host( "working/cppscan6_ruby.rl", 24 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 24 ) ${token = 193;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 9 {
host( "working/cppscan6_ruby.rl", 33 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 33 ) ${token = 192;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 10 {
host( "working/cppscan6_ruby.rl", 60 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 60 ) ${token = 194;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 11 {
host( "working/cppscan6_ruby.rl", 71 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 71 ) ${token = 218;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 12 {
host( "working/cppscan6_ruby.rl", 82 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 82 ) ${token = 219;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 13 {
host( "working/cppscan6_ruby.rl", 93 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 93 ) ${token = 220;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 14 {
host( "working/cppscan6_ruby.rl", 103 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 103 ) ${token = 197;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 15 {
host( "working/cppscan6_ruby.rl", 111 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 111 ) ${token = 223;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 16 {
host( "working/cppscan6_ruby.rl", 119 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 119 ) ${token = 224;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 17 {
host( "working/cppscan6_ruby.rl", 127 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 127 ) ${token = 225;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 18 {
host( "working/cppscan6_ruby.rl", 135 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 135 ) ${token = 226;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 19 {
host( "working/cppscan6_ruby.rl", 143 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 143 ) ${token = 227;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 20 {
host( "working/cppscan6_ruby.rl", 151 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 151 ) ${token = 228;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 21 {
host( "working/cppscan6_ruby.rl", 159 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 159 ) ${token = 229;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 22 {
host( "working/cppscan6_ruby.rl", 167 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 167 ) ${token = 230;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 23 {
host( "working/cppscan6_ruby.rl", 175 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 175 ) ${token = 231;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 24 {
host( "working/cppscan6_ruby.rl", 183 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 183 ) ${token = 232;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 25 {
host( "working/cppscan6_ruby.rl", 191 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 191 ) ${token = 233;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 26 {
host( "working/cppscan6_ruby.rl", 199 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 199 ) ${token = 234;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 27 {
host( "working/cppscan6_ruby.rl", 207 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 207 ) ${token = 212;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 28 {
host( "working/cppscan6_ruby.rl", 215 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 215 ) ${token = 213;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 29 {
host( "working/cppscan6_ruby.rl", 231 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 231 ) ${token = 214;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 30 {
host( "working/cppscan6_ruby.rl", 239 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 239 ) ${token = 215;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 31 {
host( "working/cppscan6_ruby.rl", 249 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 249 ) ${token = 240;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 32 {
host( "working/cppscan6_ruby.rl", 259 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 259 ) ${token = ( data[ts].ord )
;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 33 {
host( "working/cppscan6_ruby.rl", 10 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 10 ) ${token = 242;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 34 {
host( "working/cppscan6_ruby.rl", 10 ) ${${te = p+1;host( "working/cppscan6_ruby.rl", 10 ) ${token = 242;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 35 {
host( "working/cppscan6_ruby.rl", 44 ) ${${te = p;p = p - 1;host( "working/cppscan6_ruby.rl", 44 ) ${token = 195;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 36 {
host( "working/cppscan6_ruby.rl", 60 ) ${${te = p;p = p - 1;host( "working/cppscan6_ruby.rl", 60 ) ${token = 194;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 37 {
host( "working/cppscan6_ruby.rl", 71 ) ${${te = p;p = p - 1;host( "working/cppscan6_ruby.rl", 71 ) ${token = 218;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 38 {
host( "working/cppscan6_ruby.rl", 82 ) ${${te = p;p = p - 1;host( "working/cppscan6_ruby.rl", 82 ) ${token = 219;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 39 {
host( "working/cppscan6_ruby.rl", 93 ) ${${te = p;p = p - 1;host( "working/cppscan6_ruby.rl", 93 ) ${token = 220;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 40 {
host( "working/cppscan6_ruby.rl", 223 ) ${${te = p;p = p - 1;host( "working/cppscan6_ruby.rl", 223 ) ${token = 211;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 41 {
host( "working/cppscan6_ruby.rl", 259 ) ${${te = p;p = p - 1;host( "working/cppscan6_ruby.rl", 259 ) ${token = ( data[ts].ord )
;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 42 {
host( "working/cppscan6_ruby.rl", 272 ) ${${te = p;p = p - 1;host( "working/cppscan6_ruby.rl", 272 ) ${token = 241;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 43 {
host( "working/cppscan6_ruby.rl", 71 ) ${${p = ((te))-1;
host( "working/cppscan6_ruby.rl", 71 ) ${token = 218;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 44 {
host( "working/cppscan6_ruby.rl", 259 ) ${${p = ((te))-1;
host( "working/cppscan6_ruby.rl", 259 ) ${token = ( data[ts].ord )
;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$}$}$
}
case 45 {
host( "NONE", 1 ) ${${switch( act ) {
case 0 {
host( "NONE", 1 ) ${${cs = 0;}$}$ }
case 3 {
p = ((te))-1;
host( "working/cppscan6_ruby.rl", 44 ) ${token = 195;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$ }
case 4 {
p = ((te))-1;
host( "working/cppscan6_ruby.rl", 60 ) ${token = 194;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$ }
case 5 {
p = ((te))-1;
host( "working/cppscan6_ruby.rl", 71 ) ${token = 218;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$ }
case 6 {
p = ((te))-1;
host( "working/cppscan6_ruby.rl", 82 ) ${token = 219;
print( "<" );
print( token );
print( "> " );
_m = data[ts..te-1];
print( _m );
print( "\n" );
}$ }
}}$
}$
}
}
_nacts -= 1;
_acts += 1;
}
}
_acts = offset( _scanner_actions, _scanner_to_state_actions[cs] );
_nacts = cast(uint)deref( _scanner_actions, _acts );
_acts += 1;
while ( _nacts > 0 ) {
switch ( deref( _scanner_actions, _acts ) ) {
case 0 {
host( "NONE", 1 ) ${${ts = nil;}$}$
}
case 1 {
host( "NONE", 1 ) ${${act = 0;}$}$
}
}
_nacts -= 1;
_acts += 1;
}
if ( cs == 0 )
_cont = 0;
if ( _cont == 1 )
p += 1;
}}
}
}
host( "working/cppscan6_ruby.rl", 302 ) @{
if cs >= scanner_first_final
puts "ACCEPT"
else
puts "FAIL"
end
end
inp = [
"\"\\\"hi\" /!\n!/\n44 .44\n44. 44\n44 . 44\n44.44\n_hithere22",
"'\\''\"\\n\\d'\\\"\"\nhi\n99\n.99\n99e-4\n->*\n||\n0x98\n0x\n//\n/! * !/",
"'\n'\n",
]
inplen = 3
inp.each { |str| run_machine(str) }
}@
|