This repository has been archived by the owner on Dec 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Yylex.java
1587 lines (1487 loc) · 51 KB
/
Yylex.java
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
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* The following code was generated by JFlex 1.4.1 on 4/08/15 04:47 PM */
import java_cup.runtime.*;
/**
* This class is a scanner generated by
* <a href="http://www.jflex.de/">JFlex</a> 1.4.1
* on 4/08/15 04:47 PM from the specification file
* <tt>/Users/Alejandro/GitHub/mapic/mapic.flex</tt>
*/
class Yylex implements java_cup.runtime.Scanner {
/** This character denotes the end of file */
public static final int YYEOF = -1;
/** initial size of the lookahead buffer */
private static final int ZZ_BUFFERSIZE = 16384;
/** lexical states */
public static final int YYINITIAL = 0;
/**
* Translates characters to character classes
*/
private static final String ZZ_CMAP_PACKED =
"\11\0\1\66\1\65\2\0\1\66\22\0\1\66\1\61\5\0\1\64"+
"\1\46\1\47\1\2\1\54\1\52\1\55\1\63\1\1\1\5\1\7"+
"\1\34\1\35\1\36\1\37\1\40\1\41\2\4\1\45\1\53\1\57"+
"\1\60\1\56\2\0\1\15\1\6\1\11\1\12\1\13\1\26\1\42"+
"\1\32\1\22\2\3\1\14\1\17\1\23\1\33\1\25\1\31\1\30"+
"\1\20\1\21\1\24\1\43\1\44\1\10\1\16\1\3\4\0\1\27"+
"\1\0\1\15\1\6\1\11\1\12\1\13\1\26\1\42\1\32\1\22"+
"\2\3\1\14\1\17\1\23\1\33\1\25\1\31\1\30\1\20\1\21"+
"\1\24\1\43\1\44\1\10\1\16\1\3\1\50\1\0\1\51\u05e2\0"+
"\12\62\206\0\12\62\306\0\12\62\u019c\0\12\62\166\0\12\62\166\0"+
"\12\62\166\0\12\62\166\0\12\62\166\0\12\62\166\0\12\62\166\0"+
"\12\62\166\0\12\62\340\0\12\62\166\0\12\62\106\0\12\62\u0116\0"+
"\12\62\106\0\12\62\u0746\0\12\62\46\0\12\62\u012c\0\12\62\200\0"+
"\12\62\246\0\12\62\6\0\12\62\266\0\12\62\126\0\12\62\206\0"+
"\12\62\6\0\12\62\u89c6\0\12\62\u02a6\0\12\62\46\0\12\62\306\0"+
"\12\62\166\0\12\62\u0196\0\12\62\u5316\0\12\62\346\0";
/**
* Translates characters to character classes
*/
private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);
/**
* Translates DFA states to action switch labels.
*/
private static final int [] ZZ_ACTION = zzUnpackAction();
private static final String ZZ_ACTION_PACKED_0 =
"\1\0\1\1\1\2\1\3\2\4\20\3\1\5\1\6"+
"\1\7\1\10\1\11\1\12\1\13\1\14\1\15\1\16"+
"\1\17\1\20\2\1\1\21\3\0\1\22\6\3\1\23"+
"\6\3\1\24\1\3\1\25\1\26\1\27\1\30\1\31"+
"\6\3\1\32\1\33\1\34\1\35\1\36\1\37\6\3"+
"\1\40\1\41\3\3\1\42\1\43\1\44\1\45\1\46"+
"\1\47\2\0\1\50\1\0\11\3\1\51\5\3\1\52"+
"\1\53\1\54\1\55\1\56\1\57\1\60\1\61\1\62"+
"\1\63\1\64\1\65\1\66\1\67\1\70\1\71\1\72"+
"\1\73\1\74\1\75\1\76\1\77\1\100\1\101\1\102"+
"\1\103\1\104\1\105\1\106\1\107\1\110\1\111\1\112"+
"\1\113\1\114\1\115\5\3\1\116\1\117\1\120\1\121"+
"\1\122\1\123\1\124\1\125\1\126\1\127\1\130\1\131"+
"\1\132\1\133\1\134\1\135\1\136\1\137\1\140\1\141"+
"\1\142\1\143\1\144\1\145\1\146\1\147\1\150\1\151"+
"\1\152\1\153\1\154\1\155\1\156\1\157\1\160\1\161"+
"\1\162\2\3\1\163\3\3\1\164\2\3\1\165\1\21"+
"\1\0\1\3\1\166\1\3\1\167\6\3\1\170\3\3"+
"\1\171\1\3\1\172\1\173\10\3\1\174\1\3\1\0"+
"\1\3\1\175\5\3\1\176\1\177\6\3\1\200\1\201"+
"\3\3\1\202\1\0\7\3\1\203\1\204\1\205\1\206"+
"\1\207\1\210\1\211\1\212\1\213\1\214\1\215\1\216"+
"\1\217\1\220\2\3\1\221\1\3\1\0\1\222\1\223"+
"\1\224\1\3\1\225\2\3\1\226\1\227\1\230\1\231"+
"\1\232\1\233\6\3\1\234\1\3\1\0\15\3\1\0"+
"\3\3\1\235\6\3\1\236\1\237\1\3\1\240\6\3"+
"\1\241\1\242\1\243\1\244\1\245\1\246\1\247\1\3"+
"\1\250\1\251\1\252\1\253\1\254\1\3\1\255\1\256"+
"\5\3\1\257\1\260\1\261\1\262\2\3\1\263\4\3"+
"\1\264\1\265\1\266\1\267\1\3\1\270\1\271\1\3"+
"\1\272\1\3\1\273";
private static int [] zzUnpackAction() {
int [] result = new int[375];
int offset = 0;
offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
return result;
}
private static int zzUnpackAction(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
do result[j++] = value; while (--count > 0);
}
return j;
}
/**
* Translates a state to a row index in the transition table
*/
private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
private static final String ZZ_ROWMAP_PACKED_0 =
"\0\0\0\67\0\156\0\245\0\334\0\u0113\0\u014a\0\u0181"+
"\0\u01b8\0\u01ef\0\u0226\0\u025d\0\u0294\0\u02cb\0\u0302\0\u0339"+
"\0\u0370\0\u03a7\0\u03de\0\u0415\0\u044c\0\u0483\0\67\0\67"+
"\0\67\0\67\0\67\0\67\0\67\0\67\0\67\0\u04ba"+
"\0\u04f1\0\u0528\0\u055f\0\u0596\0\u05cd\0\u0604\0\u063b\0\u0672"+
"\0\u06a9\0\u06e0\0\u0717\0\u074e\0\u0785\0\u07bc\0\u07f3\0\245"+
"\0\u082a\0\u0861\0\u0898\0\u08cf\0\u0906\0\u093d\0\245\0\u0974"+
"\0\u09ab\0\u09e2\0\u0a19\0\u0a50\0\u0a87\0\u0abe\0\u0af5\0\u0b2c"+
"\0\u0b63\0\u0b9a\0\u0bd1\0\245\0\u0c08\0\u0c3f\0\u0c76\0\u0cad"+
"\0\u0ce4\0\u0d1b\0\u0d52\0\u0d89\0\u0dc0\0\u0df7\0\u0e2e\0\245"+
"\0\245\0\u0e65\0\u0e9c\0\u0ed3\0\67\0\67\0\67\0\67"+
"\0\67\0\67\0\u0f0a\0\u0f41\0\u063b\0\u0f78\0\u0faf\0\u0fe6"+
"\0\u101d\0\u1054\0\u108b\0\u10c2\0\u10f9\0\u1130\0\u1167\0\245"+
"\0\u119e\0\u11d5\0\u120c\0\u1243\0\u127a\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\245\0\245\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\245\0\245\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\245\0\245\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\245\0\245\0\245\0\245\0\245"+
"\0\245\0\u12b1\0\u12e8\0\u131f\0\u1356\0\u138d\0\u13c4\0\245"+
"\0\245\0\245\0\245\0\245\0\245\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\245\0\245\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\245\0\245\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\245\0\245\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\u13fb\0\u1432\0\245\0\u1469\0\u14a0"+
"\0\u14d7\0\245\0\u150e\0\u1545\0\67\0\67\0\u157c\0\u15b3"+
"\0\245\0\u15ea\0\245\0\u1621\0\u1658\0\u168f\0\u16c6\0\u16fd"+
"\0\u1734\0\245\0\u176b\0\u17a2\0\u17d9\0\245\0\u1810\0\245"+
"\0\245\0\u1847\0\u187e\0\u18b5\0\u18ec\0\u1923\0\u195a\0\u1991"+
"\0\u19c8\0\245\0\u19ff\0\u1a36\0\u1a6d\0\245\0\u1aa4\0\u1adb"+
"\0\u1b12\0\u1b49\0\u1b80\0\u1bb7\0\245\0\u1bee\0\u1c25\0\u1c5c"+
"\0\u1c93\0\u1cca\0\u1d01\0\245\0\245\0\u1d38\0\u1d6f\0\u1da6"+
"\0\245\0\u1ddd\0\u1e14\0\u1e4b\0\u1e82\0\u1eb9\0\u1ef0\0\u1f27"+
"\0\u1f5e\0\245\0\245\0\u1f95\0\245\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\245\0\245\0\245\0\u1fcc\0\u2003"+
"\0\u203a\0\245\0\u2071\0\u20a8\0\245\0\245\0\245\0\u20df"+
"\0\245\0\u2116\0\u214d\0\245\0\245\0\245\0\245\0\245"+
"\0\245\0\u2184\0\u21bb\0\u21f2\0\u2229\0\u2260\0\u2297\0\245"+
"\0\u22ce\0\u2305\0\u233c\0\u2373\0\u23aa\0\u23e1\0\u2418\0\u244f"+
"\0\u2486\0\u24bd\0\u24f4\0\u252b\0\u2562\0\u2599\0\u25d0\0\u2607"+
"\0\u263e\0\u2675\0\u26ac\0\245\0\u26e3\0\u271a\0\u2751\0\u2788"+
"\0\u27bf\0\u27f6\0\245\0\245\0\u282d\0\67\0\u2864\0\u289b"+
"\0\u28d2\0\u2909\0\u2940\0\u2977\0\245\0\245\0\245\0\245"+
"\0\245\0\245\0\245\0\u29ae\0\245\0\245\0\245\0\245"+
"\0\245\0\u29e5\0\245\0\245\0\u2a1c\0\u2a53\0\u2a8a\0\u2ac1"+
"\0\u2af8\0\245\0\245\0\245\0\245\0\u2b2f\0\u2b66\0\u2b9d"+
"\0\u2bd4\0\u2c0b\0\u2c42\0\u2c79\0\245\0\245\0\245\0\245"+
"\0\u2cb0\0\245\0\245\0\u2ce7\0\245\0\u2d1e\0\245";
private static int [] zzUnpackRowMap() {
int [] result = new int[375];
int offset = 0;
offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
return result;
}
private static int zzUnpackRowMap(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int high = packed.charAt(i++) << 16;
result[j++] = high | packed.charAt(i++);
}
return j;
}
/**
* The transition table of the DFA
*/
private static final int [] ZZ_TRANS = zzUnpackTrans();
private static final String ZZ_TRANS_PACKED_0 =
"\1\2\1\3\1\2\1\4\1\5\1\6\1\7\1\5"+
"\1\4\1\10\1\11\1\12\1\4\1\13\1\4\1\14"+
"\1\15\1\16\1\17\1\20\1\4\1\21\1\22\1\4"+
"\1\23\2\4\1\24\6\5\1\4\1\25\1\26\1\27"+
"\1\30\1\31\1\32\1\33\1\34\1\35\1\36\1\37"+
"\1\40\1\41\1\42\1\43\1\5\1\2\1\44\2\45"+
"\71\0\1\46\67\0\42\4\26\0\2\5\1\0\1\5"+
"\24\0\6\5\20\0\1\5\1\47\7\0\2\5\1\50"+
"\1\5\1\51\23\0\6\5\20\0\1\5\1\47\6\0"+
"\30\4\1\52\11\4\25\0\12\4\1\53\4\4\1\54"+
"\7\4\1\55\1\56\11\4\25\0\10\4\1\57\17\4"+
"\1\60\11\4\25\0\20\4\1\61\21\4\25\0\7\4"+
"\1\62\10\4\1\63\21\4\25\0\12\4\1\64\27\4"+
"\25\0\10\4\1\65\1\4\1\66\4\4\1\67\21\4"+
"\1\70\25\0\3\4\1\71\2\4\1\72\1\73\1\74"+
"\1\4\1\75\1\4\1\76\2\4\1\77\5\4\1\100"+
"\1\4\1\101\1\102\11\4\25\0\20\4\1\103\21\4"+
"\25\0\30\4\1\104\11\4\25\0\3\4\1\105\2\4"+
"\1\106\1\107\1\110\1\4\1\111\27\4\25\0\11\4"+
"\1\112\1\113\4\4\1\114\1\4\1\115\20\4\25\0"+
"\10\4\1\116\31\4\25\0\22\4\1\117\1\120\1\4"+
"\1\121\14\4\25\0\12\4\1\122\15\4\1\123\11\4"+
"\25\0\27\4\1\124\12\4\100\0\1\125\1\0\1\126"+
"\65\0\1\127\1\130\66\0\1\131\66\0\1\132\6\0"+
"\65\133\1\0\1\133\65\0\2\45\2\46\1\134\64\46"+
"\4\0\2\135\1\0\1\135\24\0\6\135\20\0\1\135"+
"\11\0\1\136\1\0\1\136\63\0\4\51\1\0\3\51"+
"\1\0\1\51\10\0\2\51\4\0\6\51\30\0\30\4"+
"\1\137\11\4\25\0\15\4\1\140\24\4\25\0\6\4"+
"\1\141\33\4\25\0\12\4\1\142\27\4\25\0\20\4"+
"\1\143\21\4\25\0\11\4\1\144\11\4\1\145\16\4"+
"\25\0\16\4\1\146\23\4\25\0\6\4\1\147\33\4"+
"\25\0\7\4\1\150\5\4\1\151\24\4\25\0\17\4"+
"\1\152\22\4\25\0\16\4\1\153\23\4\25\0\11\4"+
"\1\154\30\4\25\0\17\4\1\155\22\4\25\0\2\4"+
"\1\156\1\4\1\157\24\4\1\160\1\161\1\162\1\163"+
"\1\164\1\165\3\4\25\0\2\4\1\166\1\4\1\167"+
"\24\4\1\170\1\171\1\172\1\173\1\174\1\175\3\4"+
"\25\0\2\4\1\176\1\4\1\177\24\4\1\200\1\201"+
"\1\202\1\203\1\204\1\205\3\4\25\0\2\4\1\206"+
"\1\4\1\207\24\4\1\210\1\211\7\4\25\0\2\4"+
"\1\212\1\4\1\213\24\4\1\214\1\215\1\216\1\217"+
"\1\220\1\221\3\4\25\0\25\4\1\222\14\4\25\0"+
"\14\4\1\223\25\4\25\0\21\4\1\224\20\4\25\0"+
"\10\4\1\225\31\4\25\0\37\4\1\226\2\4\25\0"+
"\16\4\1\227\23\4\25\0\2\4\1\230\1\4\1\231"+
"\24\4\1\232\1\233\1\234\1\235\1\236\1\237\3\4"+
"\25\0\2\4\1\240\1\4\1\241\24\4\1\242\1\243"+
"\1\244\1\245\1\246\1\247\3\4\25\0\2\4\1\250"+
"\1\4\1\251\24\4\1\252\1\253\1\254\1\255\1\256"+
"\1\257\3\4\25\0\2\4\1\260\1\4\1\261\24\4"+
"\1\262\1\263\7\4\25\0\2\4\1\264\1\4\1\265"+
"\24\4\1\266\1\267\1\270\1\271\1\272\1\273\3\4"+
"\25\0\30\4\1\274\11\4\25\0\11\4\1\275\30\4"+
"\25\0\20\4\1\276\21\4\25\0\15\4\1\277\24\4"+
"\25\0\16\4\1\300\23\4\25\0\16\4\1\301\23\4"+
"\25\0\25\4\1\302\14\4\25\0\17\4\1\303\22\4"+
"\25\0\17\4\1\304\22\4\106\0\1\305\2\0\1\46"+
"\1\306\1\134\64\46\5\0\1\307\1\0\1\307\62\0"+
"\11\4\1\310\30\4\25\0\30\4\1\311\11\4\25\0"+
"\11\4\1\312\30\4\25\0\25\4\1\313\14\4\25\0"+
"\15\4\1\302\24\4\25\0\12\4\1\314\27\4\25\0"+
"\12\4\1\315\4\4\1\316\22\4\25\0\25\4\1\317"+
"\14\4\25\0\30\4\1\320\11\4\25\0\10\4\1\321"+
"\31\4\25\0\20\4\1\322\21\4\25\0\21\4\1\323"+
"\20\4\25\0\17\4\1\324\22\4\25\0\16\4\1\325"+
"\23\4\25\0\2\4\1\326\37\4\25\0\10\4\1\327"+
"\31\4\25\0\10\4\1\330\31\4\25\0\20\4\1\331"+
"\21\4\25\0\37\4\1\332\2\4\25\0\6\4\1\333"+
"\1\4\1\334\31\4\25\0\12\4\1\335\27\4\25\0"+
"\15\4\1\224\24\4\25\0\10\4\1\336\31\4\25\0"+
"\12\4\1\337\6\4\1\340\20\4\25\0\17\4\1\341"+
"\22\4\25\0\7\4\1\342\32\4\25\0\11\4\1\343"+
"\30\4\27\0\1\344\1\0\1\344\62\0\10\4\1\345"+
"\31\4\25\0\30\4\1\346\11\4\25\0\13\4\1\347"+
"\26\4\25\0\21\4\1\350\20\4\25\0\20\4\1\351"+
"\21\4\25\0\12\4\1\352\27\4\25\0\20\4\1\353"+
"\21\4\25\0\11\4\1\354\30\4\25\0\22\4\1\355"+
"\17\4\25\0\7\4\1\356\32\4\25\0\6\4\1\357"+
"\33\4\25\0\14\4\1\360\25\4\25\0\11\4\1\361"+
"\30\4\25\0\30\4\1\362\11\4\25\0\25\4\1\363"+
"\14\4\25\0\16\4\1\364\23\4\25\0\15\4\1\365"+
"\24\4\25\0\25\4\1\366\14\4\25\0\25\4\1\367"+
"\14\4\25\0\30\4\1\370\11\4\25\0\10\4\1\371"+
"\31\4\27\0\1\372\1\0\1\372\62\0\12\4\1\373"+
"\27\4\25\0\14\4\1\374\25\4\25\0\11\4\1\375"+
"\30\4\25\0\10\4\1\376\31\4\25\0\7\4\1\377"+
"\32\4\25\0\2\4\1\u0100\1\4\1\u0101\35\4\25\0"+
"\2\4\1\u0102\1\4\1\u0103\22\4\1\u0104\1\4\1\u0105"+
"\1\u0106\1\u0107\1\u0108\1\u0109\1\u010a\3\4\25\0\12\4"+
"\1\u010b\27\4\25\0\27\4\1\u010c\12\4\25\0\15\4"+
"\1\u010d\24\4\25\0\10\4\1\u010e\31\4\25\0\20\4"+
"\1\u010f\21\4\25\0\25\4\1\u0110\14\4\25\0\7\4"+
"\1\u0111\32\4\25\0\20\4\1\u0112\21\4\25\0\20\4"+
"\1\u0113\21\4\27\0\1\u0114\1\0\1\u0114\62\0\20\4"+
"\1\u0115\21\4\25\0\15\4\1\u0116\24\4\25\0\16\4"+
"\1\u0117\23\4\25\0\24\4\1\u0118\15\4\25\0\12\4"+
"\1\u0119\27\4\25\0\24\4\1\u011a\15\4\25\0\24\4"+
"\1\u011b\15\4\25\0\2\4\1\u011c\1\4\1\u011d\24\4"+
"\1\u011e\1\u011f\1\u0120\1\u0121\5\4\25\0\16\4\1\u0122"+
"\1\u0123\2\4\1\u0124\2\4\1\u0125\11\4\1\u0126\2\4"+
"\25\0\21\4\1\u0127\20\4\25\0\30\4\1\u0128\11\4"+
"\25\0\25\4\1\u0129\14\4\27\0\1\u012a\1\0\1\u012a"+
"\62\0\23\4\1\u012b\16\4\25\0\6\4\1\u012c\3\4"+
"\1\u012d\24\4\1\u012e\2\4\25\0\12\4\1\u012f\25\4"+
"\1\u0130\1\4\25\0\2\4\1\u0131\37\4\25\0\20\4"+
"\1\u0132\21\4\25\0\10\4\1\u0133\31\4\25\0\3\4"+
"\1\u0134\36\4\25\0\17\4\1\u0135\22\4\25\0\22\4"+
"\1\u0136\17\4\25\0\10\4\1\u0137\31\4\27\0\1\u0138"+
"\1\0\1\u0138\62\0\25\4\1\u0139\14\4\25\0\27\4"+
"\1\u013a\12\4\25\0\7\4\1\u013b\32\4\25\0\30\4"+
"\1\u013c\11\4\25\0\7\4\1\u013d\32\4\25\0\6\4"+
"\1\u013e\33\4\25\0\17\4\1\u013f\22\4\25\0\16\4"+
"\1\u0140\23\4\25\0\17\4\1\u0141\22\4\25\0\17\4"+
"\1\u0142\22\4\25\0\10\4\1\u0143\31\4\25\0\16\4"+
"\1\u0144\23\4\25\0\37\4\1\u0145\2\4\27\0\1\u0146"+
"\1\0\1\u0146\62\0\10\4\1\u0147\31\4\25\0\15\4"+
"\1\u0148\24\4\25\0\6\4\1\u0149\21\4\1\u014a\11\4"+
"\25\0\23\4\1\u014b\16\4\25\0\23\4\1\u014c\16\4"+
"\25\0\10\4\1\u014d\12\4\1\u014e\16\4\25\0\10\4"+
"\1\u014f\12\4\1\u0150\16\4\25\0\10\4\1\u0151\31\4"+
"\25\0\10\4\1\u0152\12\4\1\u0153\16\4\25\0\24\4"+
"\1\u0154\15\4\25\0\26\4\1\u0155\13\4\25\0\2\4"+
"\1\u0156\1\4\1\u0157\24\4\1\u0158\1\u0159\7\4\25\0"+
"\15\4\1\u015a\24\4\25\0\20\4\1\u015b\21\4\25\0"+
"\14\4\1\u015c\25\4\25\0\37\4\1\u015d\2\4\25\0"+
"\16\4\1\u015e\1\u015f\2\4\1\u0160\2\4\1\u0161\14\4"+
"\25\0\2\4\1\u0162\1\4\1\u0163\35\4\25\0\2\4"+
"\1\u0164\1\4\1\u0165\35\4\25\0\2\4\1\u0166\37\4"+
"\25\0\20\4\1\u0167\21\4\25\0\15\4\1\u0168\24\4"+
"\25\0\3\4\1\u0169\36\4\25\0\6\4\1\u016a\6\4"+
"\1\u016b\24\4\25\0\16\4\1\u016c\23\4\25\0\2\4"+
"\1\u016d\1\4\1\u016e\5\4\1\u016f\16\4\1\u0170\10\4"+
"\25\0\22\4\1\u0171\17\4\25\0\15\4\1\u0172\24\4"+
"\25\0\10\4\1\u0173\31\4\25\0\10\4\1\u0174\31\4"+
"\25\0\21\4\1\u0175\20\4\25\0\7\4\1\u0176\32\4"+
"\25\0\37\4\1\u0177\2\4\22\0";
private static int [] zzUnpackTrans() {
int [] result = new int[11605];
int offset = 0;
offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
return result;
}
private static int zzUnpackTrans(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
value--;
do result[j++] = value; while (--count > 0);
}
return j;
}
/* error codes */
private static final int ZZ_UNKNOWN_ERROR = 0;
private static final int ZZ_NO_MATCH = 1;
private static final int ZZ_PUSHBACK_2BIG = 2;
/* error messages for the codes above */
private static final String ZZ_ERROR_MSG[] = {
"Unkown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
/**
* ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>
*/
private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
private static final String ZZ_ATTRIBUTE_PACKED_0 =
"\1\0\1\11\24\1\11\11\6\1\3\0\54\1\6\11"+
"\2\0\1\1\1\0\146\1\2\11\1\0\34\1\1\0"+
"\25\1\1\0\31\1\1\0\25\1\1\0\15\1\1\0"+
"\15\1\1\11\61\1";
private static int [] zzUnpackAttribute() {
int [] result = new int[375];
int offset = 0;
offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
return result;
}
private static int zzUnpackAttribute(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
do result[j++] = value; while (--count > 0);
}
return j;
}
/** the input device */
private java.io.Reader zzReader;
/** the current state of the DFA */
private int zzState;
/** the current lexical state */
private int zzLexicalState = YYINITIAL;
/** this buffer contains the current text to be matched and is
the source of the yytext() string */
private char zzBuffer[] = new char[ZZ_BUFFERSIZE];
/** the textposition at the last accepting state */
private int zzMarkedPos;
/** the textposition at the last state to be included in yytext */
private int zzPushbackPos;
/** the current text position in the buffer */
private int zzCurrentPos;
/** startRead marks the beginning of the yytext() string in the buffer */
private int zzStartRead;
/** endRead marks the last character in the buffer, that has been read
from input */
private int zzEndRead;
/** number of newlines encountered up to the start of the matched text */
private int yyline;
/** the number of characters up to the start of the matched text */
private int yychar;
/**
* the number of characters from the last newline up to the start of the
* matched text
*/
private int yycolumn;
/**
* zzAtBOL == true <=> the scanner is currently at the beginning of a line
*/
private boolean zzAtBOL = true;
/** zzAtEOF == true <=> the scanner is at the EOF */
private boolean zzAtEOF;
/** denotes if the user-EOF-code has already been executed */
private boolean zzEOFDone;
/* user code: */
int lineaActual=1;
private static int actualEtq=0;
public int linea(){ return yyline+1; }
public int columna(){ return yycolumn+1; }
private static String nuevaEtq(){
return "etqL"+(++actualEtq);
}
private Symbol symbol(int type){
return new Symbol(type, yyline, yycolumn);
}
private Symbol symbol(int type, Object value){
return new Symbol(type, yyline, yycolumn, value);
}
/**
* Creates a new scanner
* There is also a java.io.InputStream version of this constructor.
*
* @param in the java.io.Reader to read input from.
*/
Yylex(java.io.Reader in) {
this.zzReader = in;
}
/**
* Creates a new scanner.
* There is also java.io.Reader version of this constructor.
*
* @param in the java.io.Inputstream to read input from.
*/
Yylex(java.io.InputStream in) {
this(new java.io.InputStreamReader(in));
}
/**
* Unpacks the compressed character translation table.
*
* @param packed the packed character translation table
* @return the unpacked character translation table
*/
private static char [] zzUnpackCMap(String packed) {
char [] map = new char[0x10000];
int i = 0; /* index in packed string */
int j = 0; /* index in unpacked array */
while (i < 316) {
int count = packed.charAt(i++);
char value = packed.charAt(i++);
do map[j++] = value; while (--count > 0);
}
return map;
}
/**
* Refills the input buffer.
*
* @return <code>false</code>, iff there was new input.
*
* @exception java.io.IOException if any I/O-Error occurs
*/
private boolean zzRefill() throws java.io.IOException {
/* first: make room (if you can) */
if (zzStartRead > 0) {
System.arraycopy(zzBuffer, zzStartRead,
zzBuffer, 0,
zzEndRead-zzStartRead);
/* translate stored positions */
zzEndRead-= zzStartRead;
zzCurrentPos-= zzStartRead;
zzMarkedPos-= zzStartRead;
zzPushbackPos-= zzStartRead;
zzStartRead = 0;
}
/* is the buffer big enough? */
if (zzCurrentPos >= zzBuffer.length) {
/* if not: blow it up */
char newBuffer[] = new char[zzCurrentPos*2];
System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
zzBuffer = newBuffer;
}
/* finally: fill the buffer with new input */
int numRead = zzReader.read(zzBuffer, zzEndRead,
zzBuffer.length-zzEndRead);
if (numRead < 0) {
return true;
}
else {
zzEndRead+= numRead;
return false;
}
}
/**
* Closes the input stream.
*/
public final void yyclose() throws java.io.IOException {
zzAtEOF = true; /* indicate end of file */
zzEndRead = zzStartRead; /* invalidate buffer */
if (zzReader != null)
zzReader.close();
}
/**
* Resets the scanner to read from a new input stream.
* Does not close the old reader.
*
* All internal variables are reset, the old input stream
* <b>cannot</b> be reused (internal buffer is discarded and lost).
* Lexical state is set to <tt>ZZ_INITIAL</tt>.
*
* @param reader the new input stream
*/
public final void yyreset(java.io.Reader reader) {
zzReader = reader;
zzAtBOL = true;
zzAtEOF = false;
zzEndRead = zzStartRead = 0;
zzCurrentPos = zzMarkedPos = zzPushbackPos = 0;
yyline = yychar = yycolumn = 0;
zzLexicalState = YYINITIAL;
}
/**
* Returns the current lexical state.
*/
public final int yystate() {
return zzLexicalState;
}
/**
* Enters a new lexical state
*
* @param newState the new lexical state
*/
public final void yybegin(int newState) {
zzLexicalState = newState;
}
/**
* Returns the text matched by the current regular expression.
*/
public final String yytext() {
return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );
}
/**
* Returns the character at position <tt>pos</tt> from the
* matched text.
*
* It is equivalent to yytext().charAt(pos), but faster
*
* @param pos the position of the character to fetch.
* A value from 0 to yylength()-1.
*
* @return the character at position pos
*/
public final char yycharat(int pos) {
return zzBuffer[zzStartRead+pos];
}
/**
* Returns the length of the matched text region.
*/
public final int yylength() {
return zzMarkedPos-zzStartRead;
}
/**
* Reports an error that occured while scanning.
*
* In a wellformed scanner (no or only correct usage of
* yypushback(int) and a match-all fallback rule) this method
* will only be called with things that "Can't Possibly Happen".
* If this method is called, something is seriously wrong
* (e.g. a JFlex bug producing a faulty scanner etc.).
*
* Usual syntax/scanner level error handling should be done
* in error fallback rules.
*
* @param errorCode the code of the errormessage to display
*/
private void zzScanError(int errorCode) {
String message;
try {
message = ZZ_ERROR_MSG[errorCode];
}
catch (ArrayIndexOutOfBoundsException e) {
message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
}
throw new Error(message);
}
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
/**
* Contains user EOF-code, which will be executed exactly once,
* when the end of file is reached
*/
private void zzDoEOF() throws java.io.IOException {
if (!zzEOFDone) {
zzEOFDone = true;
yyclose();
}
}
/**
* Resumes scanning until the next regular expression is matched,
* the end of input is encountered or an I/O-Error occurs.
*
* @return the next token
* @exception java.io.IOException if any I/O-Error occurs
*/
public java_cup.runtime.Symbol next_token() throws java.io.IOException {
int zzInput;
int zzAction;
// cached fields:
int zzCurrentPosL;
int zzMarkedPosL;
int zzEndReadL = zzEndRead;
char [] zzBufferL = zzBuffer;
char [] zzCMapL = ZZ_CMAP;
int [] zzTransL = ZZ_TRANS;
int [] zzRowMapL = ZZ_ROWMAP;
int [] zzAttrL = ZZ_ATTRIBUTE;
while (true) {
zzMarkedPosL = zzMarkedPos;
boolean zzR = false;
for (zzCurrentPosL = zzStartRead; zzCurrentPosL < zzMarkedPosL;
zzCurrentPosL++) {
switch (zzBufferL[zzCurrentPosL]) {
case '\u000B':
case '\u000C':
case '\u0085':
case '\u2028':
case '\u2029':
yyline++;
yycolumn = 0;
zzR = false;
break;
case '\r':
yyline++;
yycolumn = 0;
zzR = true;
break;
case '\n':
if (zzR)
zzR = false;
else {
yyline++;
yycolumn = 0;
}
break;
default:
zzR = false;
yycolumn++;
}
}
if (zzR) {
// peek one character ahead if it is \n (if we have counted one line too much)
boolean zzPeek;
if (zzMarkedPosL < zzEndReadL)
zzPeek = zzBufferL[zzMarkedPosL] == '\n';
else if (zzAtEOF)
zzPeek = false;
else {
boolean eof = zzRefill();
zzEndReadL = zzEndRead;
zzMarkedPosL = zzMarkedPos;
zzBufferL = zzBuffer;
if (eof)
zzPeek = false;
else
zzPeek = zzBufferL[zzMarkedPosL] == '\n';
}
if (zzPeek) yyline--;
}
zzAction = -1;
zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
zzState = zzLexicalState;
zzForAction: {
while (true) {
if (zzCurrentPosL < zzEndReadL)
zzInput = zzBufferL[zzCurrentPosL++];
else if (zzAtEOF) {
zzInput = YYEOF;
break zzForAction;
}
else {
// store back cached positions
zzCurrentPos = zzCurrentPosL;
zzMarkedPos = zzMarkedPosL;
boolean eof = zzRefill();
// get translated positions and possibly new buffer
zzCurrentPosL = zzCurrentPos;
zzMarkedPosL = zzMarkedPos;
zzBufferL = zzBuffer;
zzEndReadL = zzEndRead;
if (eof) {
zzInput = YYEOF;
break zzForAction;
}
else {
zzInput = zzBufferL[zzCurrentPosL++];
}
}
int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
if (zzNext == -1) break zzForAction;
zzState = zzNext;
int zzAttributes = zzAttrL[zzState];
if ( (zzAttributes & 1) == 1 ) {
zzAction = zzState;
zzMarkedPosL = zzCurrentPosL;
if ( (zzAttributes & 8) == 8 ) break zzForAction;
}
}
}
// store back cached position
zzMarkedPos = zzMarkedPosL;
switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
case 185:
{ return symbol(sym.OPTIONREG_T0SE, new String("\tOPTION_REGbits.T0SE"));
}
case 188: break;
case 35:
{ return symbol(sym.MAYORIGUAL);
}
case 189: break;
case 32:
{ return symbol(sym.OF);
}
case 190: break;
case 3:
{ return symbol(sym.ID, new String(yytext()));
}
case 191: break;
case 108:
{ return symbol(sym.PA1,new String("\tPORTAbits.RA1"));
}
case 192: break;
case 102:
{ return symbol(sym.PD7,new String("\tPORTDbits.RD7"));
}
case 193: break;
case 27:
{ return symbol(sym.PB,new String("\tPORTB"));
}
case 194: break;
case 129:
{ return symbol(sym.FUSES,new String("#include <xc.h>\n"
+ "// CONFIG1\n"
+"#pragma config FOSC = INTRC_NOCLKOUT// Oscillator Selection bits (INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN)\n"
+"#pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled and can be enabled by SWDTEN bit of the WDTCON register)\n"
+"#pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled)\n"
+"#pragma config MCLRE = OFF // RE3/MCLR pin function select bit (RE3/MCLR pin function is digital input, MCLR internally tied to VDD)\n"
+"#pragma config CP = OFF // Code Protection bit (Program memory code protection is disabled)\n"
+"#pragma config CPD = OFF // Data Code Protection bit (Data memory code protection is disabled)\n"
+"#pragma config BOREN = OFF // Brown Out Reset Selection bits (BOR disabled)\n"
+"#pragma config IESO = OFF // Internal External Switchover bit (Internal/External Switchover mode is disabled)\n"
+"#pragma config FCMEN = OFF // Fail-Safe Clock Monitor Enabled bit (Fail-Safe Clock Monitor is disabled)\n"
+"#pragma config LVP = OFF // Low Voltage Programming Enable bit (RB3 pin has digital I/O, HV on MCLR must be used for programming)\n"
+"\n" +"\n" +"\n"
+"// CONFIG2\n"
+"\n"
+"#pragma config BOR4V = BOR40V // Brown-out Reset Selection bit (Brown-out Reset set to 4.0V)\n"
+"\n"
+"#pragma config WRT = OFF // Flash Program Memory Self Write Enable bits (Write protection off)\n\n\n\n"));
}
case 195: break;
case 18:
{ return symbol(sym.HEXACADENA, new String(yytext()));
}
case 196: break;
case 183:
{ return symbol(sym.OPTIONREG_PS2, new String("\tOPTION_REGbits.PS2"));
}
case 197: break;
case 68:
{ return symbol(sym.TE,new String("\tTRISEbits.TRISE2"));
}
case 198: break;
case 95:
{ return symbol(sym.PD0,new String("\tPORTDbits.RD0"));
}
case 199: break;
case 53:
{ return symbol(sym.TC,new String("\tTRISCbits.TRISC3"));
}
case 200: break;
case 20:
{ return symbol(sym.SI,nuevaEtq());
}
case 201: break;
case 155:
{ return symbol(sym.ANSELH5, new String("\tANSELbits.ANS13"));
}
case 202: break;
case 7:
{ return symbol(sym.RPAREN);
}
case 203: break;
case 39:
{ return symbol(sym.DIFERENTE);
}
case 204: break;
case 160:
{ return symbol(sym.BINARIOCADENA, new String(yytext()));
}
case 205: break;
case 182:
{ return symbol(sym.OPTIONREG_PSA, new String("\tOPTION_REGbits.PSA"));
}
case 206: break;
case 9:
{ return symbol(sym.RLLAVE);
}
case 207: break;
case 45:
{ return symbol(sym.TA,new String("\tTRISBbits.TRISB3"));
}
case 208: break;
case 124:
{ return symbol(sym.VOID,new String("\n\tvoid "));
}
case 209: break;
case 64:
{ return symbol(sym.TD,new String("\tTRISDbits.TRISD6"));
}
case 210: break;
case 83:
{ return symbol(sym.PB4,new String("\tPORTBbits.RB4"));
}
case 211: break;
case 2:
{ return symbol(sym.DIVISION);
}
case 212: break;
case 145:
{ return symbol(sym.RETURN);
}
case 213: break;
case 10:
{ return symbol(sym.COMA);
}
case 214: break;
case 170:
{ return symbol(sym.ADCON0_CHS1, new String("\tADCON0bits.CHS1"));
}
case 215: break;
case 106:
{ return symbol(sym.PE3,new String("\tPORTEbits.RE3"));
}
case 216: break;
case 186:
{ return symbol(sym.OPTIONREG_RBPU, new String("\tOPTION_REGbits.nRBPU"));
}
case 217: break;
case 123:
{ return symbol(sym.THEN);
}
case 218: break;
case 115:
{ return symbol(sym.FIN);
}
case 219: break;
case 31:
{ return symbol(sym.PA,new String("\tPORTA"));
}
case 220: break;
case 175:
{ return symbol(sym.ADCON0_ADCS0, new String("\tADCON0bits.ADCS0"));
}
case 221: break;
case 93:
{ return symbol(sym.PC6,new String("\tPORTCbits.RC6"));
}
case 222: break;
case 74:
{ return symbol(sym.TA,new String("\tTRISAbits.TRISA4"));
}
case 223: break;
case 24:
{ return symbol(sym.TE,new String("\tTRISE"));
}
case 224: break;
case 136:
{ return symbol(sym.ANSEL4, new String("\tANSELbits.ANS4"));
}
case 225: break;
case 109:
{ return symbol(sym.PA2,new String("\tPORTAbits.RA2"));
}
case 226: break;
case 78:
{ return symbol(sym.INTEGER);
}
case 227: break;
case 14:
{ return symbol(sym.MAYOR);
}
case 228: break;
case 184:
{ return symbol(sym.OPTIONREG_T0CS, new String("\tOPTION_REGbits.T0CS"));
}
case 229: break;
case 96:
{ return symbol(sym.PD1,new String("\tPORTDbits.RD1"));
}
case 230: break;
case 154:
{ return symbol(sym.ANSELH4, new String("\tANSELbits.ANS12"));
}
case 231: break;