001: /* Generated By:JavaCC: Do not edit this line. SQLTokenManager.java */
002: package org.mandarax.jdbc.server.parser;
003:
004: import org.mandarax.jdbc.server.sql.*;
005:
006: public class SQLTokenManager implements SQLConstants {
007: public java.io.PrintStream debugStream = System.out;
008:
009: public void setDebugStream(java.io.PrintStream ds) {
010: debugStream = ds;
011: }
012:
013: private final int jjStopStringLiteralDfa_0(int pos, long active0) {
014: switch (pos) {
015: case 0:
016: if ((active0 & 0xffc007ce0L) != 0L) {
017: jjmatchedKind = 38;
018: return 1;
019: }
020: if ((active0 & 0x40000L) != 0L)
021: return 10;
022: return -1;
023: case 1:
024: if ((active0 & 0xff80074e0L) != 0L) {
025: if (jjmatchedPos != 1) {
026: jjmatchedKind = 38;
027: jjmatchedPos = 1;
028: }
029: return 1;
030: }
031: if ((active0 & 0x4000800L) != 0L)
032: return 1;
033: return -1;
034: case 2:
035: if ((active0 & 0x15c0060e0L) != 0L) {
036: jjmatchedKind = 38;
037: jjmatchedPos = 2;
038: return 1;
039: }
040: if ((active0 & 0xea0001400L) != 0L)
041: return 1;
042: return -1;
043: case 3:
044: if ((active0 & 0x11c002060L) != 0L) {
045: jjmatchedKind = 38;
046: jjmatchedPos = 3;
047: return 1;
048: }
049: if ((active0 & 0x40004080L) != 0L)
050: return 1;
051: return -1;
052: case 4:
053: if ((active0 & 0x11c000060L) != 0L) {
054: jjmatchedKind = 38;
055: jjmatchedPos = 4;
056: return 1;
057: }
058: if ((active0 & 0x2000L) != 0L)
059: return 1;
060: return -1;
061: case 5:
062: if ((active0 & 0x10c000000L) != 0L) {
063: if (jjmatchedPos < 4) {
064: jjmatchedKind = 38;
065: jjmatchedPos = 4;
066: }
067: return -1;
068: }
069: if ((active0 & 0x40L) != 0L) {
070: jjmatchedKind = 38;
071: jjmatchedPos = 5;
072: return 1;
073: }
074: if ((active0 & 0x10000020L) != 0L)
075: return 1;
076: return -1;
077: case 6:
078: if ((active0 & 0x10c000000L) != 0L) {
079: if (jjmatchedPos < 4) {
080: jjmatchedKind = 38;
081: jjmatchedPos = 4;
082: }
083: return -1;
084: }
085: if ((active0 & 0x40L) != 0L) {
086: jjmatchedKind = 38;
087: jjmatchedPos = 6;
088: return 1;
089: }
090: return -1;
091: default:
092: return -1;
093: }
094: }
095:
096: private final int jjStartNfa_0(int pos, long active0) {
097: return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0),
098: pos + 1);
099: }
100:
101: private final int jjStopAtPos(int pos, int kind) {
102: jjmatchedKind = kind;
103: jjmatchedPos = pos;
104: return pos + 1;
105: }
106:
107: private final int jjStartNfaWithStates_0(int pos, int kind,
108: int state) {
109: jjmatchedKind = kind;
110: jjmatchedPos = pos;
111: try {
112: curChar = input_stream.readChar();
113: } catch (java.io.IOException e) {
114: return pos + 1;
115: }
116: return jjMoveNfa_0(state, pos + 1);
117: }
118:
119: private final int jjMoveStringLiteralDfa0_0() {
120: switch (curChar) {
121: case 13:
122: jjmatchedKind = 3;
123: return jjMoveStringLiteralDfa1_0(0x10L);
124: case 33:
125: return jjMoveStringLiteralDfa1_0(0x100000L);
126: case 39:
127: return jjStartNfaWithStates_0(0, 18, 10);
128: case 40:
129: return jjStopAtPos(0, 16);
130: case 41:
131: return jjStopAtPos(0, 17);
132: case 42:
133: return jjStopAtPos(0, 8);
134: case 44:
135: return jjStopAtPos(0, 15);
136: case 46:
137: return jjStopAtPos(0, 9);
138: case 60:
139: jjmatchedKind = 21;
140: return jjMoveStringLiteralDfa1_0(0x400000L);
141: case 61:
142: return jjStopAtPos(0, 19);
143: case 62:
144: jjmatchedKind = 23;
145: return jjMoveStringLiteralDfa1_0(0x1000000L);
146: case 63:
147: return jjStopAtPos(0, 25);
148: case 65:
149: case 97:
150: return jjMoveStringLiteralDfa1_0(0x220000400L);
151: case 67:
152: case 99:
153: return jjMoveStringLiteralDfa1_0(0x100000000L);
154: case 68:
155: case 100:
156: return jjMoveStringLiteralDfa1_0(0x40000040L);
157: case 70:
158: case 102:
159: return jjMoveStringLiteralDfa1_0(0x4000L);
160: case 71:
161: case 103:
162: return jjMoveStringLiteralDfa1_0(0x8000000L);
163: case 72:
164: case 104:
165: return jjMoveStringLiteralDfa1_0(0x10000000L);
166: case 76:
167: case 108:
168: return jjMoveStringLiteralDfa1_0(0x80L);
169: case 77:
170: case 109:
171: return jjMoveStringLiteralDfa1_0(0xc00000000L);
172: case 78:
173: case 110:
174: return jjMoveStringLiteralDfa1_0(0x1000L);
175: case 79:
176: case 111:
177: return jjMoveStringLiteralDfa1_0(0x4000800L);
178: case 83:
179: case 115:
180: return jjMoveStringLiteralDfa1_0(0x80000020L);
181: case 87:
182: case 119:
183: return jjMoveStringLiteralDfa1_0(0x2000L);
184: default:
185: return jjMoveNfa_0(0, 0);
186: }
187: }
188:
189: private final int jjMoveStringLiteralDfa1_0(long active0) {
190: try {
191: curChar = input_stream.readChar();
192: } catch (java.io.IOException e) {
193: jjStopStringLiteralDfa_0(0, active0);
194: return 1;
195: }
196: switch (curChar) {
197: case 10:
198: if ((active0 & 0x10L) != 0L)
199: return jjStopAtPos(1, 4);
200: break;
201: case 61:
202: if ((active0 & 0x100000L) != 0L)
203: return jjStopAtPos(1, 20);
204: else if ((active0 & 0x400000L) != 0L)
205: return jjStopAtPos(1, 22);
206: else if ((active0 & 0x1000000L) != 0L)
207: return jjStopAtPos(1, 24);
208: break;
209: case 65:
210: case 97:
211: return jjMoveStringLiteralDfa2_0(active0, 0x810000000L);
212: case 69:
213: case 101:
214: return jjMoveStringLiteralDfa2_0(active0, 0x40000020L);
215: case 72:
216: case 104:
217: return jjMoveStringLiteralDfa2_0(active0, 0x2000L);
218: case 73:
219: case 105:
220: return jjMoveStringLiteralDfa2_0(active0, 0x4000000c0L);
221: case 78:
222: case 110:
223: return jjMoveStringLiteralDfa2_0(active0, 0x400L);
224: case 79:
225: case 111:
226: return jjMoveStringLiteralDfa2_0(active0, 0x100001000L);
227: case 82:
228: case 114:
229: if ((active0 & 0x800L) != 0L) {
230: jjmatchedKind = 11;
231: jjmatchedPos = 1;
232: }
233: return jjMoveStringLiteralDfa2_0(active0, 0xc004000L);
234: case 83:
235: case 115:
236: return jjMoveStringLiteralDfa2_0(active0, 0x20000000L);
237: case 85:
238: case 117:
239: return jjMoveStringLiteralDfa2_0(active0, 0x80000000L);
240: case 86:
241: case 118:
242: return jjMoveStringLiteralDfa2_0(active0, 0x200000000L);
243: default:
244: break;
245: }
246: return jjStartNfa_0(0, active0);
247: }
248:
249: private final int jjMoveStringLiteralDfa2_0(long old0, long active0) {
250: if (((active0 &= old0)) == 0L)
251: return jjStartNfa_0(0, old0);
252: try {
253: curChar = input_stream.readChar();
254: } catch (java.io.IOException e) {
255: jjStopStringLiteralDfa_0(1, active0);
256: return 2;
257: }
258: switch (curChar) {
259: case 67:
260: case 99:
261: if ((active0 & 0x20000000L) != 0L)
262: return jjStartNfaWithStates_0(2, 29, 1);
263: break;
264: case 68:
265: case 100:
266: if ((active0 & 0x400L) != 0L)
267: return jjStartNfaWithStates_0(2, 10, 1);
268: return jjMoveStringLiteralDfa3_0(active0, 0x4000000L);
269: case 69:
270: case 101:
271: return jjMoveStringLiteralDfa3_0(active0, 0x2000L);
272: case 71:
273: case 103:
274: if ((active0 & 0x200000000L) != 0L)
275: return jjStartNfaWithStates_0(2, 33, 1);
276: break;
277: case 75:
278: case 107:
279: return jjMoveStringLiteralDfa3_0(active0, 0x80L);
280: case 76:
281: case 108:
282: return jjMoveStringLiteralDfa3_0(active0, 0x20L);
283: case 77:
284: case 109:
285: if ((active0 & 0x80000000L) != 0L)
286: return jjStartNfaWithStates_0(2, 31, 1);
287: break;
288: case 78:
289: case 110:
290: if ((active0 & 0x400000000L) != 0L)
291: return jjStartNfaWithStates_0(2, 34, 1);
292: break;
293: case 79:
294: case 111:
295: return jjMoveStringLiteralDfa3_0(active0, 0x8004000L);
296: case 83:
297: case 115:
298: return jjMoveStringLiteralDfa3_0(active0, 0x40000040L);
299: case 84:
300: case 116:
301: if ((active0 & 0x1000L) != 0L)
302: return jjStartNfaWithStates_0(2, 12, 1);
303: break;
304: case 85:
305: case 117:
306: return jjMoveStringLiteralDfa3_0(active0, 0x100000000L);
307: case 86:
308: case 118:
309: return jjMoveStringLiteralDfa3_0(active0, 0x10000000L);
310: case 88:
311: case 120:
312: if ((active0 & 0x800000000L) != 0L)
313: return jjStartNfaWithStates_0(2, 35, 1);
314: break;
315: default:
316: break;
317: }
318: return jjStartNfa_0(1, active0);
319: }
320:
321: private final int jjMoveStringLiteralDfa3_0(long old0, long active0) {
322: if (((active0 &= old0)) == 0L)
323: return jjStartNfa_0(1, old0);
324: try {
325: curChar = input_stream.readChar();
326: } catch (java.io.IOException e) {
327: jjStopStringLiteralDfa_0(2, active0);
328: return 3;
329: }
330: switch (curChar) {
331: case 67:
332: case 99:
333: if ((active0 & 0x40000000L) != 0L)
334: return jjStartNfaWithStates_0(3, 30, 1);
335: break;
336: case 69:
337: case 101:
338: if ((active0 & 0x80L) != 0L)
339: return jjStartNfaWithStates_0(3, 7, 1);
340: return jjMoveStringLiteralDfa4_0(active0, 0x4000020L);
341: case 73:
342: case 105:
343: return jjMoveStringLiteralDfa4_0(active0, 0x10000000L);
344: case 77:
345: case 109:
346: if ((active0 & 0x4000L) != 0L)
347: return jjStartNfaWithStates_0(3, 14, 1);
348: break;
349: case 78:
350: case 110:
351: return jjMoveStringLiteralDfa4_0(active0, 0x100000000L);
352: case 82:
353: case 114:
354: return jjMoveStringLiteralDfa4_0(active0, 0x2000L);
355: case 84:
356: case 116:
357: return jjMoveStringLiteralDfa4_0(active0, 0x40L);
358: case 85:
359: case 117:
360: return jjMoveStringLiteralDfa4_0(active0, 0x8000000L);
361: default:
362: break;
363: }
364: return jjStartNfa_0(2, active0);
365: }
366:
367: private final int jjMoveStringLiteralDfa4_0(long old0, long active0) {
368: if (((active0 &= old0)) == 0L)
369: return jjStartNfa_0(2, old0);
370: try {
371: curChar = input_stream.readChar();
372: } catch (java.io.IOException e) {
373: jjStopStringLiteralDfa_0(3, active0);
374: return 4;
375: }
376: switch (curChar) {
377: case 67:
378: case 99:
379: return jjMoveStringLiteralDfa5_0(active0, 0x20L);
380: case 69:
381: case 101:
382: if ((active0 & 0x2000L) != 0L)
383: return jjStartNfaWithStates_0(4, 13, 1);
384: break;
385: case 73:
386: case 105:
387: return jjMoveStringLiteralDfa5_0(active0, 0x40L);
388: case 78:
389: case 110:
390: return jjMoveStringLiteralDfa5_0(active0, 0x10000000L);
391: case 80:
392: case 112:
393: return jjMoveStringLiteralDfa5_0(active0, 0x8000000L);
394: case 82:
395: case 114:
396: return jjMoveStringLiteralDfa5_0(active0, 0x4000000L);
397: case 84:
398: case 116:
399: return jjMoveStringLiteralDfa5_0(active0, 0x100000000L);
400: default:
401: break;
402: }
403: return jjStartNfa_0(3, active0);
404: }
405:
406: private final int jjMoveStringLiteralDfa5_0(long old0, long active0) {
407: if (((active0 &= old0)) == 0L)
408: return jjStartNfa_0(3, old0);
409: try {
410: curChar = input_stream.readChar();
411: } catch (java.io.IOException e) {
412: jjStopStringLiteralDfa_0(4, active0);
413: return 5;
414: }
415: switch (curChar) {
416: case 32:
417: return jjMoveStringLiteralDfa6_0(active0, 0xc000000L);
418: case 40:
419: return jjMoveStringLiteralDfa6_0(active0, 0x100000000L);
420: case 71:
421: case 103:
422: if ((active0 & 0x10000000L) != 0L)
423: return jjStartNfaWithStates_0(5, 28, 1);
424: break;
425: case 78:
426: case 110:
427: return jjMoveStringLiteralDfa6_0(active0, 0x40L);
428: case 84:
429: case 116:
430: if ((active0 & 0x20L) != 0L)
431: return jjStartNfaWithStates_0(5, 5, 1);
432: break;
433: default:
434: break;
435: }
436: return jjStartNfa_0(4, active0);
437: }
438:
439: private final int jjMoveStringLiteralDfa6_0(long old0, long active0) {
440: if (((active0 &= old0)) == 0L)
441: return jjStartNfa_0(4, old0);
442: try {
443: curChar = input_stream.readChar();
444: } catch (java.io.IOException e) {
445: jjStopStringLiteralDfa_0(5, active0);
446: return 6;
447: }
448: switch (curChar) {
449: case 42:
450: return jjMoveStringLiteralDfa7_0(active0, 0x100000000L);
451: case 66:
452: case 98:
453: return jjMoveStringLiteralDfa7_0(active0, 0xc000000L);
454: case 67:
455: case 99:
456: return jjMoveStringLiteralDfa7_0(active0, 0x40L);
457: default:
458: break;
459: }
460: return jjStartNfa_0(5, active0);
461: }
462:
463: private final int jjMoveStringLiteralDfa7_0(long old0, long active0) {
464: if (((active0 &= old0)) == 0L)
465: return jjStartNfa_0(5, old0);
466: try {
467: curChar = input_stream.readChar();
468: } catch (java.io.IOException e) {
469: jjStopStringLiteralDfa_0(6, active0);
470: return 7;
471: }
472: switch (curChar) {
473: case 41:
474: if ((active0 & 0x100000000L) != 0L)
475: return jjStopAtPos(7, 32);
476: break;
477: case 84:
478: case 116:
479: if ((active0 & 0x40L) != 0L)
480: return jjStartNfaWithStates_0(7, 6, 1);
481: break;
482: case 89:
483: case 121:
484: if ((active0 & 0x4000000L) != 0L)
485: return jjStopAtPos(7, 26);
486: else if ((active0 & 0x8000000L) != 0L)
487: return jjStopAtPos(7, 27);
488: break;
489: default:
490: break;
491: }
492: return jjStartNfa_0(6, active0);
493: }
494:
495: private final void jjCheckNAdd(int state) {
496: if (jjrounds[state] != jjround) {
497: jjstateSet[jjnewStateCnt++] = state;
498: jjrounds[state] = jjround;
499: }
500: }
501:
502: private final void jjAddStates(int start, int end) {
503: do {
504: jjstateSet[jjnewStateCnt++] = jjnextStates[start];
505: } while (start++ != end);
506: }
507:
508: private final void jjCheckNAddTwoStates(int state1, int state2) {
509: jjCheckNAdd(state1);
510: jjCheckNAdd(state2);
511: }
512:
513: private final void jjCheckNAddStates(int start, int end) {
514: do {
515: jjCheckNAdd(jjnextStates[start]);
516: } while (start++ != end);
517: }
518:
519: private final void jjCheckNAddStates(int start) {
520: jjCheckNAdd(jjnextStates[start]);
521: jjCheckNAdd(jjnextStates[start + 1]);
522: }
523:
524: private final int jjMoveNfa_0(int startState, int curPos) {
525: int[] nextStates;
526: int startsAt = 0;
527: jjnewStateCnt = 10;
528: int i = 1;
529: jjstateSet[0] = startState;
530: int j, kind = 0x7fffffff;
531: for (;;) {
532: if (++jjround == 0x7fffffff)
533: ReInitRounds();
534: if (curChar < 64) {
535: long l = 1L << curChar;
536: MatchLoop: do {
537: switch (jjstateSet[--i]) {
538: case 0:
539: if ((0x3ff000000000000L & l) != 0L) {
540: if (kind > 36)
541: kind = 36;
542: jjCheckNAddStates(0, 2);
543: } else if (curChar == 39)
544: jjCheckNAddTwoStates(3, 4);
545: break;
546: case 10:
547: if ((0x8bffb42b00000000L & l) != 0L)
548: jjCheckNAddTwoStates(3, 4);
549: else if (curChar == 39) {
550: if (kind > 39)
551: kind = 39;
552: }
553: break;
554: case 1:
555: if ((0x3ff400000000000L & l) == 0L)
556: break;
557: if (kind > 38)
558: kind = 38;
559: jjstateSet[jjnewStateCnt++] = 1;
560: break;
561: case 2:
562: if (curChar == 39)
563: jjCheckNAddTwoStates(3, 4);
564: break;
565: case 3:
566: if ((0x8bffb42b00000000L & l) != 0L)
567: jjCheckNAddTwoStates(3, 4);
568: break;
569: case 4:
570: if (curChar == 39 && kind > 39)
571: kind = 39;
572: break;
573: case 5:
574: if ((0x3ff000000000000L & l) == 0L)
575: break;
576: if (kind > 36)
577: kind = 36;
578: jjCheckNAddStates(0, 2);
579: break;
580: case 6:
581: if ((0x3ff000000000000L & l) == 0L)
582: break;
583: if (kind > 36)
584: kind = 36;
585: jjCheckNAdd(6);
586: break;
587: case 7:
588: if ((0x3ff000000000000L & l) == 0L)
589: break;
590: if (kind > 37)
591: kind = 37;
592: jjCheckNAddTwoStates(7, 8);
593: break;
594: case 8:
595: if (curChar == 46)
596: jjCheckNAdd(9);
597: break;
598: case 9:
599: if ((0x3ff000000000000L & l) == 0L)
600: break;
601: if (kind > 37)
602: kind = 37;
603: jjCheckNAdd(9);
604: break;
605: default:
606: break;
607: }
608: } while (i != startsAt);
609: } else if (curChar < 128) {
610: long l = 1L << (curChar & 077);
611: MatchLoop: do {
612: switch (jjstateSet[--i]) {
613: case 0:
614: case 1:
615: if ((0x7fffffe87fffffeL & l) == 0L)
616: break;
617: if (kind > 38)
618: kind = 38;
619: jjCheckNAdd(1);
620: break;
621: case 10:
622: case 3:
623: if ((0x7fffffe97ffffffL & l) != 0L)
624: jjCheckNAddTwoStates(3, 4);
625: break;
626: default:
627: break;
628: }
629: } while (i != startsAt);
630: } else {
631: int i2 = (curChar & 0xff) >> 6;
632: long l2 = 1L << (curChar & 077);
633: MatchLoop: do {
634: switch (jjstateSet[--i]) {
635: default:
636: break;
637: }
638: } while (i != startsAt);
639: }
640: if (kind != 0x7fffffff) {
641: jjmatchedKind = kind;
642: jjmatchedPos = curPos;
643: kind = 0x7fffffff;
644: }
645: ++curPos;
646: if ((i = jjnewStateCnt) == (startsAt = 10 - (jjnewStateCnt = startsAt)))
647: return curPos;
648: try {
649: curChar = input_stream.readChar();
650: } catch (java.io.IOException e) {
651: return curPos;
652: }
653: }
654: }
655:
656: static final int[] jjnextStates = { 6, 7, 8, };
657: public static final String[] jjstrLiteralImages = { "", null, null,
658: null, null, null, null, null, "\52", "\56", null, null,
659: null, null, null, "\54", "\50", "\51", "\47", "\75",
660: "\41\75", "\74", "\74\75", "\76", "\76\75", "\77", null,
661: null, null, null, null, null, null, null, null, null, null,
662: null, null, null, };
663: public static final String[] lexStateNames = { "DEFAULT", };
664: static final long[] jjtoToken = { 0xffffffffe1L, };
665: static final long[] jjtoSkip = { 0x1eL, };
666: protected SimpleCharStream input_stream;
667: private final int[] jjrounds = new int[10];
668: private final int[] jjstateSet = new int[20];
669: protected char curChar;
670:
671: public SQLTokenManager(SimpleCharStream stream) {
672: if (SimpleCharStream.staticFlag)
673: throw new Error(
674: "ERROR: Cannot use a static CharStream class with a non-static lexical analyzer.");
675: input_stream = stream;
676: }
677:
678: public SQLTokenManager(SimpleCharStream stream, int lexState) {
679: this (stream);
680: SwitchTo(lexState);
681: }
682:
683: public void ReInit(SimpleCharStream stream) {
684: jjmatchedPos = jjnewStateCnt = 0;
685: curLexState = defaultLexState;
686: input_stream = stream;
687: ReInitRounds();
688: }
689:
690: private final void ReInitRounds() {
691: int i;
692: jjround = 0x80000001;
693: for (i = 10; i-- > 0;)
694: jjrounds[i] = 0x80000000;
695: }
696:
697: public void ReInit(SimpleCharStream stream, int lexState) {
698: ReInit(stream);
699: SwitchTo(lexState);
700: }
701:
702: public void SwitchTo(int lexState) {
703: if (lexState >= 1 || lexState < 0)
704: throw new TokenMgrError(
705: "Error: Ignoring invalid lexical state : "
706: + lexState + ". State unchanged.",
707: TokenMgrError.INVALID_LEXICAL_STATE);
708: else
709: curLexState = lexState;
710: }
711:
712: protected Token jjFillToken() {
713: Token t = Token.newToken(jjmatchedKind);
714: t.kind = jjmatchedKind;
715: String im = jjstrLiteralImages[jjmatchedKind];
716: t.image = (im == null) ? input_stream.GetImage() : im;
717: t.beginLine = input_stream.getBeginLine();
718: t.beginColumn = input_stream.getBeginColumn();
719: t.endLine = input_stream.getEndLine();
720: t.endColumn = input_stream.getEndColumn();
721: return t;
722: }
723:
724: int curLexState = 0;
725: int defaultLexState = 0;
726: int jjnewStateCnt;
727: int jjround;
728: int jjmatchedPos;
729: int jjmatchedKind;
730:
731: public Token getNextToken() {
732: int kind;
733: Token specialToken = null;
734: Token matchedToken;
735: int curPos = 0;
736:
737: EOFLoop: for (;;) {
738: try {
739: curChar = input_stream.BeginToken();
740: } catch (java.io.IOException e) {
741: jjmatchedKind = 0;
742: matchedToken = jjFillToken();
743: return matchedToken;
744: }
745:
746: try {
747: input_stream.backup(0);
748: while (curChar <= 32
749: && (0x100000400L & (1L << curChar)) != 0L)
750: curChar = input_stream.BeginToken();
751: } catch (java.io.IOException e1) {
752: continue EOFLoop;
753: }
754: jjmatchedKind = 0x7fffffff;
755: jjmatchedPos = 0;
756: curPos = jjMoveStringLiteralDfa0_0();
757: if (jjmatchedKind != 0x7fffffff) {
758: if (jjmatchedPos + 1 < curPos)
759: input_stream.backup(curPos - jjmatchedPos - 1);
760: if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {
761: matchedToken = jjFillToken();
762: return matchedToken;
763: } else {
764: continue EOFLoop;
765: }
766: }
767: int error_line = input_stream.getEndLine();
768: int error_column = input_stream.getEndColumn();
769: String error_after = null;
770: boolean EOFSeen = false;
771: try {
772: input_stream.readChar();
773: input_stream.backup(1);
774: } catch (java.io.IOException e1) {
775: EOFSeen = true;
776: error_after = curPos <= 1 ? "" : input_stream
777: .GetImage();
778: if (curChar == '\n' || curChar == '\r') {
779: error_line++;
780: error_column = 0;
781: } else
782: error_column++;
783: }
784: if (!EOFSeen) {
785: input_stream.backup(1);
786: error_after = curPos <= 1 ? "" : input_stream
787: .GetImage();
788: }
789: throw new TokenMgrError(EOFSeen, curLexState, error_line,
790: error_column, error_after, curChar,
791: TokenMgrError.LEXICAL_ERROR);
792: }
793: }
794:
795: }
|