OpenCores
URL https://opencores.org/ocsvn/fpga-cf/fpga-cf/trunk

Subversion Repositories fpga-cf

[/] [fpga-cf/] [trunk/] [java/] [src/] [edu/] [byu/] [cc/] [plieber/] [fpgaenet/] [debug/] [llparse/] [LL_Virtex5TokenManager.java] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 peteralieb
/* Generated By:JavaCC: Do not edit this line. LL_Virtex5TokenManager.java */
2
/*
3
@LICENSE@
4
*/
5
package edu.byu.cc.plieber.fpgaenet.debug.llparse;
6
import java.lang.*;
7
import java.util.*;
8
 
9
/** Token Manager. */
10
public class LL_Virtex5TokenManager implements LL_Virtex5Constants
11
{
12
 
13
  /** Debug output. */
14
  public  java.io.PrintStream debugStream = System.out;
15
  /** Set debug output. */
16
  public  void setDebugStream(java.io.PrintStream ds) { debugStream = ds; }
17
private final int jjStopStringLiteralDfa_0(int pos, long active0)
18
{
19
   switch (pos)
20
   {
21
      case 0:
22
         if ((active0 & 0x20001800000L) != 0L)
23
            return 63;
24
         if ((active0 & 0xe400600200L) != 0L)
25
         {
26
            jjmatchedKind = 42;
27
            return 63;
28
         }
29
         if ((active0 & 0x103000e0800L) != 0L)
30
         {
31
            jjmatchedKind = 10;
32
            return 63;
33
         }
34
         if ((active0 & 0x100000L) != 0L)
35
         {
36
            jjmatchedKind = 10;
37
            return 58;
38
         }
39
         if ((active0 & 0x1880000000L) != 0L)
40
         {
41
            jjmatchedKind = 42;
42
            return 24;
43
         }
44
         return -1;
45
      case 1:
46
         if ((active0 & 0x600000L) != 0L)
47
         {
48
            jjmatchedKind = 16;
49
            jjmatchedPos = 1;
50
            return 42;
51
         }
52
         if ((active0 & 0x23f80000200L) != 0L)
53
         {
54
            jjmatchedKind = 42;
55
            jjmatchedPos = 1;
56
            return 44;
57
         }
58
         if ((active0 & 0x14000000000L) != 0L)
59
         {
60
            jjmatchedKind = 42;
61
            jjmatchedPos = 1;
62
            return 64;
63
         }
64
         if ((active0 & 0x80001e0000L) != 0L)
65
            return 64;
66
         return -1;
67
      case 2:
68
         if ((active0 & 0x30680000200L) != 0L)
69
         {
70
            jjmatchedKind = 42;
71
            jjmatchedPos = 2;
72
            return 44;
73
         }
74
         if ((active0 & 0x7900000000L) != 0L)
75
            return 44;
76
         return -1;
77
      case 3:
78
         if ((active0 & 0x10680000000L) != 0L)
79
         {
80
            jjmatchedKind = 42;
81
            jjmatchedPos = 3;
82
            return 44;
83
         }
84
         if ((active0 & 0x20000000200L) != 0L)
85
            return 44;
86
         return -1;
87
      case 4:
88
         if ((active0 & 0x10080000000L) != 0L)
89
         {
90
            jjmatchedKind = 42;
91
            jjmatchedPos = 4;
92
            return 44;
93
         }
94
         if ((active0 & 0x600000000L) != 0L)
95
            return 44;
96
         return -1;
97
      case 5:
98
         if ((active0 & 0x10080000000L) != 0L)
99
         {
100
            jjmatchedKind = 42;
101
            jjmatchedPos = 5;
102
            return 44;
103
         }
104
         return -1;
105
      case 6:
106
         if ((active0 & 0x80000000L) != 0L)
107
         {
108
            jjmatchedKind = 42;
109
            jjmatchedPos = 6;
110
            return 44;
111
         }
112
         if ((active0 & 0x10000000000L) != 0L)
113
            return 44;
114
         return -1;
115
      default :
116
         return -1;
117
   }
118
}
119
private final int jjStartNfa_0(int pos, long active0)
120
{
121
   return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1);
122
}
123
private int jjStopAtPos(int pos, int kind)
124
{
125
   jjmatchedKind = kind;
126
   jjmatchedPos = pos;
127
   return pos + 1;
128
}
129
private int jjMoveStringLiteralDfa0_0()
130
{
131
   switch(curChar)
132
   {
133
      case 10:
134
         return jjStopAtPos(0, 45);
135
      case 13:
136
         jjmatchedKind = 44;
137
         return jjMoveStringLiteralDfa1_0(0x400000000000L);
138
      case 58:
139
         return jjStopAtPos(0, 26);
140
      case 59:
141
         return jjStopAtPos(0, 3);
142
      case 60:
143
         return jjStopAtPos(0, 27);
144
      case 61:
145
         return jjStopAtPos(0, 8);
146
      case 62:
147
         return jjStopAtPos(0, 28);
148
      case 65:
149
         return jjMoveStringLiteralDfa1_0(0x20000L);
150
      case 66:
151
         jjmatchedKind = 10;
152
         return jjMoveStringLiteralDfa1_0(0x300040000L);
153
      case 67:
154
         return jjMoveStringLiteralDfa1_0(0x10000080000L);
155
      case 68:
156
         return jjMoveStringLiteralDfa1_0(0x100000L);
157
      case 73:
158
         jjmatchedKind = 23;
159
         return jjMoveStringLiteralDfa1_0(0x20000000000L);
160
      case 76:
161
         return jjMoveStringLiteralDfa1_0(0x400000000L);
162
      case 78:
163
         return jjMoveStringLiteralDfa1_0(0xa000000000L);
164
      case 79:
165
         return jjStartNfaWithStates_0(0, 24, 63);
166
      case 81:
167
         return jjMoveStringLiteralDfa1_0(0x600000L);
168
      case 82:
169
         return jjMoveStringLiteralDfa1_0(0x1880000000L);
170
      case 84:
171
         return jjMoveStringLiteralDfa1_0(0x200L);
172
      case 89:
173
         return jjMoveStringLiteralDfa1_0(0x4000000000L);
174
      case 91:
175
         return jjStopAtPos(0, 29);
176
      case 93:
177
         return jjStopAtPos(0, 30);
178
      default :
179
         return jjMoveNfa_0(3, 0);
180
   }
181
}
182
private int jjMoveStringLiteralDfa1_0(long active0)
183
{
184
   try { curChar = input_stream.readChar(); }
185
   catch(java.io.IOException e) {
186
      jjStopStringLiteralDfa_0(0, active0);
187
      return 1;
188
   }
189
   switch(curChar)
190
   {
191
      case 10:
192
         if ((active0 & 0x400000000000L) != 0L)
193
            return jjStopAtPos(1, 46);
194
         break;
195
      case 49:
196
         if ((active0 & 0x200000L) != 0L)
197
            return jjStartNfaWithStates_0(1, 16, 42);
198
         break;
199
      case 50:
200
         if ((active0 & 0x400000L) != 0L)
201
            return jjStartNfaWithStates_0(1, 16, 42);
202
         break;
203
      case 69:
204
         return jjMoveStringLiteralDfa2_0(active0, 0x4000000000L);
205
      case 79:
206
         if ((active0 & 0x8000000000L) != 0L)
207
            return jjStartNfaWithStates_0(1, 39, 64);
208
         return jjMoveStringLiteralDfa2_0(active0, 0x10000000000L);
209
      case 81:
210
         if ((active0 & 0x20000L) != 0L)
211
            return jjStartNfaWithStates_0(1, 17, 64);
212
         else if ((active0 & 0x40000L) != 0L)
213
            return jjStartNfaWithStates_0(1, 18, 64);
214
         else if ((active0 & 0x80000L) != 0L)
215
            return jjStartNfaWithStates_0(1, 19, 64);
216
         else if ((active0 & 0x100000L) != 0L)
217
            return jjStartNfaWithStates_0(1, 20, 64);
218
         break;
219
      case 97:
220
         return jjMoveStringLiteralDfa2_0(active0, 0xc00000000L);
221
      case 101:
222
         return jjMoveStringLiteralDfa2_0(active0, 0x2080000000L);
223
      case 105:
224
         return jjMoveStringLiteralDfa2_0(active0, 0x100000000L);
225
      case 108:
226
         return jjMoveStringLiteralDfa2_0(active0, 0x200000000L);
227
      case 110:
228
         return jjMoveStringLiteralDfa2_0(active0, 0x20000000000L);
229
      case 111:
230
         return jjMoveStringLiteralDfa2_0(active0, 0x1000000000L);
231
      case 121:
232
         return jjMoveStringLiteralDfa2_0(active0, 0x200L);
233
      default :
234
         break;
235
   }
236
   return jjStartNfa_0(0, active0);
237
}
238
private int jjMoveStringLiteralDfa2_0(long old0, long active0)
239
{
240
   if (((active0 &= old0)) == 0L)
241
      return jjStartNfa_0(0, old0);
242
   try { curChar = input_stream.readChar(); }
243
   catch(java.io.IOException e) {
244
      jjStopStringLiteralDfa_0(1, active0);
245
      return 2;
246
   }
247
   switch(curChar)
248
   {
249
      case 77:
250
         return jjMoveStringLiteralDfa3_0(active0, 0x10000000000L);
251
      case 83:
252
         if ((active0 & 0x4000000000L) != 0L)
253
            return jjStartNfaWithStates_0(2, 38, 44);
254
         break;
255
      case 102:
256
         return jjMoveStringLiteralDfa3_0(active0, 0x20000000000L);
257
      case 109:
258
         if ((active0 & 0x800000000L) != 0L)
259
            return jjStartNfaWithStates_0(2, 35, 44);
260
         else if ((active0 & 0x1000000000L) != 0L)
261
            return jjStartNfaWithStates_0(2, 36, 44);
262
         break;
263
      case 111:
264
         return jjMoveStringLiteralDfa3_0(active0, 0x200000000L);
265
      case 112:
266
         return jjMoveStringLiteralDfa3_0(active0, 0x200L);
267
      case 116:
268
         if ((active0 & 0x100000000L) != 0L)
269
            return jjStartNfaWithStates_0(2, 32, 44);
270
         else if ((active0 & 0x2000000000L) != 0L)
271
            return jjStartNfaWithStates_0(2, 37, 44);
272
         return jjMoveStringLiteralDfa3_0(active0, 0x400000000L);
273
      case 118:
274
         return jjMoveStringLiteralDfa3_0(active0, 0x80000000L);
275
      default :
276
         break;
277
   }
278
   return jjStartNfa_0(1, active0);
279
}
280
private int jjMoveStringLiteralDfa3_0(long old0, long active0)
281
{
282
   if (((active0 &= old0)) == 0L)
283
      return jjStartNfa_0(1, old0);
284
   try { curChar = input_stream.readChar(); }
285
   catch(java.io.IOException e) {
286
      jjStopStringLiteralDfa_0(2, active0);
287
      return 3;
288
   }
289
   switch(curChar)
290
   {
291
      case 80:
292
         return jjMoveStringLiteralDfa4_0(active0, 0x10000000000L);
293
      case 99:
294
         return jjMoveStringLiteralDfa4_0(active0, 0x600000000L);
295
      case 101:
296
         if ((active0 & 0x200L) != 0L)
297
            return jjStartNfaWithStates_0(3, 9, 44);
298
         break;
299
      case 105:
300
         return jjMoveStringLiteralDfa4_0(active0, 0x80000000L);
301
      case 111:
302
         if ((active0 & 0x20000000000L) != 0L)
303
            return jjStartNfaWithStates_0(3, 41, 44);
304
         break;
305
      default :
306
         break;
307
   }
308
   return jjStartNfa_0(2, active0);
309
}
310
private int jjMoveStringLiteralDfa4_0(long old0, long active0)
311
{
312
   if (((active0 &= old0)) == 0L)
313
      return jjStartNfa_0(2, old0);
314
   try { curChar = input_stream.readChar(); }
315
   catch(java.io.IOException e) {
316
      jjStopStringLiteralDfa_0(3, active0);
317
      return 4;
318
   }
319
   switch(curChar)
320
   {
321
      case 65:
322
         return jjMoveStringLiteralDfa5_0(active0, 0x10000000000L);
323
      case 104:
324
         if ((active0 & 0x400000000L) != 0L)
325
            return jjStartNfaWithStates_0(4, 34, 44);
326
         break;
327
      case 107:
328
         if ((active0 & 0x200000000L) != 0L)
329
            return jjStartNfaWithStates_0(4, 33, 44);
330
         break;
331
      case 115:
332
         return jjMoveStringLiteralDfa5_0(active0, 0x80000000L);
333
      default :
334
         break;
335
   }
336
   return jjStartNfa_0(3, active0);
337
}
338
private int jjMoveStringLiteralDfa5_0(long old0, long active0)
339
{
340
   if (((active0 &= old0)) == 0L)
341
      return jjStartNfa_0(3, old0);
342
   try { curChar = input_stream.readChar(); }
343
   catch(java.io.IOException e) {
344
      jjStopStringLiteralDfa_0(4, active0);
345
      return 5;
346
   }
347
   switch(curChar)
348
   {
349
      case 82:
350
         return jjMoveStringLiteralDfa6_0(active0, 0x10000000000L);
351
      case 105:
352
         return jjMoveStringLiteralDfa6_0(active0, 0x80000000L);
353
      default :
354
         break;
355
   }
356
   return jjStartNfa_0(4, active0);
357
}
358
private int jjMoveStringLiteralDfa6_0(long old0, long active0)
359
{
360
   if (((active0 &= old0)) == 0L)
361
      return jjStartNfa_0(4, old0);
362
   try { curChar = input_stream.readChar(); }
363
   catch(java.io.IOException e) {
364
      jjStopStringLiteralDfa_0(5, active0);
365
      return 6;
366
   }
367
   switch(curChar)
368
   {
369
      case 69:
370
         if ((active0 & 0x10000000000L) != 0L)
371
            return jjStartNfaWithStates_0(6, 40, 44);
372
         break;
373
      case 111:
374
         return jjMoveStringLiteralDfa7_0(active0, 0x80000000L);
375
      default :
376
         break;
377
   }
378
   return jjStartNfa_0(5, active0);
379
}
380
private int jjMoveStringLiteralDfa7_0(long old0, long active0)
381
{
382
   if (((active0 &= old0)) == 0L)
383
      return jjStartNfa_0(5, old0);
384
   try { curChar = input_stream.readChar(); }
385
   catch(java.io.IOException e) {
386
      jjStopStringLiteralDfa_0(6, active0);
387
      return 7;
388
   }
389
   switch(curChar)
390
   {
391
      case 110:
392
         if ((active0 & 0x80000000L) != 0L)
393
            return jjStartNfaWithStates_0(7, 31, 44);
394
         break;
395
      default :
396
         break;
397
   }
398
   return jjStartNfa_0(6, active0);
399
}
400
private int jjStartNfaWithStates_0(int pos, int kind, int state)
401
{
402
   jjmatchedKind = kind;
403
   jjmatchedPos = pos;
404
   try { curChar = input_stream.readChar(); }
405
   catch(java.io.IOException e) { return pos + 1; }
406
   return jjMoveNfa_0(state, pos + 1);
407
}
408
private int jjMoveNfa_0(int startState, int curPos)
409
{
410
   int startsAt = 0;
411
   jjnewStateCnt = 63;
412
   int i = 1;
413
   jjstateSet[0] = startState;
414
   int kind = 0x7fffffff;
415
   for (;;)
416
   {
417
      if (++jjround == 0x7fffffff)
418
         ReInitRounds();
419
      if (curChar < 64)
420
      {
421
         long l = 1L << curChar;
422
         do
423
         {
424
            switch(jjstateSet[--i])
425
            {
426
               case 24:
427
                  if ((0x3ffe01000000000L & l) != 0L)
428
                  {
429
                     if (kind > 42)
430
                        kind = 42;
431
                     jjCheckNAdd(44);
432
                  }
433
                  if ((0x3ff000000000000L & l) != 0L)
434
                  {
435
                     if (kind > 16)
436
                        kind = 16;
437
                     jjstateSet[jjnewStateCnt++] = 42;
438
                  }
439
                  break;
440
               case 58:
441
                  if ((0x3ffe01000000000L & l) != 0L)
442
                  {
443
                     if (kind > 42)
444
                        kind = 42;
445
                     jjCheckNAdd(44);
446
                  }
447
                  if ((0x3ff000000000000L & l) != 0L)
448
                  {
449
                     if (kind > 16)
450
                        kind = 16;
451
                     jjstateSet[jjnewStateCnt++] = 42;
452
                  }
453
                  break;
454
               case 63:
455
                  if ((0x3ffe01000000000L & l) != 0L)
456
                  {
457
                     if (kind > 42)
458
                        kind = 42;
459
                     jjCheckNAdd(44);
460
                  }
461
                  if ((0x3ff000000000000L & l) != 0L)
462
                  {
463
                     if (kind > 16)
464
                        kind = 16;
465
                     jjstateSet[jjnewStateCnt++] = 42;
466
                  }
467
                  break;
468
               case 3:
469
                  if ((0x3ff000000000000L & l) != 0L)
470
                  {
471
                     if (kind > 6)
472
                        kind = 6;
473
                     jjCheckNAdd(0);
474
                  }
475
                  else if (curChar == 47)
476
                     jjCheckNAdd(46);
477
                  if (curChar == 48)
478
                     jjstateSet[jjnewStateCnt++] = 1;
479
                  break;
480
               case 42:
481
                  if ((0x3ffe01000000000L & l) != 0L)
482
                  {
483
                     if (kind > 42)
484
                        kind = 42;
485
                     jjCheckNAdd(44);
486
                  }
487
                  if ((0x3ff000000000000L & l) != 0L)
488
                  {
489
                     if (kind > 16)
490
                        kind = 16;
491
                  }
492
                  break;
493
               case 64:
494
                  if ((0x3ffe01000000000L & l) != 0L)
495
                  {
496
                     if (kind > 42)
497
                        kind = 42;
498
                     jjCheckNAdd(44);
499
                  }
500
                  if ((0x3ff000000000000L & l) != 0L)
501
                  {
502
                     if (kind > 16)
503
                        kind = 16;
504
                     jjstateSet[jjnewStateCnt++] = 42;
505
                  }
506
                  break;
507
               case 0:
508
                  if ((0x3ff000000000000L & l) == 0L)
509
                     break;
510
                  if (kind > 6)
511
                     kind = 6;
512
                  jjCheckNAdd(0);
513
                  break;
514
               case 2:
515
                  if ((0x3ff000000000000L & l) == 0L)
516
                     break;
517
                  if (kind > 7)
518
                     kind = 7;
519
                  jjstateSet[jjnewStateCnt++] = 2;
520
                  break;
521
               case 6:
522
                  if ((0x3ff000000000000L & l) != 0L)
523
                     jjAddStates(0, 1);
524
                  break;
525
               case 8:
526
                  if ((0x3ff000000000000L & l) == 0L)
527
                     break;
528
                  if (kind > 12)
529
                     kind = 12;
530
                  jjstateSet[jjnewStateCnt++] = 8;
531
                  break;
532
               case 16:
533
                  if ((0x3ff000000000000L & l) != 0L)
534
                     jjAddStates(2, 3);
535
                  break;
536
               case 18:
537
                  if ((0x3ff000000000000L & l) == 0L)
538
                     break;
539
                  if (kind > 13)
540
                     kind = 13;
541
                  jjstateSet[jjnewStateCnt++] = 18;
542
                  break;
543
               case 20:
544
                  if (curChar == 54)
545
                     jjstateSet[jjnewStateCnt++] = 19;
546
                  break;
547
               case 21:
548
                  if (curChar == 51)
549
                     jjstateSet[jjnewStateCnt++] = 20;
550
                  break;
551
               case 27:
552
                  if ((0x3ff000000000000L & l) != 0L)
553
                     jjAddStates(4, 5);
554
                  break;
555
               case 29:
556
                  if ((0x3ff000000000000L & l) == 0L)
557
                     break;
558
                  if (kind > 14)
559
                     kind = 14;
560
                  jjstateSet[jjnewStateCnt++] = 29;
561
                  break;
562
               case 41:
563
                  if ((0x3ff000000000000L & l) == 0L)
564
                     break;
565
                  if (kind > 16)
566
                     kind = 16;
567
                  jjstateSet[jjnewStateCnt++] = 42;
568
                  break;
569
               case 44:
570
                  if ((0x3ffe01000000000L & l) == 0L)
571
                     break;
572
                  if (kind > 42)
573
                     kind = 42;
574
                  jjCheckNAdd(44);
575
                  break;
576
               case 45:
577
                  if (curChar == 47)
578
                     jjCheckNAdd(46);
579
                  break;
580
               case 46:
581
                  if ((0x3ffe00000000000L & l) == 0L)
582
                     break;
583
                  if (kind > 43)
584
                     kind = 43;
585
                  jjCheckNAdd(46);
586
                  break;
587
               case 49:
588
                  if ((0x3ff000000000000L & l) != 0L)
589
                     jjAddStates(6, 7);
590
                  break;
591
               case 51:
592
                  if ((0x3ff000000000000L & l) == 0L)
593
                     break;
594
                  if (kind > 15)
595
                     kind = 15;
596
                  jjstateSet[jjnewStateCnt++] = 51;
597
                  break;
598
               case 61:
599
                  if ((0x3ff000000000000L & l) == 0L)
600
                     break;
601
                  if (kind > 25)
602
                     kind = 25;
603
                  jjstateSet[jjnewStateCnt++] = 62;
604
                  break;
605
               case 62:
606
                  if ((0x3ff000000000000L & l) != 0L && kind > 25)
607
                     kind = 25;
608
                  break;
609
               default : break;
610
            }
611
         } while(i != startsAt);
612
      }
613
      else if (curChar < 128)
614
      {
615
         long l = 1L << (curChar & 077);
616
         do
617
         {
618
            switch(jjstateSet[--i])
619
            {
620
               case 24:
621
                  if ((0x7fffffe87fffffeL & l) != 0L)
622
                  {
623
                     if (kind > 42)
624
                        kind = 42;
625
                     jjCheckNAdd(44);
626
                  }
627
                  if ((0x7fffffeL & l) != 0L)
628
                     jjCheckNAdd(41);
629
                  if (curChar == 65)
630
                     jjstateSet[jjnewStateCnt++] = 23;
631
                  break;
632
               case 58:
633
                  if ((0x7fffffe87fffffeL & l) != 0L)
634
                  {
635
                     if (kind > 42)
636
                        kind = 42;
637
                     jjCheckNAdd(44);
638
                  }
639
                  if ((0x7fffffeL & l) != 0L)
640
                     jjCheckNAdd(41);
641
                  if (curChar == 79)
642
                     jjstateSet[jjnewStateCnt++] = 60;
643
                  else if (curChar == 67)
644
                     jjstateSet[jjnewStateCnt++] = 57;
645
                  break;
646
               case 63:
647
                  if ((0x7fffffe87fffffeL & l) != 0L)
648
                  {
649
                     if (kind > 42)
650
                        kind = 42;
651
                     jjCheckNAdd(44);
652
                  }
653
                  if ((0x7fffffeL & l) != 0L)
654
                     jjCheckNAdd(41);
655
                  break;
656
               case 3:
657
                  if ((0x7fffffe07fffffeL & l) != 0L)
658
                  {
659
                     if (kind > 42)
660
                        kind = 42;
661
                     jjCheckNAdd(44);
662
                  }
663
                  else if (curChar == 95)
664
                     jjCheckNAdd(46);
665
                  if ((0x7fffffeL & l) != 0L)
666
                     jjCheckNAddTwoStates(40, 41);
667
                  if ((0x1eL & l) != 0L)
668
                  {
669
                     if (kind > 10)
670
                        kind = 10;
671
                  }
672
                  else if (curChar == 71)
673
                     jjstateSet[jjnewStateCnt++] = 37;
674
                  else if (curChar == 82)
675
                     jjstateSet[jjnewStateCnt++] = 24;
676
                  else if (curChar == 83)
677
                     jjstateSet[jjnewStateCnt++] = 13;
678
                  if (curChar == 68)
679
                     jjAddStates(8, 9);
680
                  break;
681
               case 42:
682
               case 44:
683
                  if ((0x7fffffe87fffffeL & l) == 0L)
684
                     break;
685
                  if (kind > 42)
686
                     kind = 42;
687
                  jjCheckNAdd(44);
688
                  break;
689
               case 64:
690
                  if ((0x7fffffe87fffffeL & l) == 0L)
691
                     break;
692
                  if (kind > 42)
693
                     kind = 42;
694
                  jjCheckNAdd(44);
695
                  break;
696
               case 1:
697
                  if (curChar == 120)
698
                     jjCheckNAdd(2);
699
                  break;
700
               case 2:
701
                  if ((0x7e0000007eL & l) == 0L)
702
                     break;
703
                  if (kind > 7)
704
                     kind = 7;
705
                  jjCheckNAdd(2);
706
                  break;
707
               case 4:
708
                  if ((0x1eL & l) != 0L && kind > 10)
709
                     kind = 10;
710
                  break;
711
               case 5:
712
                  if (curChar == 88)
713
                     jjstateSet[jjnewStateCnt++] = 6;
714
                  break;
715
               case 7:
716
                  if (curChar == 89)
717
                     jjstateSet[jjnewStateCnt++] = 8;
718
                  break;
719
               case 9:
720
                  if (curChar == 95)
721
                     jjstateSet[jjnewStateCnt++] = 5;
722
                  break;
723
               case 10:
724
                  if (curChar == 69)
725
                     jjstateSet[jjnewStateCnt++] = 9;
726
                  break;
727
               case 11:
728
                  if (curChar == 67)
729
                     jjstateSet[jjnewStateCnt++] = 10;
730
                  break;
731
               case 12:
732
                  if (curChar == 73)
733
                     jjstateSet[jjnewStateCnt++] = 11;
734
                  break;
735
               case 13:
736
                  if (curChar == 76)
737
                     jjstateSet[jjnewStateCnt++] = 12;
738
                  break;
739
               case 14:
740
                  if (curChar == 83)
741
                     jjstateSet[jjnewStateCnt++] = 13;
742
                  break;
743
               case 15:
744
                  if (curChar == 88)
745
                     jjstateSet[jjnewStateCnt++] = 16;
746
                  break;
747
               case 17:
748
                  if (curChar == 89)
749
                     jjstateSet[jjnewStateCnt++] = 18;
750
                  break;
751
               case 19:
752
                  if (curChar == 95)
753
                     jjstateSet[jjnewStateCnt++] = 15;
754
                  break;
755
               case 22:
756
                  if (curChar == 66)
757
                     jjstateSet[jjnewStateCnt++] = 21;
758
                  break;
759
               case 23:
760
                  if (curChar == 77)
761
                     jjstateSet[jjnewStateCnt++] = 22;
762
                  break;
763
               case 25:
764
                  if (curChar == 82)
765
                     jjstateSet[jjnewStateCnt++] = 24;
766
                  break;
767
               case 26:
768
                  if (curChar == 88)
769
                     jjstateSet[jjnewStateCnt++] = 27;
770
                  break;
771
               case 28:
772
                  if (curChar == 89)
773
                     jjstateSet[jjnewStateCnt++] = 29;
774
                  break;
775
               case 30:
776
                  if (curChar == 95)
777
                     jjstateSet[jjnewStateCnt++] = 26;
778
                  break;
779
               case 31:
780
                  if (curChar == 76)
781
                     jjstateSet[jjnewStateCnt++] = 30;
782
                  break;
783
               case 32:
784
                  if (curChar == 65)
785
                     jjstateSet[jjnewStateCnt++] = 31;
786
                  break;
787
               case 33:
788
                  if (curChar == 85)
789
                     jjstateSet[jjnewStateCnt++] = 32;
790
                  break;
791
               case 34:
792
                  if (curChar == 68)
793
                     jjstateSet[jjnewStateCnt++] = 33;
794
                  break;
795
               case 35:
796
                  if (curChar == 95)
797
                     jjstateSet[jjnewStateCnt++] = 34;
798
                  break;
799
               case 36:
800
                  if (curChar == 80)
801
                     jjstateSet[jjnewStateCnt++] = 35;
802
                  break;
803
               case 37:
804
                  if (curChar == 84)
805
                     jjstateSet[jjnewStateCnt++] = 36;
806
                  break;
807
               case 38:
808
                  if (curChar == 71)
809
                     jjstateSet[jjnewStateCnt++] = 37;
810
                  break;
811
               case 39:
812
                  if ((0x7fffffeL & l) != 0L)
813
                     jjCheckNAddTwoStates(40, 41);
814
                  break;
815
               case 40:
816
                  if ((0x7fffffeL & l) != 0L)
817
                     jjCheckNAdd(41);
818
                  break;
819
               case 43:
820
                  if ((0x7fffffe07fffffeL & l) == 0L)
821
                     break;
822
                  if (kind > 42)
823
                     kind = 42;
824
                  jjCheckNAdd(44);
825
                  break;
826
               case 45:
827
                  if (curChar == 95)
828
                     jjCheckNAdd(46);
829
                  break;
830
               case 46:
831
                  if ((0x7fffffe87fffffeL & l) == 0L)
832
                     break;
833
                  if (kind > 43)
834
                     kind = 43;
835
                  jjCheckNAdd(46);
836
                  break;
837
               case 47:
838
                  if (curChar == 68)
839
                     jjAddStates(8, 9);
840
                  break;
841
               case 48:
842
                  if (curChar == 88)
843
                     jjstateSet[jjnewStateCnt++] = 49;
844
                  break;
845
               case 50:
846
                  if (curChar == 89)
847
                     jjstateSet[jjnewStateCnt++] = 51;
848
                  break;
849
               case 52:
850
                  if (curChar == 95)
851
                     jjstateSet[jjnewStateCnt++] = 48;
852
                  break;
853
               case 53:
854
                  if (curChar == 86)
855
                     jjstateSet[jjnewStateCnt++] = 52;
856
                  break;
857
               case 54:
858
                  if (curChar == 68)
859
                     jjstateSet[jjnewStateCnt++] = 53;
860
                  break;
861
               case 55:
862
                  if (curChar == 65)
863
                     jjstateSet[jjnewStateCnt++] = 54;
864
                  break;
865
               case 56:
866
                  if (curChar == 95)
867
                     jjstateSet[jjnewStateCnt++] = 55;
868
                  break;
869
               case 57:
870
                  if (curChar == 77)
871
                     jjstateSet[jjnewStateCnt++] = 56;
872
                  break;
873
               case 59:
874
                  if (curChar == 79)
875
                     jjstateSet[jjnewStateCnt++] = 60;
876
                  break;
877
               case 60:
878
                  if ((0x6L & l) != 0L)
879
                     jjstateSet[jjnewStateCnt++] = 61;
880
                  break;
881
               default : break;
882
            }
883
         } while(i != startsAt);
884
      }
885
      else
886
      {
887
         int i2 = (curChar & 0xff) >> 6;
888
         long l2 = 1L << (curChar & 077);
889
         do
890
         {
891
            switch(jjstateSet[--i])
892
            {
893
               default : break;
894
            }
895
         } while(i != startsAt);
896
      }
897
      if (kind != 0x7fffffff)
898
      {
899
         jjmatchedKind = kind;
900
         jjmatchedPos = curPos;
901
         kind = 0x7fffffff;
902
      }
903
      ++curPos;
904
      if ((i = jjnewStateCnt) == (startsAt = 63 - (jjnewStateCnt = startsAt)))
905
         return curPos;
906
      try { curChar = input_stream.readChar(); }
907
      catch(java.io.IOException e) { return curPos; }
908
   }
909
}
910
private int jjMoveStringLiteralDfa0_1()
911
{
912
   switch(curChar)
913
   {
914
      case 10:
915
         return jjStopAtPos(0, 4);
916
      default :
917
         return 1;
918
   }
919
}
920
static final int[] jjnextStates = {
921
   6, 7, 16, 17, 27, 28, 49, 50, 58, 59,
922
};
923
 
924
/** Token literal values. */
925
public static final String[] jjstrLiteralImages = {
926
"", null, null, null, null, null, null, null, "\75", "\124\171\160\145", null,
927
"\102", null, null, null, null, null, "\101\121", "\102\121", "\103\121", "\104\121",
928
"\121\61", "\121\62", "\111", "\117", null, "\72", "\74", "\76", "\133", "\135",
929
"\122\145\166\151\163\151\157\156", "\102\151\164", "\102\154\157\143\153", "\114\141\164\143\150",
930
"\122\141\155", "\122\157\155", "\116\145\164", "\131\105\123", "\116\117",
931
"\103\117\115\120\101\122\105", "\111\156\146\157", null, null, "\15", "\12", "\15\12", };
932
 
933
/** Lexer state names. */
934
public static final String[] lexStateNames = {
935
   "DEFAULT",
936
   "IN_LINE_COMMENT",
937
};
938
 
939
/** Lex State array. */
940
public static final int[] jjnewLexState = {
941
   -1, -1, -1, 1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
942
   -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
943
};
944
static final long[] jjtoToken = {
945
   0x7fffffffffc1L,
946
};
947
static final long[] jjtoSkip = {
948
   0x1eL,
949
};
950
static final long[] jjtoMore = {
951
   0x20L,
952
};
953
protected SimpleCharStream input_stream;
954
private final int[] jjrounds = new int[63];
955
private final int[] jjstateSet = new int[126];
956
protected char curChar;
957
/** Constructor. */
958
public LL_Virtex5TokenManager(SimpleCharStream stream){
959
   if (SimpleCharStream.staticFlag)
960
      throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
961
   input_stream = stream;
962
}
963
 
964
/** Constructor. */
965
public LL_Virtex5TokenManager(SimpleCharStream stream, int lexState){
966
   this(stream);
967
   SwitchTo(lexState);
968
}
969
 
970
/** Reinitialise parser. */
971
public void ReInit(SimpleCharStream stream)
972
{
973
   jjmatchedPos = jjnewStateCnt = 0;
974
   curLexState = defaultLexState;
975
   input_stream = stream;
976
   ReInitRounds();
977
}
978
private void ReInitRounds()
979
{
980
   int i;
981
   jjround = 0x80000001;
982
   for (i = 63; i-- > 0;)
983
      jjrounds[i] = 0x80000000;
984
}
985
 
986
/** Reinitialise parser. */
987
public void ReInit(SimpleCharStream stream, int lexState)
988
{
989
   ReInit(stream);
990
   SwitchTo(lexState);
991
}
992
 
993
/** Switch to specified lex state. */
994
public void SwitchTo(int lexState)
995
{
996
   if (lexState >= 2 || lexState < 0)
997
      throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE);
998
   else
999
      curLexState = lexState;
1000
}
1001
 
1002
protected Token jjFillToken()
1003
{
1004
   final Token t;
1005
   final String curTokenImage;
1006
   final int beginLine;
1007
   final int endLine;
1008
   final int beginColumn;
1009
   final int endColumn;
1010
   String im = jjstrLiteralImages[jjmatchedKind];
1011
   curTokenImage = (im == null) ? input_stream.GetImage() : im;
1012
   beginLine = input_stream.getBeginLine();
1013
   beginColumn = input_stream.getBeginColumn();
1014
   endLine = input_stream.getEndLine();
1015
   endColumn = input_stream.getEndColumn();
1016
   t = Token.newToken(jjmatchedKind, curTokenImage);
1017
 
1018
   t.beginLine = beginLine;
1019
   t.endLine = endLine;
1020
   t.beginColumn = beginColumn;
1021
   t.endColumn = endColumn;
1022
 
1023
   return t;
1024
}
1025
 
1026
int curLexState = 0;
1027
int defaultLexState = 0;
1028
int jjnewStateCnt;
1029
int jjround;
1030
int jjmatchedPos;
1031
int jjmatchedKind;
1032
 
1033
/** Get the next Token. */
1034
public Token getNextToken()
1035
{
1036
  Token matchedToken;
1037
  int curPos = 0;
1038
 
1039
  EOFLoop :
1040
  for (;;)
1041
  {
1042
   try
1043
   {
1044
      curChar = input_stream.BeginToken();
1045
   }
1046
   catch(java.io.IOException e)
1047
   {
1048
      jjmatchedKind = 0;
1049
      matchedToken = jjFillToken();
1050
      return matchedToken;
1051
   }
1052
 
1053
   for (;;)
1054
   {
1055
     switch(curLexState)
1056
     {
1057
       case 0:
1058
         try { input_stream.backup(0);
1059
            while (curChar <= 32 && (0x100000200L & (1L << curChar)) != 0L)
1060
               curChar = input_stream.BeginToken();
1061
         }
1062
         catch (java.io.IOException e1) { continue EOFLoop; }
1063
         jjmatchedKind = 0x7fffffff;
1064
         jjmatchedPos = 0;
1065
         curPos = jjMoveStringLiteralDfa0_0();
1066
         break;
1067
       case 1:
1068
         jjmatchedKind = 0x7fffffff;
1069
         jjmatchedPos = 0;
1070
         curPos = jjMoveStringLiteralDfa0_1();
1071
         if (jjmatchedPos == 0 && jjmatchedKind > 5)
1072
         {
1073
            jjmatchedKind = 5;
1074
         }
1075
         break;
1076
     }
1077
     if (jjmatchedKind != 0x7fffffff)
1078
     {
1079
        if (jjmatchedPos + 1 < curPos)
1080
           input_stream.backup(curPos - jjmatchedPos - 1);
1081
        if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1082
        {
1083
           matchedToken = jjFillToken();
1084
       if (jjnewLexState[jjmatchedKind] != -1)
1085
         curLexState = jjnewLexState[jjmatchedKind];
1086
           return matchedToken;
1087
        }
1088
        else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)
1089
        {
1090
         if (jjnewLexState[jjmatchedKind] != -1)
1091
           curLexState = jjnewLexState[jjmatchedKind];
1092
           continue EOFLoop;
1093
        }
1094
      if (jjnewLexState[jjmatchedKind] != -1)
1095
        curLexState = jjnewLexState[jjmatchedKind];
1096
        curPos = 0;
1097
        jjmatchedKind = 0x7fffffff;
1098
        try {
1099
           curChar = input_stream.readChar();
1100
           continue;
1101
        }
1102
        catch (java.io.IOException e1) { }
1103
     }
1104
     int error_line = input_stream.getEndLine();
1105
     int error_column = input_stream.getEndColumn();
1106
     String error_after = null;
1107
     boolean EOFSeen = false;
1108
     try { input_stream.readChar(); input_stream.backup(1); }
1109
     catch (java.io.IOException e1) {
1110
        EOFSeen = true;
1111
        error_after = curPos <= 1 ? "" : input_stream.GetImage();
1112
        if (curChar == '\n' || curChar == '\r') {
1113
           error_line++;
1114
           error_column = 0;
1115
        }
1116
        else
1117
           error_column++;
1118
     }
1119
     if (!EOFSeen) {
1120
        input_stream.backup(1);
1121
        error_after = curPos <= 1 ? "" : input_stream.GetImage();
1122
     }
1123
     throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);
1124
   }
1125
  }
1126
}
1127
 
1128
private void jjCheckNAdd(int state)
1129
{
1130
   if (jjrounds[state] != jjround)
1131
   {
1132
      jjstateSet[jjnewStateCnt++] = state;
1133
      jjrounds[state] = jjround;
1134
   }
1135
}
1136
private void jjAddStates(int start, int end)
1137
{
1138
   do {
1139
      jjstateSet[jjnewStateCnt++] = jjnextStates[start];
1140
   } while (start++ != end);
1141
}
1142
private void jjCheckNAddTwoStates(int state1, int state2)
1143
{
1144
   jjCheckNAdd(state1);
1145
   jjCheckNAdd(state2);
1146
}
1147
 
1148
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.