0001: /* Generated By:JavaCC: Do not edit this line. CPPParserTokenManager.java */
0002: package net.sourceforge.pmd.cpd.cppast;
0003:
0004: public class CPPParserTokenManager implements CPPParserConstants {
0005: private static String filename;
0006:
0007: public static void setFileName(String name) {
0008: filename = name;
0009: }
0010:
0011: public static String getFileName() {
0012: return filename;
0013: }
0014:
0015: public static java.io.PrintStream debugStream = System.out;
0016:
0017: public static void setDebugStream(java.io.PrintStream ds) {
0018: debugStream = ds;
0019: }
0020:
0021: private static final int jjStopStringLiteralDfa_0(int pos,
0022: long active0, long active1, long active2) {
0023: switch (pos) {
0024: case 0:
0025: if ((active1 & 0x3ffffffffffff0L) != 0L
0026: || (active2 & 0x40L) != 0L) {
0027: jjmatchedKind = 135;
0028: return 29;
0029: }
0030: if ((active0 & 0x40000000L) != 0L || (active1 & 0x5L) != 0L)
0031: return 1;
0032: return -1;
0033: case 1:
0034: if ((active1 & 0x3fffffffbf9ff0L) != 0L
0035: || (active2 & 0x40L) != 0L) {
0036: if (jjmatchedPos != 1) {
0037: jjmatchedKind = 135;
0038: jjmatchedPos = 1;
0039: }
0040: return 29;
0041: }
0042: if ((active1 & 0x406000L) != 0L)
0043: return 29;
0044: return -1;
0045: case 2:
0046: if ((active1 & 0x3ffbfffab7dff0L) != 0L
0047: || (active2 & 0x40L) != 0L) {
0048: jjmatchedKind = 135;
0049: jjmatchedPos = 2;
0050: return 29;
0051: }
0052: if ((active1 & 0x40005080000L) != 0L)
0053: return 29;
0054: return -1;
0055: case 3:
0056: if ((active1 & 0x3779fff8965ea0L) != 0L
0057: || (active2 & 0x40L) != 0L) {
0058: jjmatchedKind = 135;
0059: jjmatchedPos = 3;
0060: return 29;
0061: }
0062: if ((active1 & 0x8820002218150L) != 0L)
0063: return 29;
0064: return -1;
0065: case 4:
0066: if ((active1 & 0x569bdf8925c00L) != 0L
0067: || (active2 & 0x40L) != 0L) {
0068: jjmatchedKind = 135;
0069: jjmatchedPos = 4;
0070: return 29;
0071: }
0072: if ((active1 & 0x321042000402a0L) != 0L)
0073: return 29;
0074: return -1;
0075: case 5:
0076: if ((active1 & 0x56900d8000c00L) != 0L
0077: || (active2 & 0x40L) != 0L) {
0078: jjmatchedKind = 135;
0079: jjmatchedPos = 5;
0080: return 29;
0081: }
0082: if ((active1 & 0xbd20925000L) != 0L)
0083: return 29;
0084: return -1;
0085: case 6:
0086: if ((active1 & 0x52100d0000400L) != 0L) {
0087: jjmatchedKind = 135;
0088: jjmatchedPos = 6;
0089: return 29;
0090: }
0091: if ((active1 & 0x480008000800L) != 0L
0092: || (active2 & 0x40L) != 0L)
0093: return 29;
0094: return -1;
0095: case 7:
0096: if ((active1 & 0x50000000L) != 0L) {
0097: jjmatchedKind = 135;
0098: jjmatchedPos = 7;
0099: return 29;
0100: }
0101: if ((active1 & 0x5210080000400L) != 0L)
0102: return 29;
0103: return -1;
0104: case 8:
0105: if ((active1 & 0x40000000L) != 0L) {
0106: jjmatchedKind = 135;
0107: jjmatchedPos = 8;
0108: return 29;
0109: }
0110: if ((active1 & 0x10000000L) != 0L)
0111: return 29;
0112: return -1;
0113: default:
0114: return -1;
0115: }
0116: }
0117:
0118: private static final int jjStartNfa_0(int pos, long active0,
0119: long active1, long active2) {
0120: return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0,
0121: active1, active2), pos + 1);
0122: }
0123:
0124: static private final int jjStopAtPos(int pos, int kind) {
0125: jjmatchedKind = kind;
0126: jjmatchedPos = pos;
0127: return pos + 1;
0128: }
0129:
0130: static private final int jjStartNfaWithStates_0(int pos, int kind,
0131: int state) {
0132: jjmatchedKind = kind;
0133: jjmatchedPos = pos;
0134: try {
0135: curChar = input_stream.readChar();
0136: } catch (java.io.IOException e) {
0137: return pos + 1;
0138: }
0139: return jjMoveNfa_0(state, pos + 1);
0140: }
0141:
0142: static private final int jjMoveStringLiteralDfa0_0() {
0143: switch (curChar) {
0144: case 13:
0145: return jjMoveStringLiteralDfa1_0(0x10L, 0x0L, 0x0L);
0146: case 33:
0147: jjmatchedKind = 63;
0148: return jjMoveStringLiteralDfa1_0(0x1000000000000L, 0x0L,
0149: 0x0L);
0150: case 35:
0151: return jjStopAtPos(0, 8);
0152: case 37:
0153: jjmatchedKind = 59;
0154: return jjMoveStringLiteralDfa1_0(0x400000000L, 0x0L, 0x0L);
0155: case 38:
0156: jjmatchedKind = 46;
0157: return jjMoveStringLiteralDfa1_0(0x88000000000L, 0x0L, 0x0L);
0158: case 40:
0159: return jjStopAtPos(0, 23);
0160: case 41:
0161: return jjStopAtPos(0, 24);
0162: case 42:
0163: jjmatchedKind = 57;
0164: return jjMoveStringLiteralDfa1_0(0x100000000L, 0x0L, 0x0L);
0165: case 43:
0166: jjmatchedKind = 55;
0167: return jjMoveStringLiteralDfa1_0(0x1000000800000000L, 0x0L,
0168: 0x0L);
0169: case 44:
0170: return jjStopAtPos(0, 28);
0171: case 45:
0172: jjmatchedKind = 56;
0173: return jjMoveStringLiteralDfa1_0(0x2000001000000000L, 0xaL,
0174: 0x0L);
0175: case 46:
0176: jjmatchedKind = 64;
0177: return jjMoveStringLiteralDfa1_0(0x40000000L, 0x4L, 0x0L);
0178: case 47:
0179: jjmatchedKind = 58;
0180: return jjMoveStringLiteralDfa1_0(0x2000000c0L, 0x0L, 0x0L);
0181: case 58:
0182: jjmatchedKind = 26;
0183: return jjMoveStringLiteralDfa1_0(0x2000000L, 0x0L, 0x0L);
0184: case 59:
0185: return jjStopAtPos(0, 27);
0186: case 60:
0187: jjmatchedKind = 49;
0188: return jjMoveStringLiteralDfa1_0(0x28002000000000L, 0x0L,
0189: 0x0L);
0190: case 61:
0191: jjmatchedKind = 31;
0192: return jjMoveStringLiteralDfa1_0(0x800000000000L, 0x0L,
0193: 0x0L);
0194: case 62:
0195: jjmatchedKind = 50;
0196: return jjMoveStringLiteralDfa1_0(0x50004000000000L, 0x0L,
0197: 0x0L);
0198: case 63:
0199: return jjStopAtPos(0, 29);
0200: case 91:
0201: return jjStopAtPos(0, 21);
0202: case 93:
0203: return jjStopAtPos(0, 22);
0204: case 94:
0205: jjmatchedKind = 45;
0206: return jjMoveStringLiteralDfa1_0(0x10000000000L, 0x0L, 0x0L);
0207: case 97:
0208: return jjMoveStringLiteralDfa1_0(0x0L, 0x10L, 0x0L);
0209: case 98:
0210: return jjMoveStringLiteralDfa1_0(0x0L, 0x20L, 0x0L);
0211: case 99:
0212: return jjMoveStringLiteralDfa1_0(0x0L, 0x40000007c0L, 0x0L);
0213: case 100:
0214: return jjMoveStringLiteralDfa1_0(0x0L, 0x7800L, 0x0L);
0215: case 101:
0216: return jjMoveStringLiteralDfa1_0(0x0L, 0x38000L, 0x0L);
0217: case 102:
0218: return jjMoveStringLiteralDfa1_0(0x0L, 0x100000001c0000L,
0219: 0x40L);
0220: case 103:
0221: return jjMoveStringLiteralDfa1_0(0x0L, 0x200000L, 0x0L);
0222: case 105:
0223: return jjMoveStringLiteralDfa1_0(0x0L, 0x1c00000L, 0x0L);
0224: case 108:
0225: return jjMoveStringLiteralDfa1_0(0x0L, 0x2000000L, 0x0L);
0226: case 110:
0227: return jjMoveStringLiteralDfa1_0(0x0L, 0x4000000L, 0x0L);
0228: case 111:
0229: return jjMoveStringLiteralDfa1_0(0x0L, 0x4000000000000L,
0230: 0x0L);
0231: case 112:
0232: return jjMoveStringLiteralDfa1_0(0x0L, 0x38000000L, 0x0L);
0233: case 114:
0234: return jjMoveStringLiteralDfa1_0(0x0L, 0x1c0000000L, 0x0L);
0235: case 115:
0236: return jjMoveStringLiteralDfa1_0(0x0L, 0xbe00000000L, 0x0L);
0237: case 116:
0238: return jjMoveStringLiteralDfa1_0(0x0L, 0x280f0000000000L,
0239: 0x0L);
0240: case 117:
0241: return jjMoveStringLiteralDfa1_0(0x0L, 0x300000000000L,
0242: 0x0L);
0243: case 118:
0244: return jjMoveStringLiteralDfa1_0(0x0L, 0x1c00000000000L,
0245: 0x0L);
0246: case 119:
0247: return jjMoveStringLiteralDfa1_0(0x0L, 0x2000000000000L,
0248: 0x0L);
0249: case 123:
0250: return jjStopAtPos(0, 19);
0251: case 124:
0252: jjmatchedKind = 44;
0253: return jjMoveStringLiteralDfa1_0(0x60000000000L, 0x0L, 0x0L);
0254: case 125:
0255: return jjStopAtPos(0, 20);
0256: case 126:
0257: return jjStopAtPos(0, 62);
0258: default:
0259: return jjMoveNfa_0(28, 0);
0260: }
0261: }
0262:
0263: static private final int jjMoveStringLiteralDfa1_0(long active0,
0264: long active1, long active2) {
0265: try {
0266: curChar = input_stream.readChar();
0267: } catch (java.io.IOException e) {
0268: jjStopStringLiteralDfa_0(0, active0, active1, active2);
0269: return 1;
0270: }
0271: switch (curChar) {
0272: case 10:
0273: if ((active0 & 0x10L) != 0L)
0274: return jjStopAtPos(1, 4);
0275: break;
0276: case 38:
0277: if ((active0 & 0x80000000000L) != 0L)
0278: return jjStopAtPos(1, 43);
0279: break;
0280: case 42:
0281: if ((active0 & 0x80L) != 0L)
0282: return jjStopAtPos(1, 7);
0283: else if ((active1 & 0x4L) != 0L)
0284: return jjStopAtPos(1, 66);
0285: break;
0286: case 43:
0287: if ((active0 & 0x1000000000000000L) != 0L)
0288: return jjStopAtPos(1, 60);
0289: break;
0290: case 45:
0291: if ((active0 & 0x2000000000000000L) != 0L)
0292: return jjStopAtPos(1, 61);
0293: break;
0294: case 46:
0295: return jjMoveStringLiteralDfa2_0(active0, 0x40000000L,
0296: active1, 0L, active2, 0L);
0297: case 47:
0298: if ((active0 & 0x40L) != 0L)
0299: return jjStopAtPos(1, 6);
0300: break;
0301: case 58:
0302: if ((active0 & 0x2000000L) != 0L)
0303: return jjStopAtPos(1, 25);
0304: break;
0305: case 60:
0306: if ((active0 & 0x20000000000000L) != 0L) {
0307: jjmatchedKind = 53;
0308: jjmatchedPos = 1;
0309: }
0310: return jjMoveStringLiteralDfa2_0(active0, 0x2000000000L,
0311: active1, 0L, active2, 0L);
0312: case 61:
0313: if ((active0 & 0x100000000L) != 0L)
0314: return jjStopAtPos(1, 32);
0315: else if ((active0 & 0x200000000L) != 0L)
0316: return jjStopAtPos(1, 33);
0317: else if ((active0 & 0x400000000L) != 0L)
0318: return jjStopAtPos(1, 34);
0319: else if ((active0 & 0x800000000L) != 0L)
0320: return jjStopAtPos(1, 35);
0321: else if ((active0 & 0x1000000000L) != 0L)
0322: return jjStopAtPos(1, 36);
0323: else if ((active0 & 0x8000000000L) != 0L)
0324: return jjStopAtPos(1, 39);
0325: else if ((active0 & 0x10000000000L) != 0L)
0326: return jjStopAtPos(1, 40);
0327: else if ((active0 & 0x20000000000L) != 0L)
0328: return jjStopAtPos(1, 41);
0329: else if ((active0 & 0x800000000000L) != 0L)
0330: return jjStopAtPos(1, 47);
0331: else if ((active0 & 0x1000000000000L) != 0L)
0332: return jjStopAtPos(1, 48);
0333: else if ((active0 & 0x8000000000000L) != 0L)
0334: return jjStopAtPos(1, 51);
0335: else if ((active0 & 0x10000000000000L) != 0L)
0336: return jjStopAtPos(1, 52);
0337: break;
0338: case 62:
0339: if ((active0 & 0x40000000000000L) != 0L) {
0340: jjmatchedKind = 54;
0341: jjmatchedPos = 1;
0342: } else if ((active1 & 0x2L) != 0L) {
0343: jjmatchedKind = 65;
0344: jjmatchedPos = 1;
0345: }
0346: return jjMoveStringLiteralDfa2_0(active0, 0x4000000000L,
0347: active1, 0x8L, active2, 0L);
0348: case 97:
0349: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0350: 0x100000000000c0L, active2, 0L);
0351: case 101:
0352: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0353: 0x101c4001800L, active2, 0L);
0354: case 102:
0355: if ((active1 & 0x400000L) != 0L)
0356: return jjStartNfaWithStates_0(1, 86, 29);
0357: break;
0358: case 104:
0359: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0360: 0x22020200000100L, active2, 0L);
0361: case 105:
0362: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0363: 0x400c00000000L, active2, 0x40L);
0364: case 108:
0365: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0366: 0x4000048000L, active2, 0L);
0367: case 110:
0368: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0369: 0x300001810000L, active2, 0L);
0370: case 111:
0371: if ((active1 & 0x2000L) != 0L) {
0372: jjmatchedKind = 77;
0373: jjmatchedPos = 1;
0374: }
0375: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0376: 0x1800002284600L, active2, 0L);
0377: case 112:
0378: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0379: 0x4000000000000L, active2, 0L);
0380: case 114:
0381: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0382: 0x8040018100020L, active2, 0L);
0383: case 116:
0384: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0385: 0x3000000000L, active2, 0L);
0386: case 117:
0387: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0388: 0x20000010L, active2, 0L);
0389: case 119:
0390: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0391: 0x8000000000L, active2, 0L);
0392: case 120:
0393: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0394: 0x20000L, active2, 0L);
0395: case 121:
0396: return jjMoveStringLiteralDfa2_0(active0, 0L, active1,
0397: 0x80000000000L, active2, 0L);
0398: case 124:
0399: if ((active0 & 0x40000000000L) != 0L)
0400: return jjStopAtPos(1, 42);
0401: break;
0402: default:
0403: break;
0404: }
0405: return jjStartNfa_0(0, active0, active1, active2);
0406: }
0407:
0408: static private final int jjMoveStringLiteralDfa2_0(long old0,
0409: long active0, long old1, long active1, long old2,
0410: long active2) {
0411: if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
0412: return jjStartNfa_0(0, old0, old1, old2);
0413: try {
0414: curChar = input_stream.readChar();
0415: } catch (java.io.IOException e) {
0416: jjStopStringLiteralDfa_0(1, active0, active1, active2);
0417: return 2;
0418: }
0419: switch (curChar) {
0420: case 42:
0421: if ((active1 & 0x8L) != 0L)
0422: return jjStopAtPos(2, 67);
0423: break;
0424: case 46:
0425: if ((active0 & 0x40000000L) != 0L)
0426: return jjStopAtPos(2, 30);
0427: break;
0428: case 61:
0429: if ((active0 & 0x2000000000L) != 0L)
0430: return jjStopAtPos(2, 37);
0431: else if ((active0 & 0x4000000000L) != 0L)
0432: return jjStopAtPos(2, 38);
0433: break;
0434: case 97:
0435: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0436: 0x5000000100L, active2, 0L);
0437: case 98:
0438: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0439: 0x20000000L, active2, 0L);
0440: case 100:
0441: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0442: 0x40000000L, active2, 0L);
0443: case 101:
0444: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0445: 0x4000000000020L, active2, 0L);
0446: case 102:
0447: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0448: 0x800L, active2, 0L);
0449: case 103:
0450: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0451: 0x480000000L, active2, 0L);
0452: case 105:
0453: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0454: 0x2928008100000L, active2, 0L);
0455: case 108:
0456: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0457: 0x11000000801000L, active2, 0L);
0458: case 109:
0459: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0460: 0x10000000000L, active2, 0L);
0461: case 110:
0462: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0463: 0x2000600L, active2, 0x40L);
0464: case 111:
0465: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0466: 0x210040000L, active2, 0L);
0467: case 112:
0468: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0469: 0x80000000000L, active2, 0L);
0470: case 114:
0471: if ((active1 & 0x80000L) != 0L)
0472: return jjStartNfaWithStates_0(2, 83, 29);
0473: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0474: 0x20402000000000L, active2, 0L);
0475: case 115:
0476: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0477: 0x200000008040L, active2, 0L);
0478: case 116:
0479: if ((active1 & 0x1000000L) != 0L)
0480: return jjStartNfaWithStates_0(2, 88, 29);
0481: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0482: 0x100220090L, active2, 0L);
0483: case 117:
0484: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0485: 0x8000000014000L, active2, 0L);
0486: case 119:
0487: if ((active1 & 0x4000000L) != 0L)
0488: return jjStartNfaWithStates_0(2, 90, 29);
0489: break;
0490: case 121:
0491: if ((active1 & 0x40000000000L) != 0L)
0492: return jjStartNfaWithStates_0(2, 106, 29);
0493: break;
0494: case 122:
0495: return jjMoveStringLiteralDfa3_0(active0, 0L, active1,
0496: 0x800000000L, active2, 0L);
0497: default:
0498: break;
0499: }
0500: return jjStartNfa_0(1, active0, active1, active2);
0501: }
0502:
0503: static private final int jjMoveStringLiteralDfa3_0(long old0,
0504: long active0, long old1, long active1, long old2,
0505: long active2) {
0506: if (((active0 &= old0) | (active1 &= old1) | (active2 &= old2)) == 0L)
0507: return jjStartNfa_0(1, old0, old1, old2);
0508: try {
0509: curChar = input_stream.readChar();
0510: } catch (java.io.IOException e) {
0511: jjStopStringLiteralDfa_0(2, 0L, active1, active2);
0512: return 3;
0513: }
0514: switch (curChar) {
0515: case 97:
0516: return jjMoveStringLiteralDfa4_0(active1, 0x1000000040820L,
0517: active2, 0x40L);
0518: case 98:
0519: return jjMoveStringLiteralDfa4_0(active1, 0x4000L, active2,
0520: 0L);
0521: case 99:
0522: return jjMoveStringLiteralDfa4_0(active1, 0x80L, active2,
0523: 0L);
0524: case 100:
0525: if ((active1 & 0x800000000000L) != 0L)
0526: return jjStartNfaWithStates_0(3, 111, 29);
0527: break;
0528: case 101:
0529: if ((active1 & 0x40L) != 0L)
0530: return jjStartNfaWithStates_0(3, 70, 29);
0531: else if ((active1 & 0x8000L) != 0L)
0532: return jjStartNfaWithStates_0(3, 79, 29);
0533: else if ((active1 & 0x8000000000000L) != 0L)
0534: return jjStartNfaWithStates_0(3, 115, 29);
0535: return jjMoveStringLiteralDfa4_0(active1, 0x80840121000L,
0536: active2, 0L);
0537: case 103:
0538: if ((active1 & 0x2000000L) != 0L)
0539: return jjStartNfaWithStates_0(3, 89, 29);
0540: break;
0541: case 105:
0542: return jjMoveStringLiteralDfa4_0(active1, 0x200080800000L,
0543: active2, 0L);
0544: case 108:
0545: return jjMoveStringLiteralDfa4_0(active1, 0x2000020000000L,
0546: active2, 0L);
0547: case 109:
0548: if ((active1 & 0x10000L) != 0L)
0549: return jjStartNfaWithStates_0(3, 80, 29);
0550: break;
0551: case 110:
0552: return jjMoveStringLiteralDfa4_0(active1, 0x400000000L,
0553: active2, 0L);
0554: case 111:
0555: if ((active1 & 0x10L) != 0L)
0556: return jjStartNfaWithStates_0(3, 68, 29);
0557: else if ((active1 & 0x200000L) != 0L)
0558: return jjStartNfaWithStates_0(3, 85, 29);
0559: return jjMoveStringLiteralDfa4_0(active1,
0560: 0x20100000000000L, active2, 0L);
0561: case 112:
0562: return jjMoveStringLiteralDfa4_0(active1, 0x10000000000L,
0563: active2, 0L);
0564: case 114:
0565: if ((active1 & 0x100L) != 0L)
0566: return jjStartNfaWithStates_0(3, 72, 29);
0567: return jjMoveStringLiteralDfa4_0(active1, 0x4000200000000L,
0568: active2, 0L);
0569: case 115:
0570: if ((active1 & 0x20000000000L) != 0L)
0571: return jjStartNfaWithStates_0(3, 105, 29);
0572: return jjMoveStringLiteralDfa4_0(active1,
0573: 0x10004000000200L, active2, 0L);
0574: case 116:
0575: return jjMoveStringLiteralDfa4_0(active1, 0x409010000400L,
0576: active2, 0L);
0577: case 117:
0578: return jjMoveStringLiteralDfa4_0(active1, 0x2100000000L,
0579: active2, 0L);
0580: case 118:
0581: return jjMoveStringLiteralDfa4_0(active1, 0x8000000L,
0582: active2, 0L);
0583: default:
0584: break;
0585: }
0586: return jjStartNfa_0(2, 0L, active1, active2);
0587: }
0588:
0589: static private final int jjMoveStringLiteralDfa4_0(long old1,
0590: long active1, long old2, long active2) {
0591: if (((active1 &= old1) | (active2 &= old2)) == 0L)
0592: return jjStartNfa_0(2, 0L, old1, old2);
0593: try {
0594: curChar = input_stream.readChar();
0595: } catch (java.io.IOException e) {
0596: jjStopStringLiteralDfa_0(3, 0L, active1, active2);
0597: return 4;
0598: }
0599: switch (curChar) {
0600: case 97:
0601: return jjMoveStringLiteralDfa5_0(active1, 0x4000008000000L,
0602: active2, 0L);
0603: case 99:
0604: return jjMoveStringLiteralDfa5_0(active1, 0xa040000000L,
0605: active2, 0L);
0606: case 100:
0607: return jjMoveStringLiteralDfa5_0(active1, 0x80000000000L,
0608: active2, 0L);
0609: case 101:
0610: if ((active1 & 0x2000000000000L) != 0L)
0611: return jjStartNfaWithStates_0(4, 113, 29);
0612: else if ((active1 & 0x10000000000000L) != 0L)
0613: return jjStartNfaWithStates_0(4, 116, 29);
0614: return jjMoveStringLiteralDfa5_0(active1, 0x410000000L,
0615: active2, 0L);
0616: case 103:
0617: return jjMoveStringLiteralDfa5_0(active1, 0x200000000000L,
0618: active2, 0L);
0619: case 104:
0620: if ((active1 & 0x80L) != 0L)
0621: return jjStartNfaWithStates_0(4, 71, 29);
0622: break;
0623: case 105:
0624: return jjMoveStringLiteralDfa5_0(active1, 0x1020000400L,
0625: active2, 0L);
0626: case 107:
0627: if ((active1 & 0x20L) != 0L)
0628: return jjStartNfaWithStates_0(4, 69, 29);
0629: break;
0630: case 108:
0631: return jjMoveStringLiteralDfa5_0(active1, 0x10000004000L,
0632: active2, 0x40L);
0633: case 110:
0634: if ((active1 & 0x100000000000L) != 0L)
0635: return jjStartNfaWithStates_0(4, 108, 29);
0636: return jjMoveStringLiteralDfa5_0(active1, 0x900000L,
0637: active2, 0L);
0638: case 111:
0639: return jjMoveStringLiteralDfa5_0(active1, 0x800000000L,
0640: active2, 0L);
0641: case 114:
0642: return jjMoveStringLiteralDfa5_0(active1, 0x100020000L,
0643: active2, 0L);
0644: case 115:
0645: if ((active1 & 0x4000000000L) != 0L)
0646: return jjStartNfaWithStates_0(4, 102, 29);
0647: return jjMoveStringLiteralDfa5_0(active1, 0x80000000L,
0648: active2, 0L);
0649: case 116:
0650: if ((active1 & 0x200L) != 0L)
0651: return jjStartNfaWithStates_0(4, 73, 29);
0652: else if ((active1 & 0x40000L) != 0L)
0653: return jjStartNfaWithStates_0(4, 82, 29);
0654: else if ((active1 & 0x200000000L) != 0L)
0655: return jjStartNfaWithStates_0(4, 97, 29);
0656: return jjMoveStringLiteralDfa5_0(active1, 0x1000000001000L,
0657: active2, 0L);
0658: case 117:
0659: return jjMoveStringLiteralDfa5_0(active1, 0x400000000800L,
0660: active2, 0L);
0661: case 119:
0662: if ((active1 & 0x20000000000000L) != 0L)
0663: return jjStartNfaWithStates_0(4, 117, 29);
0664: break;
0665: default:
0666: break;
0667: }
0668: return jjStartNfa_0(3, 0L, active1, active2);
0669: }
0670:
0671: static private final int jjMoveStringLiteralDfa5_0(long old1,
0672: long active1, long old2, long active2) {
0673: if (((active1 &= old1) | (active2 &= old2)) == 0L)
0674: return jjStartNfa_0(3, 0L, old1, old2);
0675: try {
0676: curChar = input_stream.readChar();
0677: } catch (java.io.IOException e) {
0678: jjStopStringLiteralDfa_0(4, 0L, active1, active2);
0679: return 5;
0680: }
0681: switch (curChar) {
0682: case 97:
0683: return jjMoveStringLiteralDfa6_0(active1, 0x410000000000L,
0684: active2, 0L);
0685: case 99:
0686: if ((active1 & 0x20000000L) != 0L)
0687: return jjStartNfaWithStates_0(5, 93, 29);
0688: else if ((active1 & 0x1000000000L) != 0L)
0689: return jjStartNfaWithStates_0(5, 100, 29);
0690: return jjMoveStringLiteralDfa6_0(active1, 0x10000000L,
0691: active2, 0L);
0692: case 100:
0693: if ((active1 & 0x100000L) != 0L)
0694: return jjStartNfaWithStates_0(5, 84, 29);
0695: else if ((active1 & 0x400000000L) != 0L)
0696: return jjStartNfaWithStates_0(5, 98, 29);
0697: break;
0698: case 101:
0699: if ((active1 & 0x1000L) != 0L)
0700: return jjStartNfaWithStates_0(5, 76, 29);
0701: else if ((active1 & 0x4000L) != 0L)
0702: return jjStartNfaWithStates_0(5, 78, 29);
0703: else if ((active1 & 0x800000L) != 0L)
0704: return jjStartNfaWithStates_0(5, 87, 29);
0705: return jjMoveStringLiteralDfa6_0(active1, 0x80000000000L,
0706: active2, 0L);
0707: case 102:
0708: if ((active1 & 0x800000000L) != 0L)
0709: return jjStartNfaWithStates_0(5, 99, 29);
0710: break;
0711: case 104:
0712: if ((active1 & 0x8000000000L) != 0L)
0713: return jjStartNfaWithStates_0(5, 103, 29);
0714: break;
0715: case 105:
0716: return jjMoveStringLiteralDfa6_0(active1, 0x1000000000000L,
0717: active2, 0L);
0718: case 108:
0719: return jjMoveStringLiteralDfa6_0(active1, 0x40000800L,
0720: active2, 0x40L);
0721: case 110:
0722: if ((active1 & 0x20000L) != 0L)
0723: return jjStartNfaWithStates_0(5, 81, 29);
0724: else if ((active1 & 0x100000000L) != 0L)
0725: return jjStartNfaWithStates_0(5, 96, 29);
0726: return jjMoveStringLiteralDfa6_0(active1, 0x200000000400L,
0727: active2, 0L);
0728: case 116:
0729: if ((active1 & 0x2000000000L) != 0L)
0730: return jjStartNfaWithStates_0(5, 101, 29);
0731: return jjMoveStringLiteralDfa6_0(active1, 0x4000088000000L,
0732: active2, 0L);
0733: default:
0734: break;
0735: }
0736: return jjStartNfa_0(4, 0L, active1, active2);
0737: }
0738:
0739: static private final int jjMoveStringLiteralDfa6_0(long old1,
0740: long active1, long old2, long active2) {
0741: if (((active1 &= old1) | (active2 &= old2)) == 0L)
0742: return jjStartNfa_0(4, 0L, old1, old2);
0743: try {
0744: curChar = input_stream.readChar();
0745: } catch (java.io.IOException e) {
0746: jjStopStringLiteralDfa_0(5, 0L, active1, active2);
0747: return 6;
0748: }
0749: switch (curChar) {
0750: case 97:
0751: return jjMoveStringLiteralDfa7_0(active1, 0x40000000L,
0752: active2, 0L);
0753: case 101:
0754: if ((active1 & 0x8000000L) != 0L)
0755: return jjStartNfaWithStates_0(6, 91, 29);
0756: return jjMoveStringLiteralDfa7_0(active1, 0x200080000000L,
0757: active2, 0L);
0758: case 102:
0759: if ((active1 & 0x80000000000L) != 0L)
0760: return jjStartNfaWithStates_0(6, 107, 29);
0761: break;
0762: case 108:
0763: if ((active1 & 0x400000000000L) != 0L)
0764: return jjStartNfaWithStates_0(6, 110, 29);
0765: return jjMoveStringLiteralDfa7_0(active1, 0x1000000000000L,
0766: active2, 0L);
0767: case 111:
0768: return jjMoveStringLiteralDfa7_0(active1, 0x4000000000000L,
0769: active2, 0L);
0770: case 116:
0771: if ((active1 & 0x800L) != 0L)
0772: return jjStartNfaWithStates_0(6, 75, 29);
0773: return jjMoveStringLiteralDfa7_0(active1, 0x10010000000L,
0774: active2, 0L);
0775: case 117:
0776: return jjMoveStringLiteralDfa7_0(active1, 0x400L, active2,
0777: 0L);
0778: case 121:
0779: if ((active2 & 0x40L) != 0L)
0780: return jjStartNfaWithStates_0(6, 134, 29);
0781: break;
0782: default:
0783: break;
0784: }
0785: return jjStartNfa_0(5, 0L, active1, active2);
0786: }
0787:
0788: static private final int jjMoveStringLiteralDfa7_0(long old1,
0789: long active1, long old2, long active2) {
0790: if (((active1 &= old1) | (active2 &= old2)) == 0L)
0791: return jjStartNfa_0(5, 0L, old1, old2);
0792: try {
0793: curChar = input_stream.readChar();
0794: } catch (java.io.IOException e) {
0795: jjStopStringLiteralDfa_0(6, 0L, active1, 0L);
0796: return 7;
0797: }
0798: switch (curChar) {
0799: case 100:
0800: if ((active1 & 0x200000000000L) != 0L)
0801: return jjStartNfaWithStates_0(7, 109, 29);
0802: break;
0803: case 101:
0804: if ((active1 & 0x400L) != 0L)
0805: return jjStartNfaWithStates_0(7, 74, 29);
0806: else if ((active1 & 0x10000000000L) != 0L)
0807: return jjStartNfaWithStates_0(7, 104, 29);
0808: else if ((active1 & 0x1000000000000L) != 0L)
0809: return jjStartNfaWithStates_0(7, 112, 29);
0810: return jjMoveStringLiteralDfa8_0(active1, 0x10000000L);
0811: case 114:
0812: if ((active1 & 0x80000000L) != 0L)
0813: return jjStartNfaWithStates_0(7, 95, 29);
0814: else if ((active1 & 0x4000000000000L) != 0L)
0815: return jjStartNfaWithStates_0(7, 114, 29);
0816: return jjMoveStringLiteralDfa8_0(active1, 0x40000000L);
0817: default:
0818: break;
0819: }
0820: return jjStartNfa_0(6, 0L, active1, 0L);
0821: }
0822:
0823: static private final int jjMoveStringLiteralDfa8_0(long old1,
0824: long active1) {
0825: if (((active1 &= old1)) == 0L)
0826: return jjStartNfa_0(6, 0L, old1, 0L);
0827: try {
0828: curChar = input_stream.readChar();
0829: } catch (java.io.IOException e) {
0830: jjStopStringLiteralDfa_0(7, 0L, active1, 0L);
0831: return 8;
0832: }
0833: switch (curChar) {
0834: case 100:
0835: if ((active1 & 0x10000000L) != 0L)
0836: return jjStartNfaWithStates_0(8, 92, 29);
0837: break;
0838: case 101:
0839: return jjMoveStringLiteralDfa9_0(active1, 0x40000000L);
0840: default:
0841: break;
0842: }
0843: return jjStartNfa_0(7, 0L, active1, 0L);
0844: }
0845:
0846: static private final int jjMoveStringLiteralDfa9_0(long old1,
0847: long active1) {
0848: if (((active1 &= old1)) == 0L)
0849: return jjStartNfa_0(7, 0L, old1, 0L);
0850: try {
0851: curChar = input_stream.readChar();
0852: } catch (java.io.IOException e) {
0853: jjStopStringLiteralDfa_0(8, 0L, active1, 0L);
0854: return 9;
0855: }
0856: switch (curChar) {
0857: case 100:
0858: if ((active1 & 0x40000000L) != 0L)
0859: return jjStartNfaWithStates_0(9, 94, 29);
0860: break;
0861: default:
0862: break;
0863: }
0864: return jjStartNfa_0(8, 0L, active1, 0L);
0865: }
0866:
0867: static private final void jjCheckNAdd(int state) {
0868: if (jjrounds[state] != jjround) {
0869: jjstateSet[jjnewStateCnt++] = state;
0870: jjrounds[state] = jjround;
0871: }
0872: }
0873:
0874: static private final void jjAddStates(int start, int end) {
0875: do {
0876: jjstateSet[jjnewStateCnt++] = jjnextStates[start];
0877: } while (start++ != end);
0878: }
0879:
0880: static private final void jjCheckNAddTwoStates(int state1,
0881: int state2) {
0882: jjCheckNAdd(state1);
0883: jjCheckNAdd(state2);
0884: }
0885:
0886: static private final void jjCheckNAddStates(int start, int end) {
0887: do {
0888: jjCheckNAdd(jjnextStates[start]);
0889: } while (start++ != end);
0890: }
0891:
0892: static private final void jjCheckNAddStates(int start) {
0893: jjCheckNAdd(jjnextStates[start]);
0894: jjCheckNAdd(jjnextStates[start + 1]);
0895: }
0896:
0897: static final long[] jjbitVec0 = { 0x0L, 0x0L, 0xffffffffffffffffL,
0898: 0xffffffffffffffffL };
0899:
0900: static private final int jjMoveNfa_0(int startState, int curPos) {
0901: int[] nextStates;
0902: int startsAt = 0;
0903: jjnewStateCnt = 78;
0904: int i = 1;
0905: jjstateSet[0] = startState;
0906: int j, kind = 0x7fffffff;
0907: for (;;) {
0908: if (++jjround == 0x7fffffff)
0909: ReInitRounds();
0910: if (curChar < 64) {
0911: long l = 1L << curChar;
0912: MatchLoop: do {
0913: switch (jjstateSet[--i]) {
0914: case 28:
0915: if ((0x3ff000000000000L & l) != 0L)
0916: jjCheckNAddStates(0, 5);
0917: else if (curChar == 36) {
0918: if (kind > 135)
0919: kind = 135;
0920: jjCheckNAdd(29);
0921: } else if (curChar == 34)
0922: jjCheckNAddStates(6, 8);
0923: else if (curChar == 39)
0924: jjCheckNAddTwoStates(7, 9);
0925: else if (curChar == 46)
0926: jjCheckNAdd(1);
0927: if ((0x3fe000000000000L & l) != 0L) {
0928: if (kind > 122)
0929: kind = 122;
0930: jjCheckNAddStates(9, 16);
0931: } else if (curChar == 48)
0932: jjAddStates(17, 20);
0933: if (curChar == 48) {
0934: if (kind > 118)
0935: kind = 118;
0936: jjCheckNAddStates(21, 28);
0937: }
0938: break;
0939: case 0:
0940: if (curChar == 46)
0941: jjCheckNAdd(1);
0942: break;
0943: case 1:
0944: if ((0x3ff000000000000L & l) == 0L)
0945: break;
0946: if (kind > 130)
0947: kind = 130;
0948: jjCheckNAddStates(29, 31);
0949: break;
0950: case 3:
0951: if ((0x280000000000L & l) != 0L)
0952: jjCheckNAdd(4);
0953: break;
0954: case 4:
0955: if ((0x3ff000000000000L & l) == 0L)
0956: break;
0957: if (kind > 130)
0958: kind = 130;
0959: jjCheckNAddTwoStates(4, 5);
0960: break;
0961: case 6:
0962: if (curChar == 39)
0963: jjCheckNAddTwoStates(7, 9);
0964: break;
0965: case 7:
0966: if ((0xffffff7fffffdbffL & l) != 0L)
0967: jjCheckNAddTwoStates(7, 8);
0968: break;
0969: case 8:
0970: if (curChar == 39 && kind > 132)
0971: kind = 132;
0972: break;
0973: case 10:
0974: if ((0x8000008400000000L & l) != 0L)
0975: jjCheckNAdd(8);
0976: break;
0977: case 11:
0978: if (curChar == 48)
0979: jjCheckNAddTwoStates(12, 8);
0980: break;
0981: case 12:
0982: if ((0xff000000000000L & l) != 0L)
0983: jjCheckNAddTwoStates(12, 8);
0984: break;
0985: case 13:
0986: if ((0x3fe000000000000L & l) != 0L)
0987: jjCheckNAddTwoStates(14, 8);
0988: break;
0989: case 14:
0990: if ((0x3ff000000000000L & l) != 0L)
0991: jjCheckNAddTwoStates(14, 8);
0992: break;
0993: case 16:
0994: if ((0x3ff000000000000L & l) != 0L)
0995: jjCheckNAddTwoStates(16, 8);
0996: break;
0997: case 17:
0998: if (curChar == 34)
0999: jjCheckNAddStates(6, 8);
1000: break;
1001: case 18:
1002: if ((0xfffffffbffffdbffL & l) != 0L)
1003: jjCheckNAddStates(6, 8);
1004: break;
1005: case 20:
1006: if ((0x8000008400000400L & l) != 0L)
1007: jjCheckNAddStates(6, 8);
1008: break;
1009: case 21:
1010: if (curChar == 34 && kind > 133)
1011: kind = 133;
1012: break;
1013: case 22:
1014: if (curChar == 48)
1015: jjCheckNAddStates(32, 35);
1016: break;
1017: case 23:
1018: if ((0xff000000000000L & l) != 0L)
1019: jjCheckNAddStates(32, 35);
1020: break;
1021: case 24:
1022: if ((0x3fe000000000000L & l) != 0L)
1023: jjCheckNAddStates(36, 39);
1024: break;
1025: case 25:
1026: if ((0x3ff000000000000L & l) != 0L)
1027: jjCheckNAddStates(36, 39);
1028: break;
1029: case 27:
1030: if ((0x3ff000000000000L & l) != 0L)
1031: jjCheckNAddStates(40, 43);
1032: break;
1033: case 29:
1034: if ((0x3ff001000000000L & l) == 0L)
1035: break;
1036: if (kind > 135)
1037: kind = 135;
1038: jjCheckNAdd(29);
1039: break;
1040: case 30:
1041: if (curChar != 48)
1042: break;
1043: if (kind > 118)
1044: kind = 118;
1045: jjCheckNAddStates(21, 28);
1046: break;
1047: case 31:
1048: if ((0xff000000000000L & l) == 0L)
1049: break;
1050: if (kind > 118)
1051: kind = 118;
1052: jjCheckNAdd(31);
1053: break;
1054: case 32:
1055: if ((0xff000000000000L & l) != 0L)
1056: jjCheckNAddTwoStates(32, 33);
1057: break;
1058: case 34:
1059: if ((0xff000000000000L & l) != 0L)
1060: jjCheckNAddTwoStates(34, 35);
1061: break;
1062: case 36:
1063: if ((0xff000000000000L & l) != 0L)
1064: jjCheckNAddStates(44, 46);
1065: break;
1066: case 41:
1067: if ((0x3fe000000000000L & l) == 0L)
1068: break;
1069: if (kind > 122)
1070: kind = 122;
1071: jjCheckNAddStates(9, 16);
1072: break;
1073: case 42:
1074: if ((0x3ff000000000000L & l) == 0L)
1075: break;
1076: if (kind > 122)
1077: kind = 122;
1078: jjCheckNAdd(42);
1079: break;
1080: case 43:
1081: if ((0x3ff000000000000L & l) != 0L)
1082: jjCheckNAddTwoStates(43, 44);
1083: break;
1084: case 45:
1085: if ((0x3ff000000000000L & l) != 0L)
1086: jjCheckNAddTwoStates(45, 46);
1087: break;
1088: case 47:
1089: if ((0x3ff000000000000L & l) != 0L)
1090: jjCheckNAddStates(47, 49);
1091: break;
1092: case 52:
1093: if (curChar == 48)
1094: jjAddStates(17, 20);
1095: break;
1096: case 54:
1097: if ((0x3ff000000000000L & l) == 0L)
1098: break;
1099: if (kind > 126)
1100: kind = 126;
1101: jjstateSet[jjnewStateCnt++] = 54;
1102: break;
1103: case 56:
1104: if ((0x3ff000000000000L & l) == 0L)
1105: break;
1106: if (kind > 127)
1107: kind = 127;
1108: jjAddStates(50, 51);
1109: break;
1110: case 59:
1111: if ((0x3ff000000000000L & l) != 0L)
1112: jjAddStates(52, 53);
1113: break;
1114: case 62:
1115: if ((0x3ff000000000000L & l) != 0L)
1116: jjAddStates(54, 56);
1117: break;
1118: case 67:
1119: if ((0x3ff000000000000L & l) != 0L)
1120: jjCheckNAddStates(0, 5);
1121: break;
1122: case 68:
1123: if ((0x3ff000000000000L & l) != 0L)
1124: jjCheckNAddTwoStates(68, 69);
1125: break;
1126: case 69:
1127: if (curChar != 46)
1128: break;
1129: if (kind > 130)
1130: kind = 130;
1131: jjCheckNAddStates(57, 59);
1132: break;
1133: case 70:
1134: if ((0x3ff000000000000L & l) == 0L)
1135: break;
1136: if (kind > 130)
1137: kind = 130;
1138: jjCheckNAddStates(57, 59);
1139: break;
1140: case 71:
1141: if ((0x3ff000000000000L & l) != 0L)
1142: jjCheckNAddTwoStates(71, 0);
1143: break;
1144: case 72:
1145: if ((0x3ff000000000000L & l) != 0L)
1146: jjCheckNAddTwoStates(72, 73);
1147: break;
1148: case 74:
1149: if ((0x280000000000L & l) != 0L)
1150: jjCheckNAdd(75);
1151: break;
1152: case 75:
1153: if ((0x3ff000000000000L & l) == 0L)
1154: break;
1155: if (kind > 131)
1156: kind = 131;
1157: jjCheckNAddTwoStates(75, 76);
1158: break;
1159: default:
1160: break;
1161: }
1162: } while (i != startsAt);
1163: } else if (curChar < 128) {
1164: long l = 1L << (curChar & 077);
1165: MatchLoop: do {
1166: switch (jjstateSet[--i]) {
1167: case 28:
1168: if ((0x7fffffe87fffffeL & l) != 0L) {
1169: if (kind > 135)
1170: kind = 135;
1171: jjCheckNAdd(29);
1172: }
1173: if (curChar == 76)
1174: jjAddStates(60, 61);
1175: break;
1176: case 2:
1177: if ((0x2000000020L & l) != 0L)
1178: jjAddStates(62, 63);
1179: break;
1180: case 5:
1181: if ((0x104000001040L & l) != 0L && kind > 130)
1182: kind = 130;
1183: break;
1184: case 7:
1185: if ((0xffffffffefffffffL & l) != 0L)
1186: jjCheckNAddTwoStates(7, 8);
1187: break;
1188: case 9:
1189: if (curChar == 92)
1190: jjAddStates(64, 67);
1191: break;
1192: case 10:
1193: if ((0x54404610000000L & l) != 0L)
1194: jjCheckNAdd(8);
1195: break;
1196: case 15:
1197: if ((0x100000001000000L & l) != 0L)
1198: jjCheckNAdd(16);
1199: break;
1200: case 16:
1201: if ((0x7e0000007eL & l) != 0L)
1202: jjCheckNAddTwoStates(16, 8);
1203: break;
1204: case 18:
1205: if ((0xffffffffefffffffL & l) != 0L)
1206: jjCheckNAddStates(6, 8);
1207: break;
1208: case 19:
1209: if (curChar == 92)
1210: jjAddStates(68, 71);
1211: break;
1212: case 20:
1213: if ((0x54404610000000L & l) != 0L)
1214: jjCheckNAddStates(6, 8);
1215: break;
1216: case 26:
1217: if ((0x100000001000000L & l) != 0L)
1218: jjCheckNAdd(27);
1219: break;
1220: case 27:
1221: if ((0x7e0000007eL & l) != 0L)
1222: jjCheckNAddStates(40, 43);
1223: break;
1224: case 29:
1225: if ((0x7fffffe87fffffeL & l) == 0L)
1226: break;
1227: if (kind > 135)
1228: kind = 135;
1229: jjCheckNAdd(29);
1230: break;
1231: case 33:
1232: if ((0x100000001000L & l) != 0L && kind > 119)
1233: kind = 119;
1234: break;
1235: case 35:
1236: if ((0x20000000200000L & l) != 0L && kind > 120)
1237: kind = 120;
1238: break;
1239: case 37:
1240: if ((0x100000001000L & l) != 0L && kind > 121)
1241: kind = 121;
1242: break;
1243: case 38:
1244: if ((0x20000000200000L & l) != 0L)
1245: jjstateSet[jjnewStateCnt++] = 37;
1246: break;
1247: case 39:
1248: if ((0x20000000200000L & l) != 0L && kind > 121)
1249: kind = 121;
1250: break;
1251: case 40:
1252: if ((0x100000001000L & l) != 0L)
1253: jjstateSet[jjnewStateCnt++] = 39;
1254: break;
1255: case 44:
1256: if ((0x20100000201000L & l) != 0L && kind > 123)
1257: kind = 123;
1258: break;
1259: case 46:
1260: if ((0x20000000200000L & l) != 0L && kind > 124)
1261: kind = 124;
1262: break;
1263: case 48:
1264: if ((0x100000001000L & l) != 0L && kind > 125)
1265: kind = 125;
1266: break;
1267: case 49:
1268: if ((0x20000000200000L & l) != 0L)
1269: jjstateSet[jjnewStateCnt++] = 48;
1270: break;
1271: case 50:
1272: if ((0x20000000200000L & l) != 0L && kind > 125)
1273: kind = 125;
1274: break;
1275: case 51:
1276: if ((0x100000001000L & l) != 0L)
1277: jjstateSet[jjnewStateCnt++] = 50;
1278: break;
1279: case 53:
1280: if ((0x100000001000000L & l) != 0L)
1281: jjCheckNAdd(54);
1282: break;
1283: case 54:
1284: if ((0x7e0000007eL & l) == 0L)
1285: break;
1286: if (kind > 126)
1287: kind = 126;
1288: jjCheckNAdd(54);
1289: break;
1290: case 55:
1291: if ((0x100000001000000L & l) != 0L)
1292: jjCheckNAdd(56);
1293: break;
1294: case 56:
1295: if ((0x7e0000007eL & l) == 0L)
1296: break;
1297: if (kind > 127)
1298: kind = 127;
1299: jjCheckNAddTwoStates(56, 57);
1300: break;
1301: case 57:
1302: if ((0x20100000201000L & l) != 0L && kind > 127)
1303: kind = 127;
1304: break;
1305: case 58:
1306: if ((0x100000001000000L & l) != 0L)
1307: jjCheckNAdd(59);
1308: break;
1309: case 59:
1310: if ((0x7e0000007eL & l) != 0L)
1311: jjCheckNAddTwoStates(59, 60);
1312: break;
1313: case 60:
1314: if ((0x20000000200000L & l) != 0L && kind > 128)
1315: kind = 128;
1316: break;
1317: case 61:
1318: if ((0x100000001000000L & l) != 0L)
1319: jjCheckNAdd(62);
1320: break;
1321: case 62:
1322: if ((0x7e0000007eL & l) != 0L)
1323: jjCheckNAddStates(54, 56);
1324: break;
1325: case 63:
1326: if ((0x100000001000L & l) != 0L && kind > 129)
1327: kind = 129;
1328: break;
1329: case 64:
1330: if ((0x20000000200000L & l) != 0L)
1331: jjstateSet[jjnewStateCnt++] = 63;
1332: break;
1333: case 65:
1334: if ((0x20000000200000L & l) != 0L && kind > 129)
1335: kind = 129;
1336: break;
1337: case 66:
1338: if ((0x100000001000L & l) != 0L)
1339: jjstateSet[jjnewStateCnt++] = 65;
1340: break;
1341: case 73:
1342: if ((0x2000000020L & l) != 0L)
1343: jjAddStates(72, 73);
1344: break;
1345: case 76:
1346: if ((0x104000001040L & l) != 0L && kind > 131)
1347: kind = 131;
1348: break;
1349: case 77:
1350: if (curChar == 76)
1351: jjAddStates(60, 61);
1352: break;
1353: default:
1354: break;
1355: }
1356: } while (i != startsAt);
1357: } else {
1358: int i2 = (curChar & 0xff) >> 6;
1359: long l2 = 1L << (curChar & 077);
1360: MatchLoop: do {
1361: switch (jjstateSet[--i]) {
1362: case 7:
1363: if ((jjbitVec0[i2] & l2) != 0L)
1364: jjAddStates(74, 75);
1365: break;
1366: case 18:
1367: if ((jjbitVec0[i2] & l2) != 0L)
1368: jjAddStates(6, 8);
1369: break;
1370: default:
1371: break;
1372: }
1373: } while (i != startsAt);
1374: }
1375: if (kind != 0x7fffffff) {
1376: jjmatchedKind = kind;
1377: jjmatchedPos = curPos;
1378: kind = 0x7fffffff;
1379: }
1380: ++curPos;
1381: if ((i = jjnewStateCnt) == (startsAt = 78 - (jjnewStateCnt = startsAt)))
1382: return curPos;
1383: try {
1384: curChar = input_stream.readChar();
1385: } catch (java.io.IOException e) {
1386: return curPos;
1387: }
1388: }
1389: }
1390:
1391: static private final int jjMoveStringLiteralDfa0_1() {
1392: switch (curChar) {
1393: case 10:
1394: return jjStopAtPos(0, 9);
1395: default:
1396: return 1;
1397: }
1398: }
1399:
1400: static private final int jjMoveStringLiteralDfa0_4() {
1401: switch (curChar) {
1402: case 10:
1403: return jjStopAtPos(0, 14);
1404: case 47:
1405: return jjMoveStringLiteralDfa1_4(0x8000L);
1406: case 92:
1407: return jjMoveStringLiteralDfa1_4(0x30000L);
1408: default:
1409: return 1;
1410: }
1411: }
1412:
1413: static private final int jjMoveStringLiteralDfa1_4(long active0) {
1414: try {
1415: curChar = input_stream.readChar();
1416: } catch (java.io.IOException e) {
1417: return 1;
1418: }
1419: switch (curChar) {
1420: case 10:
1421: if ((active0 & 0x10000L) != 0L)
1422: return jjStopAtPos(1, 16);
1423: break;
1424: case 13:
1425: return jjMoveStringLiteralDfa2_4(active0, 0x20000L);
1426: case 42:
1427: if ((active0 & 0x8000L) != 0L)
1428: return jjStopAtPos(1, 15);
1429: break;
1430: default:
1431: return 2;
1432: }
1433: return 2;
1434: }
1435:
1436: static private final int jjMoveStringLiteralDfa2_4(long old0,
1437: long active0) {
1438: if (((active0 &= old0)) == 0L)
1439: return 2;
1440: try {
1441: curChar = input_stream.readChar();
1442: } catch (java.io.IOException e) {
1443: return 2;
1444: }
1445: switch (curChar) {
1446: case 10:
1447: if ((active0 & 0x20000L) != 0L)
1448: return jjStopAtPos(2, 17);
1449: break;
1450: default:
1451: return 3;
1452: }
1453: return 3;
1454: }
1455:
1456: static private final int jjMoveStringLiteralDfa0_3() {
1457: switch (curChar) {
1458: case 42:
1459: return jjMoveStringLiteralDfa1_3(0x2000L);
1460: default:
1461: return 1;
1462: }
1463: }
1464:
1465: static private final int jjMoveStringLiteralDfa1_3(long active0) {
1466: try {
1467: curChar = input_stream.readChar();
1468: } catch (java.io.IOException e) {
1469: return 1;
1470: }
1471: switch (curChar) {
1472: case 47:
1473: if ((active0 & 0x2000L) != 0L)
1474: return jjStopAtPos(1, 13);
1475: break;
1476: default:
1477: return 2;
1478: }
1479: return 2;
1480: }
1481:
1482: static private final int jjMoveStringLiteralDfa0_2() {
1483: switch (curChar) {
1484: case 42:
1485: return jjMoveStringLiteralDfa1_2(0x800L);
1486: default:
1487: return 1;
1488: }
1489: }
1490:
1491: static private final int jjMoveStringLiteralDfa1_2(long active0) {
1492: try {
1493: curChar = input_stream.readChar();
1494: } catch (java.io.IOException e) {
1495: return 1;
1496: }
1497: switch (curChar) {
1498: case 47:
1499: if ((active0 & 0x800L) != 0L)
1500: return jjStopAtPos(1, 11);
1501: break;
1502: default:
1503: return 2;
1504: }
1505: return 2;
1506: }
1507:
1508: static final int[] jjnextStates = { 68, 69, 71, 0, 72, 73, 18, 19,
1509: 21, 42, 43, 44, 45, 46, 47, 49, 51, 53, 55, 58, 61, 31, 32,
1510: 33, 34, 35, 36, 38, 40, 1, 2, 5, 18, 19, 23, 21, 18, 19,
1511: 25, 21, 18, 19, 27, 21, 36, 38, 40, 47, 49, 51, 56, 57, 59,
1512: 60, 62, 64, 66, 70, 2, 5, 6, 17, 3, 4, 10, 11, 13, 15, 20,
1513: 22, 24, 26, 74, 75, 7, 8, };
1514: public static final String[] jjstrLiteralImages = { "", null, null,
1515: null, null, null, null, null, null, null, null, null, null,
1516: null, null, null, null, null, null, "\173", "\175", "\133",
1517: "\135", "\50", "\51", "\72\72", "\72", "\73", "\54", "\77",
1518: "\56\56\56", "\75", "\52\75", "\57\75", "\45\75", "\53\75",
1519: "\55\75", "\74\74\75", "\76\76\75", "\46\75", "\136\75",
1520: "\174\75", "\174\174", "\46\46", "\174", "\136", "\46",
1521: "\75\75", "\41\75", "\74", "\76", "\74\75", "\76\75",
1522: "\74\74", "\76\76", "\53", "\55", "\52", "\57", "\45",
1523: "\53\53", "\55\55", "\176", "\41", "\56", "\55\76",
1524: "\56\52", "\55\76\52", "\141\165\164\157",
1525: "\142\162\145\141\153", "\143\141\163\145",
1526: "\143\141\164\143\150", "\143\150\141\162",
1527: "\143\157\156\163\164", "\143\157\156\164\151\156\165\145",
1528: "\144\145\146\141\165\154\164", "\144\145\154\145\164\145",
1529: "\144\157", "\144\157\165\142\154\145", "\145\154\163\145",
1530: "\145\156\165\155", "\145\170\164\145\162\156",
1531: "\146\154\157\141\164", "\146\157\162",
1532: "\146\162\151\145\156\144", "\147\157\164\157", "\151\146",
1533: "\151\156\154\151\156\145", "\151\156\164",
1534: "\154\157\156\147", "\156\145\167",
1535: "\160\162\151\166\141\164\145",
1536: "\160\162\157\164\145\143\164\145\144",
1537: "\160\165\142\154\151\143",
1538: "\162\145\144\145\143\154\141\162\145\144",
1539: "\162\145\147\151\163\164\145\162",
1540: "\162\145\164\165\162\156", "\163\150\157\162\164",
1541: "\163\151\147\156\145\144", "\163\151\172\145\157\146",
1542: "\163\164\141\164\151\143", "\163\164\162\165\143\164",
1543: "\143\154\141\163\163", "\163\167\151\164\143\150",
1544: "\164\145\155\160\154\141\164\145", "\164\150\151\163",
1545: "\164\162\171", "\164\171\160\145\144\145\146",
1546: "\165\156\151\157\156", "\165\156\163\151\147\156\145\144",
1547: "\166\151\162\164\165\141\154", "\166\157\151\144",
1548: "\166\157\154\141\164\151\154\145", "\167\150\151\154\145",
1549: "\157\160\145\162\141\164\157\162", "\164\162\165\145",
1550: "\146\141\154\163\145", "\164\150\162\157\167", null, null,
1551: null, null, null, null, null, null, null, null, null, null,
1552: null, null, null, null, "\146\151\156\141\154\154\171",
1553: null, };
1554: public static final String[] lexStateNames = { "DEFAULT",
1555: "IN_LINE_COMMENT", "IN_COMMENT",
1556: "IN_PREPROCESSOR_OUTPUT_COMMENT", "PREPROCESSOR_OUTPUT", };
1557: public static final int[] jjnewLexState = { -1, -1, -1, -1, -1, -1,
1558: 1, 2, 4, 0, -1, 0, -1, 4, 0, 3, -1, -1, -1, -1, -1, -1, -1,
1559: -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1560: -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1561: -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1562: -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1563: -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1564: -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1565: -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
1566: -1, -1, -1, -1, -1, -1, -1, -1, };
1567: static final long[] jjtoToken = { 0xfffffffffff80001L,
1568: 0xffffffffffffffffL, 0xffL, };
1569: static final long[] jjtoSkip = { 0xebfeL, 0x0L, 0x0L, };
1570: static final long[] jjtoMore = { 0x71400L, 0x0L, 0x0L, };
1571: static protected SimpleCharStream input_stream;
1572: static private final int[] jjrounds = new int[78];
1573: static private final int[] jjstateSet = new int[156];
1574: static protected char curChar;
1575:
1576: public CPPParserTokenManager(SimpleCharStream stream) {
1577: if (input_stream != null)
1578: throw new TokenMgrError(
1579: "ERROR: Second call to constructor of static lexer. You must use ReInit() to initialize the static variables.",
1580: TokenMgrError.STATIC_LEXER_ERROR);
1581: input_stream = stream;
1582: }
1583:
1584: public CPPParserTokenManager(SimpleCharStream stream, int lexState) {
1585: this (stream);
1586: SwitchTo(lexState);
1587: }
1588:
1589: static public void ReInit(SimpleCharStream stream) {
1590: jjmatchedPos = jjnewStateCnt = 0;
1591: curLexState = defaultLexState;
1592: input_stream = stream;
1593: ReInitRounds();
1594: }
1595:
1596: static private final void ReInitRounds() {
1597: int i;
1598: jjround = 0x80000001;
1599: for (i = 78; i-- > 0;)
1600: jjrounds[i] = 0x80000000;
1601: }
1602:
1603: static public void ReInit(SimpleCharStream stream, int lexState) {
1604: ReInit(stream);
1605: SwitchTo(lexState);
1606: }
1607:
1608: static public void SwitchTo(int lexState) {
1609: if (lexState >= 5 || lexState < 0)
1610: throw new TokenMgrError(
1611: "Error: Ignoring invalid lexical state : "
1612: + lexState + ". State unchanged.",
1613: TokenMgrError.INVALID_LEXICAL_STATE);
1614: else
1615: curLexState = lexState;
1616: }
1617:
1618: static protected Token jjFillToken() {
1619: Token t = Token.newToken(jjmatchedKind);
1620: t.kind = jjmatchedKind;
1621: String im = jjstrLiteralImages[jjmatchedKind];
1622: t.image = (im == null) ? input_stream.GetImage() : im;
1623: t.beginLine = input_stream.getBeginLine();
1624: t.beginColumn = input_stream.getBeginColumn();
1625: t.endLine = input_stream.getEndLine();
1626: t.endColumn = input_stream.getEndColumn();
1627: return t;
1628: }
1629:
1630: static int curLexState = 0;
1631: static int defaultLexState = 0;
1632: static int jjnewStateCnt;
1633: static int jjround;
1634: static int jjmatchedPos;
1635: static int jjmatchedKind;
1636:
1637: public static Token getNextToken() {
1638: int kind;
1639: Token specialToken = null;
1640: Token matchedToken;
1641: int curPos = 0;
1642:
1643: EOFLoop: for (;;) {
1644: try {
1645: curChar = input_stream.BeginToken();
1646: } catch (java.io.IOException e) {
1647: jjmatchedKind = 0;
1648: matchedToken = jjFillToken();
1649: return matchedToken;
1650: }
1651:
1652: for (;;) {
1653: switch (curLexState) {
1654: case 0:
1655: try {
1656: input_stream.backup(0);
1657: while (curChar <= 32
1658: && (0x100001600L & (1L << curChar)) != 0L)
1659: curChar = input_stream.BeginToken();
1660: } catch (java.io.IOException e1) {
1661: continue EOFLoop;
1662: }
1663: jjmatchedKind = 0x7fffffff;
1664: jjmatchedPos = 0;
1665: curPos = jjMoveStringLiteralDfa0_0();
1666: break;
1667: case 1:
1668: jjmatchedKind = 0x7fffffff;
1669: jjmatchedPos = 0;
1670: curPos = jjMoveStringLiteralDfa0_1();
1671: if (jjmatchedPos == 0 && jjmatchedKind > 10) {
1672: jjmatchedKind = 10;
1673: }
1674: break;
1675: case 2:
1676: jjmatchedKind = 0x7fffffff;
1677: jjmatchedPos = 0;
1678: curPos = jjMoveStringLiteralDfa0_2();
1679: if (jjmatchedPos == 0 && jjmatchedKind > 12) {
1680: jjmatchedKind = 12;
1681: }
1682: break;
1683: case 3:
1684: jjmatchedKind = 0x7fffffff;
1685: jjmatchedPos = 0;
1686: curPos = jjMoveStringLiteralDfa0_3();
1687: if (jjmatchedPos == 0 && jjmatchedKind > 12) {
1688: jjmatchedKind = 12;
1689: }
1690: break;
1691: case 4:
1692: jjmatchedKind = 0x7fffffff;
1693: jjmatchedPos = 0;
1694: curPos = jjMoveStringLiteralDfa0_4();
1695: if (jjmatchedPos == 0 && jjmatchedKind > 18) {
1696: jjmatchedKind = 18;
1697: }
1698: break;
1699: }
1700: if (jjmatchedKind != 0x7fffffff) {
1701: if (jjmatchedPos + 1 < curPos)
1702: input_stream.backup(curPos - jjmatchedPos - 1);
1703: if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {
1704: matchedToken = jjFillToken();
1705: if (jjnewLexState[jjmatchedKind] != -1)
1706: curLexState = jjnewLexState[jjmatchedKind];
1707: return matchedToken;
1708: } else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {
1709: if (jjnewLexState[jjmatchedKind] != -1)
1710: curLexState = jjnewLexState[jjmatchedKind];
1711: continue EOFLoop;
1712: }
1713: if (jjnewLexState[jjmatchedKind] != -1)
1714: curLexState = jjnewLexState[jjmatchedKind];
1715: curPos = 0;
1716: jjmatchedKind = 0x7fffffff;
1717: try {
1718: curChar = input_stream.readChar();
1719: continue;
1720: } catch (java.io.IOException e1) {
1721: }
1722: }
1723: int error_line = input_stream.getEndLine();
1724: int error_column = input_stream.getEndColumn();
1725: String error_after = null;
1726: boolean EOFSeen = false;
1727: try {
1728: input_stream.readChar();
1729: input_stream.backup(1);
1730: } catch (java.io.IOException e1) {
1731: EOFSeen = true;
1732: error_after = curPos <= 1 ? "" : input_stream
1733: .GetImage();
1734: if (curChar == '\n' || curChar == '\r') {
1735: error_line++;
1736: error_column = 0;
1737: } else
1738: error_column++;
1739: }
1740: if (!EOFSeen) {
1741: input_stream.backup(1);
1742: error_after = curPos <= 1 ? "" : input_stream
1743: .GetImage();
1744: }
1745: throw new TokenMgrError(EOFSeen, curLexState,
1746: error_line, error_column, error_after, curChar,
1747: TokenMgrError.LEXICAL_ERROR);
1748: }
1749: }
1750: }
1751:
1752: }
|