0001: // line 1 "src/org/jvyamlb/resolver_scanner.rl"
0002:
0003: package org.jvyamlb;
0004:
0005: import org.jruby.util.ByteList;
0006:
0007: public class ResolverScanner {
0008: // line 52 "src/org/jvyamlb/resolver_scanner.rl"
0009:
0010: // line 13 "src/org/jvyamlb/ResolverScanner.java"
0011: private static void init__resolver_scanner_actions_0(byte[] r) {
0012: r[0] = 0;
0013: r[1] = 1;
0014: r[2] = 0;
0015: r[3] = 1;
0016: r[4] = 1;
0017: r[5] = 1;
0018: r[6] = 2;
0019: r[7] = 1;
0020: r[8] = 3;
0021: r[9] = 1;
0022: r[10] = 4;
0023: r[11] = 1;
0024: r[12] = 5;
0025: r[13] = 1;
0026: r[14] = 6;
0027: r[15] = 1;
0028: r[16] = 7;
0029: }
0030:
0031: private static byte[] create__resolver_scanner_actions() {
0032: byte[] r = new byte[17];
0033: init__resolver_scanner_actions_0(r);
0034: return r;
0035: }
0036:
0037: private static final byte _resolver_scanner_actions[] = create__resolver_scanner_actions();
0038:
0039: private static void init__resolver_scanner_key_offsets_0(short[] r) {
0040: r[0] = 0;
0041: r[1] = 0;
0042: r[2] = 21;
0043: r[3] = 26;
0044: r[4] = 30;
0045: r[5] = 32;
0046: r[6] = 34;
0047: r[7] = 38;
0048: r[8] = 40;
0049: r[9] = 41;
0050: r[10] = 42;
0051: r[11] = 43;
0052: r[12] = 48;
0053: r[13] = 52;
0054: r[14] = 56;
0055: r[15] = 58;
0056: r[16] = 61;
0057: r[17] = 69;
0058: r[18] = 73;
0059: r[19] = 77;
0060: r[20] = 83;
0061: r[21] = 85;
0062: r[22] = 86;
0063: r[23] = 87;
0064: r[24] = 88;
0065: r[25] = 90;
0066: r[26] = 93;
0067: r[27] = 95;
0068: r[28] = 101;
0069: r[29] = 105;
0070: r[30] = 108;
0071: r[31] = 109;
0072: r[32] = 111;
0073: r[33] = 113;
0074: r[34] = 114;
0075: r[35] = 116;
0076: r[36] = 118;
0077: r[37] = 123;
0078: r[38] = 125;
0079: r[39] = 127;
0080: r[40] = 129;
0081: r[41] = 133;
0082: r[42] = 135;
0083: r[43] = 136;
0084: r[44] = 138;
0085: r[45] = 144;
0086: r[46] = 150;
0087: r[47] = 155;
0088: r[48] = 160;
0089: r[49] = 161;
0090: r[50] = 163;
0091: r[51] = 164;
0092: r[52] = 165;
0093: r[53] = 166;
0094: r[54] = 167;
0095: r[55] = 168;
0096: r[56] = 169;
0097: r[57] = 173;
0098: r[58] = 174;
0099: r[59] = 175;
0100: r[60] = 176;
0101: r[61] = 177;
0102: r[62] = 181;
0103: r[63] = 182;
0104: r[64] = 183;
0105: r[65] = 185;
0106: r[66] = 186;
0107: r[67] = 187;
0108: r[68] = 189;
0109: r[69] = 190;
0110: r[70] = 191;
0111: r[71] = 192;
0112: r[72] = 194;
0113: r[73] = 196;
0114: r[74] = 197;
0115: r[75] = 198;
0116: r[76] = 198;
0117: r[77] = 202;
0118: r[78] = 204;
0119: r[79] = 204;
0120: r[80] = 214;
0121: r[81] = 222;
0122: r[82] = 225;
0123: r[83] = 228;
0124: r[84] = 236;
0125: r[85] = 242;
0126: r[86] = 248;
0127: r[87] = 251;
0128: r[88] = 252;
0129: r[89] = 257;
0130: r[90] = 261;
0131: r[91] = 263;
0132: r[92] = 273;
0133: r[93] = 281;
0134: r[94] = 289;
0135: r[95] = 298;
0136: r[96] = 304;
0137: r[97] = 307;
0138: r[98] = 308;
0139: r[99] = 308;
0140: r[100] = 315;
0141: r[101] = 319;
0142: r[102] = 325;
0143: r[103] = 331;
0144: r[104] = 337;
0145: r[105] = 344;
0146: r[106] = 344;
0147: r[107] = 344;
0148: }
0149:
0150: private static short[] create__resolver_scanner_key_offsets() {
0151: short[] r = new short[108];
0152: init__resolver_scanner_key_offsets_0(r);
0153: return r;
0154: }
0155:
0156: private static final short _resolver_scanner_key_offsets[] = create__resolver_scanner_key_offsets();
0157:
0158: private static void init__resolver_scanner_trans_keys_0(char[] r) {
0159: r[0] = 32;
0160: r[1] = 44;
0161: r[2] = 46;
0162: r[3] = 48;
0163: r[4] = 60;
0164: r[5] = 61;
0165: r[6] = 70;
0166: r[7] = 78;
0167: r[8] = 79;
0168: r[9] = 84;
0169: r[10] = 89;
0170: r[11] = 102;
0171: r[12] = 110;
0172: r[13] = 111;
0173: r[14] = 116;
0174: r[15] = 121;
0175: r[16] = 126;
0176: r[17] = 43;
0177: r[18] = 45;
0178: r[19] = 49;
0179: r[20] = 57;
0180: r[21] = 44;
0181: r[22] = 46;
0182: r[23] = 48;
0183: r[24] = 49;
0184: r[25] = 57;
0185: r[26] = 44;
0186: r[27] = 46;
0187: r[28] = 48;
0188: r[29] = 57;
0189: r[30] = 43;
0190: r[31] = 45;
0191: r[32] = 48;
0192: r[33] = 57;
0193: r[34] = 73;
0194: r[35] = 105;
0195: r[36] = 48;
0196: r[37] = 57;
0197: r[38] = 78;
0198: r[39] = 110;
0199: r[40] = 70;
0200: r[41] = 102;
0201: r[42] = 110;
0202: r[43] = 44;
0203: r[44] = 46;
0204: r[45] = 58;
0205: r[46] = 48;
0206: r[47] = 57;
0207: r[48] = 48;
0208: r[49] = 53;
0209: r[50] = 54;
0210: r[51] = 57;
0211: r[52] = 46;
0212: r[53] = 58;
0213: r[54] = 48;
0214: r[55] = 57;
0215: r[56] = 46;
0216: r[57] = 58;
0217: r[58] = 95;
0218: r[59] = 48;
0219: r[60] = 49;
0220: r[61] = 44;
0221: r[62] = 95;
0222: r[63] = 48;
0223: r[64] = 57;
0224: r[65] = 65;
0225: r[66] = 70;
0226: r[67] = 97;
0227: r[68] = 102;
0228: r[69] = 48;
0229: r[70] = 53;
0230: r[71] = 54;
0231: r[72] = 57;
0232: r[73] = 48;
0233: r[74] = 53;
0234: r[75] = 54;
0235: r[76] = 57;
0236: r[77] = 73;
0237: r[78] = 78;
0238: r[79] = 105;
0239: r[80] = 110;
0240: r[81] = 48;
0241: r[82] = 57;
0242: r[83] = 65;
0243: r[84] = 97;
0244: r[85] = 78;
0245: r[86] = 97;
0246: r[87] = 110;
0247: r[88] = 48;
0248: r[89] = 57;
0249: r[90] = 45;
0250: r[91] = 48;
0251: r[92] = 57;
0252: r[93] = 48;
0253: r[94] = 57;
0254: r[95] = 9;
0255: r[96] = 32;
0256: r[97] = 84;
0257: r[98] = 116;
0258: r[99] = 48;
0259: r[100] = 57;
0260: r[101] = 9;
0261: r[102] = 32;
0262: r[103] = 48;
0263: r[104] = 57;
0264: r[105] = 58;
0265: r[106] = 48;
0266: r[107] = 57;
0267: r[108] = 58;
0268: r[109] = 48;
0269: r[110] = 57;
0270: r[111] = 48;
0271: r[112] = 57;
0272: r[113] = 58;
0273: r[114] = 48;
0274: r[115] = 57;
0275: r[116] = 48;
0276: r[117] = 57;
0277: r[118] = 9;
0278: r[119] = 32;
0279: r[120] = 43;
0280: r[121] = 45;
0281: r[122] = 90;
0282: r[123] = 48;
0283: r[124] = 57;
0284: r[125] = 48;
0285: r[126] = 57;
0286: r[127] = 48;
0287: r[128] = 57;
0288: r[129] = 9;
0289: r[130] = 32;
0290: r[131] = 84;
0291: r[132] = 116;
0292: r[133] = 48;
0293: r[134] = 57;
0294: r[135] = 45;
0295: r[136] = 48;
0296: r[137] = 57;
0297: r[138] = 9;
0298: r[139] = 32;
0299: r[140] = 84;
0300: r[141] = 116;
0301: r[142] = 48;
0302: r[143] = 57;
0303: r[144] = 44;
0304: r[145] = 45;
0305: r[146] = 46;
0306: r[147] = 58;
0307: r[148] = 48;
0308: r[149] = 57;
0309: r[150] = 44;
0310: r[151] = 46;
0311: r[152] = 58;
0312: r[153] = 48;
0313: r[154] = 57;
0314: r[155] = 44;
0315: r[156] = 46;
0316: r[157] = 58;
0317: r[158] = 48;
0318: r[159] = 57;
0319: r[160] = 60;
0320: r[161] = 65;
0321: r[162] = 97;
0322: r[163] = 76;
0323: r[164] = 83;
0324: r[165] = 69;
0325: r[166] = 108;
0326: r[167] = 115;
0327: r[168] = 101;
0328: r[169] = 79;
0329: r[170] = 85;
0330: r[171] = 111;
0331: r[172] = 117;
0332: r[173] = 76;
0333: r[174] = 76;
0334: r[175] = 108;
0335: r[176] = 108;
0336: r[177] = 70;
0337: r[178] = 78;
0338: r[179] = 102;
0339: r[180] = 110;
0340: r[181] = 70;
0341: r[182] = 102;
0342: r[183] = 82;
0343: r[184] = 114;
0344: r[185] = 85;
0345: r[186] = 117;
0346: r[187] = 69;
0347: r[188] = 101;
0348: r[189] = 83;
0349: r[190] = 115;
0350: r[191] = 97;
0351: r[192] = 111;
0352: r[193] = 117;
0353: r[194] = 102;
0354: r[195] = 110;
0355: r[196] = 114;
0356: r[197] = 101;
0357: r[198] = 69;
0358: r[199] = 101;
0359: r[200] = 48;
0360: r[201] = 57;
0361: r[202] = 48;
0362: r[203] = 57;
0363: r[204] = 44;
0364: r[205] = 46;
0365: r[206] = 58;
0366: r[207] = 95;
0367: r[208] = 98;
0368: r[209] = 120;
0369: r[210] = 48;
0370: r[211] = 55;
0371: r[212] = 56;
0372: r[213] = 57;
0373: r[214] = 44;
0374: r[215] = 46;
0375: r[216] = 58;
0376: r[217] = 95;
0377: r[218] = 48;
0378: r[219] = 55;
0379: r[220] = 56;
0380: r[221] = 57;
0381: r[222] = 95;
0382: r[223] = 48;
0383: r[224] = 55;
0384: r[225] = 95;
0385: r[226] = 48;
0386: r[227] = 49;
0387: r[228] = 44;
0388: r[229] = 95;
0389: r[230] = 48;
0390: r[231] = 57;
0391: r[232] = 65;
0392: r[233] = 70;
0393: r[234] = 97;
0394: r[235] = 102;
0395: r[236] = 44;
0396: r[237] = 46;
0397: r[238] = 58;
0398: r[239] = 95;
0399: r[240] = 48;
0400: r[241] = 57;
0401: r[242] = 44;
0402: r[243] = 46;
0403: r[244] = 58;
0404: r[245] = 95;
0405: r[246] = 48;
0406: r[247] = 57;
0407: r[248] = 58;
0408: r[249] = 48;
0409: r[250] = 57;
0410: r[251] = 58;
0411: r[252] = 44;
0412: r[253] = 58;
0413: r[254] = 95;
0414: r[255] = 48;
0415: r[256] = 57;
0416: r[257] = 46;
0417: r[258] = 58;
0418: r[259] = 48;
0419: r[260] = 57;
0420: r[261] = 46;
0421: r[262] = 58;
0422: r[263] = 44;
0423: r[264] = 46;
0424: r[265] = 58;
0425: r[266] = 95;
0426: r[267] = 98;
0427: r[268] = 120;
0428: r[269] = 48;
0429: r[270] = 55;
0430: r[271] = 56;
0431: r[272] = 57;
0432: r[273] = 44;
0433: r[274] = 46;
0434: r[275] = 58;
0435: r[276] = 95;
0436: r[277] = 48;
0437: r[278] = 55;
0438: r[279] = 56;
0439: r[280] = 57;
0440: r[281] = 44;
0441: r[282] = 46;
0442: r[283] = 58;
0443: r[284] = 95;
0444: r[285] = 48;
0445: r[286] = 55;
0446: r[287] = 56;
0447: r[288] = 57;
0448: r[289] = 44;
0449: r[290] = 45;
0450: r[291] = 46;
0451: r[292] = 58;
0452: r[293] = 95;
0453: r[294] = 48;
0454: r[295] = 55;
0455: r[296] = 56;
0456: r[297] = 57;
0457: r[298] = 9;
0458: r[299] = 32;
0459: r[300] = 43;
0460: r[301] = 45;
0461: r[302] = 46;
0462: r[303] = 90;
0463: r[304] = 58;
0464: r[305] = 48;
0465: r[306] = 57;
0466: r[307] = 58;
0467: r[308] = 9;
0468: r[309] = 32;
0469: r[310] = 43;
0470: r[311] = 45;
0471: r[312] = 90;
0472: r[313] = 48;
0473: r[314] = 57;
0474: r[315] = 9;
0475: r[316] = 32;
0476: r[317] = 84;
0477: r[318] = 116;
0478: r[319] = 44;
0479: r[320] = 46;
0480: r[321] = 58;
0481: r[322] = 95;
0482: r[323] = 48;
0483: r[324] = 57;
0484: r[325] = 44;
0485: r[326] = 46;
0486: r[327] = 58;
0487: r[328] = 95;
0488: r[329] = 48;
0489: r[330] = 57;
0490: r[331] = 44;
0491: r[332] = 46;
0492: r[333] = 58;
0493: r[334] = 95;
0494: r[335] = 48;
0495: r[336] = 57;
0496: r[337] = 44;
0497: r[338] = 45;
0498: r[339] = 46;
0499: r[340] = 58;
0500: r[341] = 95;
0501: r[342] = 48;
0502: r[343] = 57;
0503: r[344] = 0;
0504: }
0505:
0506: private static char[] create__resolver_scanner_trans_keys() {
0507: char[] r = new char[345];
0508: init__resolver_scanner_trans_keys_0(r);
0509: return r;
0510: }
0511:
0512: private static final char _resolver_scanner_trans_keys[] = create__resolver_scanner_trans_keys();
0513:
0514: private static void init__resolver_scanner_single_lengths_0(byte[] r) {
0515: r[0] = 0;
0516: r[1] = 17;
0517: r[2] = 3;
0518: r[3] = 2;
0519: r[4] = 2;
0520: r[5] = 0;
0521: r[6] = 2;
0522: r[7] = 2;
0523: r[8] = 1;
0524: r[9] = 1;
0525: r[10] = 1;
0526: r[11] = 3;
0527: r[12] = 0;
0528: r[13] = 2;
0529: r[14] = 2;
0530: r[15] = 1;
0531: r[16] = 2;
0532: r[17] = 0;
0533: r[18] = 0;
0534: r[19] = 4;
0535: r[20] = 2;
0536: r[21] = 1;
0537: r[22] = 1;
0538: r[23] = 1;
0539: r[24] = 0;
0540: r[25] = 1;
0541: r[26] = 0;
0542: r[27] = 4;
0543: r[28] = 2;
0544: r[29] = 1;
0545: r[30] = 1;
0546: r[31] = 0;
0547: r[32] = 0;
0548: r[33] = 1;
0549: r[34] = 0;
0550: r[35] = 0;
0551: r[36] = 5;
0552: r[37] = 0;
0553: r[38] = 0;
0554: r[39] = 0;
0555: r[40] = 4;
0556: r[41] = 0;
0557: r[42] = 1;
0558: r[43] = 0;
0559: r[44] = 4;
0560: r[45] = 4;
0561: r[46] = 3;
0562: r[47] = 3;
0563: r[48] = 1;
0564: r[49] = 2;
0565: r[50] = 1;
0566: r[51] = 1;
0567: r[52] = 1;
0568: r[53] = 1;
0569: r[54] = 1;
0570: r[55] = 1;
0571: r[56] = 4;
0572: r[57] = 1;
0573: r[58] = 1;
0574: r[59] = 1;
0575: r[60] = 1;
0576: r[61] = 4;
0577: r[62] = 1;
0578: r[63] = 1;
0579: r[64] = 2;
0580: r[65] = 1;
0581: r[66] = 1;
0582: r[67] = 2;
0583: r[68] = 1;
0584: r[69] = 1;
0585: r[70] = 1;
0586: r[71] = 2;
0587: r[72] = 2;
0588: r[73] = 1;
0589: r[74] = 1;
0590: r[75] = 0;
0591: r[76] = 2;
0592: r[77] = 0;
0593: r[78] = 0;
0594: r[79] = 6;
0595: r[80] = 4;
0596: r[81] = 1;
0597: r[82] = 1;
0598: r[83] = 2;
0599: r[84] = 4;
0600: r[85] = 4;
0601: r[86] = 1;
0602: r[87] = 1;
0603: r[88] = 3;
0604: r[89] = 2;
0605: r[90] = 2;
0606: r[91] = 6;
0607: r[92] = 4;
0608: r[93] = 4;
0609: r[94] = 5;
0610: r[95] = 6;
0611: r[96] = 1;
0612: r[97] = 1;
0613: r[98] = 0;
0614: r[99] = 5;
0615: r[100] = 4;
0616: r[101] = 4;
0617: r[102] = 4;
0618: r[103] = 4;
0619: r[104] = 5;
0620: r[105] = 0;
0621: r[106] = 0;
0622: r[107] = 0;
0623: }
0624:
0625: private static byte[] create__resolver_scanner_single_lengths() {
0626: byte[] r = new byte[108];
0627: init__resolver_scanner_single_lengths_0(r);
0628: return r;
0629: }
0630:
0631: private static final byte _resolver_scanner_single_lengths[] = create__resolver_scanner_single_lengths();
0632:
0633: private static void init__resolver_scanner_range_lengths_0(byte[] r) {
0634: r[0] = 0;
0635: r[1] = 2;
0636: r[2] = 1;
0637: r[3] = 1;
0638: r[4] = 0;
0639: r[5] = 1;
0640: r[6] = 1;
0641: r[7] = 0;
0642: r[8] = 0;
0643: r[9] = 0;
0644: r[10] = 0;
0645: r[11] = 1;
0646: r[12] = 2;
0647: r[13] = 1;
0648: r[14] = 0;
0649: r[15] = 1;
0650: r[16] = 3;
0651: r[17] = 2;
0652: r[18] = 2;
0653: r[19] = 1;
0654: r[20] = 0;
0655: r[21] = 0;
0656: r[22] = 0;
0657: r[23] = 0;
0658: r[24] = 1;
0659: r[25] = 1;
0660: r[26] = 1;
0661: r[27] = 1;
0662: r[28] = 1;
0663: r[29] = 1;
0664: r[30] = 0;
0665: r[31] = 1;
0666: r[32] = 1;
0667: r[33] = 0;
0668: r[34] = 1;
0669: r[35] = 1;
0670: r[36] = 0;
0671: r[37] = 1;
0672: r[38] = 1;
0673: r[39] = 1;
0674: r[40] = 0;
0675: r[41] = 1;
0676: r[42] = 0;
0677: r[43] = 1;
0678: r[44] = 1;
0679: r[45] = 1;
0680: r[46] = 1;
0681: r[47] = 1;
0682: r[48] = 0;
0683: r[49] = 0;
0684: r[50] = 0;
0685: r[51] = 0;
0686: r[52] = 0;
0687: r[53] = 0;
0688: r[54] = 0;
0689: r[55] = 0;
0690: r[56] = 0;
0691: r[57] = 0;
0692: r[58] = 0;
0693: r[59] = 0;
0694: r[60] = 0;
0695: r[61] = 0;
0696: r[62] = 0;
0697: r[63] = 0;
0698: r[64] = 0;
0699: r[65] = 0;
0700: r[66] = 0;
0701: r[67] = 0;
0702: r[68] = 0;
0703: r[69] = 0;
0704: r[70] = 0;
0705: r[71] = 0;
0706: r[72] = 0;
0707: r[73] = 0;
0708: r[74] = 0;
0709: r[75] = 0;
0710: r[76] = 1;
0711: r[77] = 1;
0712: r[78] = 0;
0713: r[79] = 2;
0714: r[80] = 2;
0715: r[81] = 1;
0716: r[82] = 1;
0717: r[83] = 3;
0718: r[84] = 1;
0719: r[85] = 1;
0720: r[86] = 1;
0721: r[87] = 0;
0722: r[88] = 1;
0723: r[89] = 1;
0724: r[90] = 0;
0725: r[91] = 2;
0726: r[92] = 2;
0727: r[93] = 2;
0728: r[94] = 2;
0729: r[95] = 0;
0730: r[96] = 1;
0731: r[97] = 0;
0732: r[98] = 0;
0733: r[99] = 1;
0734: r[100] = 0;
0735: r[101] = 1;
0736: r[102] = 1;
0737: r[103] = 1;
0738: r[104] = 1;
0739: r[105] = 0;
0740: r[106] = 0;
0741: r[107] = 0;
0742: }
0743:
0744: private static byte[] create__resolver_scanner_range_lengths() {
0745: byte[] r = new byte[108];
0746: init__resolver_scanner_range_lengths_0(r);
0747: return r;
0748: }
0749:
0750: private static final byte _resolver_scanner_range_lengths[] = create__resolver_scanner_range_lengths();
0751:
0752: private static void init__resolver_scanner_index_offsets_0(short[] r) {
0753: r[0] = 0;
0754: r[1] = 0;
0755: r[2] = 20;
0756: r[3] = 25;
0757: r[4] = 29;
0758: r[5] = 32;
0759: r[6] = 34;
0760: r[7] = 38;
0761: r[8] = 41;
0762: r[9] = 43;
0763: r[10] = 45;
0764: r[11] = 47;
0765: r[12] = 52;
0766: r[13] = 55;
0767: r[14] = 59;
0768: r[15] = 62;
0769: r[16] = 65;
0770: r[17] = 71;
0771: r[18] = 74;
0772: r[19] = 77;
0773: r[20] = 83;
0774: r[21] = 86;
0775: r[22] = 88;
0776: r[23] = 90;
0777: r[24] = 92;
0778: r[25] = 94;
0779: r[26] = 97;
0780: r[27] = 99;
0781: r[28] = 105;
0782: r[29] = 109;
0783: r[30] = 112;
0784: r[31] = 114;
0785: r[32] = 116;
0786: r[33] = 118;
0787: r[34] = 120;
0788: r[35] = 122;
0789: r[36] = 124;
0790: r[37] = 130;
0791: r[38] = 132;
0792: r[39] = 134;
0793: r[40] = 136;
0794: r[41] = 141;
0795: r[42] = 143;
0796: r[43] = 145;
0797: r[44] = 147;
0798: r[45] = 153;
0799: r[46] = 159;
0800: r[47] = 164;
0801: r[48] = 169;
0802: r[49] = 171;
0803: r[50] = 174;
0804: r[51] = 176;
0805: r[52] = 178;
0806: r[53] = 180;
0807: r[54] = 182;
0808: r[55] = 184;
0809: r[56] = 186;
0810: r[57] = 191;
0811: r[58] = 193;
0812: r[59] = 195;
0813: r[60] = 197;
0814: r[61] = 199;
0815: r[62] = 204;
0816: r[63] = 206;
0817: r[64] = 208;
0818: r[65] = 211;
0819: r[66] = 213;
0820: r[67] = 215;
0821: r[68] = 218;
0822: r[69] = 220;
0823: r[70] = 222;
0824: r[71] = 224;
0825: r[72] = 227;
0826: r[73] = 230;
0827: r[74] = 232;
0828: r[75] = 234;
0829: r[76] = 235;
0830: r[77] = 239;
0831: r[78] = 241;
0832: r[79] = 242;
0833: r[80] = 251;
0834: r[81] = 258;
0835: r[82] = 261;
0836: r[83] = 264;
0837: r[84] = 270;
0838: r[85] = 276;
0839: r[86] = 282;
0840: r[87] = 285;
0841: r[88] = 287;
0842: r[89] = 292;
0843: r[90] = 296;
0844: r[91] = 299;
0845: r[92] = 308;
0846: r[93] = 315;
0847: r[94] = 322;
0848: r[95] = 330;
0849: r[96] = 337;
0850: r[97] = 340;
0851: r[98] = 342;
0852: r[99] = 343;
0853: r[100] = 350;
0854: r[101] = 355;
0855: r[102] = 361;
0856: r[103] = 367;
0857: r[104] = 373;
0858: r[105] = 380;
0859: r[106] = 381;
0860: r[107] = 382;
0861: }
0862:
0863: private static short[] create__resolver_scanner_index_offsets() {
0864: short[] r = new short[108];
0865: init__resolver_scanner_index_offsets_0(r);
0866: return r;
0867: }
0868:
0869: private static final short _resolver_scanner_index_offsets[] = create__resolver_scanner_index_offsets();
0870:
0871: private static void init__resolver_scanner_indicies_0(byte[] r) {
0872: r[0] = 0;
0873: r[1] = 3;
0874: r[2] = 4;
0875: r[3] = 5;
0876: r[4] = 7;
0877: r[5] = 8;
0878: r[6] = 9;
0879: r[7] = 10;
0880: r[8] = 11;
0881: r[9] = 12;
0882: r[10] = 13;
0883: r[11] = 14;
0884: r[12] = 15;
0885: r[13] = 16;
0886: r[14] = 17;
0887: r[15] = 18;
0888: r[16] = 0;
0889: r[17] = 2;
0890: r[18] = 6;
0891: r[19] = 1;
0892: r[20] = 3;
0893: r[21] = 19;
0894: r[22] = 20;
0895: r[23] = 21;
0896: r[24] = 1;
0897: r[25] = 3;
0898: r[26] = 22;
0899: r[27] = 3;
0900: r[28] = 1;
0901: r[29] = 23;
0902: r[30] = 23;
0903: r[31] = 1;
0904: r[32] = 24;
0905: r[33] = 1;
0906: r[34] = 25;
0907: r[35] = 26;
0908: r[36] = 22;
0909: r[37] = 1;
0910: r[38] = 27;
0911: r[39] = 28;
0912: r[40] = 1;
0913: r[41] = 29;
0914: r[42] = 1;
0915: r[43] = 29;
0916: r[44] = 1;
0917: r[45] = 28;
0918: r[46] = 1;
0919: r[47] = 3;
0920: r[48] = 22;
0921: r[49] = 31;
0922: r[50] = 30;
0923: r[51] = 1;
0924: r[52] = 32;
0925: r[53] = 33;
0926: r[54] = 1;
0927: r[55] = 24;
0928: r[56] = 31;
0929: r[57] = 33;
0930: r[58] = 1;
0931: r[59] = 24;
0932: r[60] = 31;
0933: r[61] = 1;
0934: r[62] = 34;
0935: r[63] = 34;
0936: r[64] = 1;
0937: r[65] = 35;
0938: r[66] = 35;
0939: r[67] = 35;
0940: r[68] = 35;
0941: r[69] = 35;
0942: r[70] = 1;
0943: r[71] = 36;
0944: r[72] = 37;
0945: r[73] = 1;
0946: r[74] = 38;
0947: r[75] = 39;
0948: r[76] = 1;
0949: r[77] = 25;
0950: r[78] = 40;
0951: r[79] = 26;
0952: r[80] = 41;
0953: r[81] = 22;
0954: r[82] = 1;
0955: r[83] = 42;
0956: r[84] = 42;
0957: r[85] = 1;
0958: r[86] = 29;
0959: r[87] = 1;
0960: r[88] = 43;
0961: r[89] = 1;
0962: r[90] = 29;
0963: r[91] = 1;
0964: r[92] = 44;
0965: r[93] = 1;
0966: r[94] = 45;
0967: r[95] = 46;
0968: r[96] = 1;
0969: r[97] = 47;
0970: r[98] = 1;
0971: r[99] = 48;
0972: r[100] = 48;
0973: r[101] = 50;
0974: r[102] = 50;
0975: r[103] = 49;
0976: r[104] = 1;
0977: r[105] = 48;
0978: r[106] = 48;
0979: r[107] = 51;
0980: r[108] = 1;
0981: r[109] = 53;
0982: r[110] = 52;
0983: r[111] = 1;
0984: r[112] = 53;
0985: r[113] = 1;
0986: r[114] = 54;
0987: r[115] = 1;
0988: r[116] = 55;
0989: r[117] = 1;
0990: r[118] = 56;
0991: r[119] = 1;
0992: r[120] = 57;
0993: r[121] = 1;
0994: r[122] = 58;
0995: r[123] = 1;
0996: r[124] = 59;
0997: r[125] = 59;
0998: r[126] = 60;
0999: r[127] = 60;
1000: r[128] = 61;
1001: r[129] = 1;
1002: r[130] = 62;
1003: r[131] = 1;
1004: r[132] = 63;
1005: r[133] = 1;
1006: r[134] = 61;
1007: r[135] = 1;
1008: r[136] = 48;
1009: r[137] = 48;
1010: r[138] = 50;
1011: r[139] = 50;
1012: r[140] = 1;
1013: r[141] = 51;
1014: r[142] = 1;
1015: r[143] = 64;
1016: r[144] = 1;
1017: r[145] = 65;
1018: r[146] = 1;
1019: r[147] = 48;
1020: r[148] = 48;
1021: r[149] = 50;
1022: r[150] = 50;
1023: r[151] = 66;
1024: r[152] = 1;
1025: r[153] = 3;
1026: r[154] = 67;
1027: r[155] = 22;
1028: r[156] = 31;
1029: r[157] = 30;
1030: r[158] = 1;
1031: r[159] = 3;
1032: r[160] = 22;
1033: r[161] = 31;
1034: r[162] = 68;
1035: r[163] = 1;
1036: r[164] = 3;
1037: r[165] = 22;
1038: r[166] = 31;
1039: r[167] = 69;
1040: r[168] = 1;
1041: r[169] = 70;
1042: r[170] = 1;
1043: r[171] = 71;
1044: r[172] = 72;
1045: r[173] = 1;
1046: r[174] = 73;
1047: r[175] = 1;
1048: r[176] = 74;
1049: r[177] = 1;
1050: r[178] = 75;
1051: r[179] = 1;
1052: r[180] = 76;
1053: r[181] = 1;
1054: r[182] = 77;
1055: r[183] = 1;
1056: r[184] = 75;
1057: r[185] = 1;
1058: r[186] = 75;
1059: r[187] = 78;
1060: r[188] = 75;
1061: r[189] = 79;
1062: r[190] = 1;
1063: r[191] = 80;
1064: r[192] = 1;
1065: r[193] = 0;
1066: r[194] = 1;
1067: r[195] = 81;
1068: r[196] = 1;
1069: r[197] = 0;
1070: r[198] = 1;
1071: r[199] = 82;
1072: r[200] = 75;
1073: r[201] = 83;
1074: r[202] = 75;
1075: r[203] = 1;
1076: r[204] = 75;
1077: r[205] = 1;
1078: r[206] = 75;
1079: r[207] = 1;
1080: r[208] = 84;
1081: r[209] = 85;
1082: r[210] = 1;
1083: r[211] = 74;
1084: r[212] = 1;
1085: r[213] = 77;
1086: r[214] = 1;
1087: r[215] = 86;
1088: r[216] = 87;
1089: r[217] = 1;
1090: r[218] = 75;
1091: r[219] = 1;
1092: r[220] = 75;
1093: r[221] = 1;
1094: r[222] = 72;
1095: r[223] = 1;
1096: r[224] = 75;
1097: r[225] = 79;
1098: r[226] = 1;
1099: r[227] = 83;
1100: r[228] = 75;
1101: r[229] = 1;
1102: r[230] = 85;
1103: r[231] = 1;
1104: r[232] = 87;
1105: r[233] = 1;
1106: r[234] = 1;
1107: r[235] = 88;
1108: r[236] = 88;
1109: r[237] = 22;
1110: r[238] = 1;
1111: r[239] = 24;
1112: r[240] = 1;
1113: r[241] = 1;
1114: r[242] = 3;
1115: r[243] = 22;
1116: r[244] = 31;
1117: r[245] = 90;
1118: r[246] = 91;
1119: r[247] = 92;
1120: r[248] = 89;
1121: r[249] = 30;
1122: r[250] = 1;
1123: r[251] = 3;
1124: r[252] = 22;
1125: r[253] = 31;
1126: r[254] = 90;
1127: r[255] = 89;
1128: r[256] = 30;
1129: r[257] = 1;
1130: r[258] = 90;
1131: r[259] = 90;
1132: r[260] = 1;
1133: r[261] = 34;
1134: r[262] = 34;
1135: r[263] = 1;
1136: r[264] = 35;
1137: r[265] = 35;
1138: r[266] = 35;
1139: r[267] = 35;
1140: r[268] = 35;
1141: r[269] = 1;
1142: r[270] = 93;
1143: r[271] = 22;
1144: r[272] = 94;
1145: r[273] = 95;
1146: r[274] = 21;
1147: r[275] = 1;
1148: r[276] = 93;
1149: r[277] = 22;
1150: r[278] = 96;
1151: r[279] = 95;
1152: r[280] = 93;
1153: r[281] = 1;
1154: r[282] = 96;
1155: r[283] = 37;
1156: r[284] = 1;
1157: r[285] = 96;
1158: r[286] = 1;
1159: r[287] = 95;
1160: r[288] = 96;
1161: r[289] = 95;
1162: r[290] = 95;
1163: r[291] = 1;
1164: r[292] = 24;
1165: r[293] = 94;
1166: r[294] = 39;
1167: r[295] = 1;
1168: r[296] = 24;
1169: r[297] = 94;
1170: r[298] = 1;
1171: r[299] = 3;
1172: r[300] = 22;
1173: r[301] = 31;
1174: r[302] = 90;
1175: r[303] = 91;
1176: r[304] = 92;
1177: r[305] = 97;
1178: r[306] = 98;
1179: r[307] = 1;
1180: r[308] = 3;
1181: r[309] = 22;
1182: r[310] = 31;
1183: r[311] = 90;
1184: r[312] = 99;
1185: r[313] = 69;
1186: r[314] = 1;
1187: r[315] = 3;
1188: r[316] = 22;
1189: r[317] = 31;
1190: r[318] = 90;
1191: r[319] = 100;
1192: r[320] = 68;
1193: r[321] = 1;
1194: r[322] = 3;
1195: r[323] = 67;
1196: r[324] = 22;
1197: r[325] = 31;
1198: r[326] = 90;
1199: r[327] = 89;
1200: r[328] = 30;
1201: r[329] = 1;
1202: r[330] = 59;
1203: r[331] = 59;
1204: r[332] = 60;
1205: r[333] = 60;
1206: r[334] = 101;
1207: r[335] = 61;
1208: r[336] = 1;
1209: r[337] = 103;
1210: r[338] = 102;
1211: r[339] = 1;
1212: r[340] = 103;
1213: r[341] = 1;
1214: r[342] = 1;
1215: r[343] = 59;
1216: r[344] = 59;
1217: r[345] = 60;
1218: r[346] = 60;
1219: r[347] = 61;
1220: r[348] = 101;
1221: r[349] = 1;
1222: r[350] = 48;
1223: r[351] = 48;
1224: r[352] = 50;
1225: r[353] = 50;
1226: r[354] = 1;
1227: r[355] = 93;
1228: r[356] = 22;
1229: r[357] = 94;
1230: r[358] = 95;
1231: r[359] = 104;
1232: r[360] = 1;
1233: r[361] = 93;
1234: r[362] = 22;
1235: r[363] = 94;
1236: r[364] = 95;
1237: r[365] = 105;
1238: r[366] = 1;
1239: r[367] = 93;
1240: r[368] = 22;
1241: r[369] = 94;
1242: r[370] = 95;
1243: r[371] = 106;
1244: r[372] = 1;
1245: r[373] = 93;
1246: r[374] = 67;
1247: r[375] = 22;
1248: r[376] = 94;
1249: r[377] = 95;
1250: r[378] = 21;
1251: r[379] = 1;
1252: r[380] = 1;
1253: r[381] = 1;
1254: r[382] = 1;
1255: r[383] = 0;
1256: }
1257:
1258: private static byte[] create__resolver_scanner_indicies() {
1259: byte[] r = new byte[384];
1260: init__resolver_scanner_indicies_0(r);
1261: return r;
1262: }
1263:
1264: private static final byte _resolver_scanner_indicies[] = create__resolver_scanner_indicies();
1265:
1266: private static void init__resolver_scanner_trans_targs_wi_0(byte[] r) {
1267: r[0] = 75;
1268: r[1] = 0;
1269: r[2] = 2;
1270: r[3] = 3;
1271: r[4] = 19;
1272: r[5] = 91;
1273: r[6] = 101;
1274: r[7] = 48;
1275: r[8] = 106;
1276: r[9] = 49;
1277: r[10] = 56;
1278: r[11] = 61;
1279: r[12] = 64;
1280: r[13] = 67;
1281: r[14] = 70;
1282: r[15] = 71;
1283: r[16] = 72;
1284: r[17] = 73;
1285: r[18] = 74;
1286: r[19] = 6;
1287: r[20] = 79;
1288: r[21] = 84;
1289: r[22] = 76;
1290: r[23] = 5;
1291: r[24] = 77;
1292: r[25] = 7;
1293: r[26] = 10;
1294: r[27] = 8;
1295: r[28] = 9;
1296: r[29] = 78;
1297: r[30] = 11;
1298: r[31] = 12;
1299: r[32] = 13;
1300: r[33] = 14;
1301: r[34] = 82;
1302: r[35] = 83;
1303: r[36] = 86;
1304: r[37] = 87;
1305: r[38] = 89;
1306: r[39] = 90;
1307: r[40] = 20;
1308: r[41] = 22;
1309: r[42] = 21;
1310: r[43] = 23;
1311: r[44] = 25;
1312: r[45] = 26;
1313: r[46] = 42;
1314: r[47] = 27;
1315: r[48] = 28;
1316: r[49] = 40;
1317: r[50] = 41;
1318: r[51] = 29;
1319: r[52] = 30;
1320: r[53] = 31;
1321: r[54] = 32;
1322: r[55] = 33;
1323: r[56] = 34;
1324: r[57] = 35;
1325: r[58] = 95;
1326: r[59] = 36;
1327: r[60] = 37;
1328: r[61] = 98;
1329: r[62] = 96;
1330: r[63] = 39;
1331: r[64] = 43;
1332: r[65] = 44;
1333: r[66] = 100;
1334: r[67] = 24;
1335: r[68] = 45;
1336: r[69] = 46;
1337: r[70] = 105;
1338: r[71] = 50;
1339: r[72] = 53;
1340: r[73] = 51;
1341: r[74] = 52;
1342: r[75] = 107;
1343: r[76] = 54;
1344: r[77] = 55;
1345: r[78] = 57;
1346: r[79] = 59;
1347: r[80] = 58;
1348: r[81] = 60;
1349: r[82] = 62;
1350: r[83] = 63;
1351: r[84] = 65;
1352: r[85] = 66;
1353: r[86] = 68;
1354: r[87] = 69;
1355: r[88] = 4;
1356: r[89] = 80;
1357: r[90] = 81;
1358: r[91] = 15;
1359: r[92] = 16;
1360: r[93] = 85;
1361: r[94] = 18;
1362: r[95] = 88;
1363: r[96] = 17;
1364: r[97] = 92;
1365: r[98] = 47;
1366: r[99] = 93;
1367: r[100] = 94;
1368: r[101] = 99;
1369: r[102] = 97;
1370: r[103] = 38;
1371: r[104] = 102;
1372: r[105] = 103;
1373: r[106] = 104;
1374: }
1375:
1376: private static byte[] create__resolver_scanner_trans_targs_wi() {
1377: byte[] r = new byte[107];
1378: init__resolver_scanner_trans_targs_wi_0(r);
1379: return r;
1380: }
1381:
1382: private static final byte _resolver_scanner_trans_targs_wi[] = create__resolver_scanner_trans_targs_wi();
1383:
1384: private static void init__resolver_scanner_trans_actions_wi_0(
1385: byte[] r) {
1386: r[0] = 0;
1387: r[1] = 0;
1388: r[2] = 0;
1389: r[3] = 0;
1390: r[4] = 0;
1391: r[5] = 0;
1392: r[6] = 0;
1393: r[7] = 0;
1394: r[8] = 0;
1395: r[9] = 0;
1396: r[10] = 0;
1397: r[11] = 0;
1398: r[12] = 0;
1399: r[13] = 0;
1400: r[14] = 0;
1401: r[15] = 0;
1402: r[16] = 0;
1403: r[17] = 0;
1404: r[18] = 0;
1405: r[19] = 0;
1406: r[20] = 0;
1407: r[21] = 0;
1408: r[22] = 0;
1409: r[23] = 0;
1410: r[24] = 0;
1411: r[25] = 0;
1412: r[26] = 0;
1413: r[27] = 0;
1414: r[28] = 0;
1415: r[29] = 0;
1416: r[30] = 0;
1417: r[31] = 0;
1418: r[32] = 0;
1419: r[33] = 0;
1420: r[34] = 0;
1421: r[35] = 0;
1422: r[36] = 0;
1423: r[37] = 0;
1424: r[38] = 0;
1425: r[39] = 0;
1426: r[40] = 0;
1427: r[41] = 0;
1428: r[42] = 0;
1429: r[43] = 0;
1430: r[44] = 0;
1431: r[45] = 0;
1432: r[46] = 0;
1433: r[47] = 0;
1434: r[48] = 0;
1435: r[49] = 0;
1436: r[50] = 0;
1437: r[51] = 0;
1438: r[52] = 0;
1439: r[53] = 0;
1440: r[54] = 0;
1441: r[55] = 0;
1442: r[56] = 0;
1443: r[57] = 0;
1444: r[58] = 0;
1445: r[59] = 0;
1446: r[60] = 0;
1447: r[61] = 0;
1448: r[62] = 0;
1449: r[63] = 0;
1450: r[64] = 0;
1451: r[65] = 0;
1452: r[66] = 0;
1453: r[67] = 0;
1454: r[68] = 0;
1455: r[69] = 0;
1456: r[70] = 0;
1457: r[71] = 0;
1458: r[72] = 0;
1459: r[73] = 0;
1460: r[74] = 0;
1461: r[75] = 0;
1462: r[76] = 0;
1463: r[77] = 0;
1464: r[78] = 0;
1465: r[79] = 0;
1466: r[80] = 0;
1467: r[81] = 0;
1468: r[82] = 0;
1469: r[83] = 0;
1470: r[84] = 0;
1471: r[85] = 0;
1472: r[86] = 0;
1473: r[87] = 0;
1474: r[88] = 0;
1475: r[89] = 0;
1476: r[90] = 0;
1477: r[91] = 0;
1478: r[92] = 0;
1479: r[93] = 0;
1480: r[94] = 0;
1481: r[95] = 0;
1482: r[96] = 0;
1483: r[97] = 0;
1484: r[98] = 0;
1485: r[99] = 0;
1486: r[100] = 0;
1487: r[101] = 0;
1488: r[102] = 0;
1489: r[103] = 0;
1490: r[104] = 0;
1491: r[105] = 0;
1492: r[106] = 0;
1493: }
1494:
1495: private static byte[] create__resolver_scanner_trans_actions_wi() {
1496: byte[] r = new byte[107];
1497: init__resolver_scanner_trans_actions_wi_0(r);
1498: return r;
1499: }
1500:
1501: private static final byte _resolver_scanner_trans_actions_wi[] = create__resolver_scanner_trans_actions_wi();
1502:
1503: private static void init__resolver_scanner_eof_actions_0(byte[] r) {
1504: r[0] = 0;
1505: r[1] = 0;
1506: r[2] = 0;
1507: r[3] = 0;
1508: r[4] = 0;
1509: r[5] = 0;
1510: r[6] = 0;
1511: r[7] = 0;
1512: r[8] = 0;
1513: r[9] = 0;
1514: r[10] = 0;
1515: r[11] = 0;
1516: r[12] = 0;
1517: r[13] = 0;
1518: r[14] = 0;
1519: r[15] = 0;
1520: r[16] = 0;
1521: r[17] = 0;
1522: r[18] = 0;
1523: r[19] = 0;
1524: r[20] = 0;
1525: r[21] = 0;
1526: r[22] = 0;
1527: r[23] = 0;
1528: r[24] = 0;
1529: r[25] = 0;
1530: r[26] = 0;
1531: r[27] = 0;
1532: r[28] = 0;
1533: r[29] = 0;
1534: r[30] = 0;
1535: r[31] = 0;
1536: r[32] = 0;
1537: r[33] = 0;
1538: r[34] = 0;
1539: r[35] = 0;
1540: r[36] = 0;
1541: r[37] = 0;
1542: r[38] = 0;
1543: r[39] = 0;
1544: r[40] = 0;
1545: r[41] = 0;
1546: r[42] = 0;
1547: r[43] = 0;
1548: r[44] = 0;
1549: r[45] = 0;
1550: r[46] = 0;
1551: r[47] = 0;
1552: r[48] = 0;
1553: r[49] = 0;
1554: r[50] = 0;
1555: r[51] = 0;
1556: r[52] = 0;
1557: r[53] = 0;
1558: r[54] = 0;
1559: r[55] = 0;
1560: r[56] = 0;
1561: r[57] = 0;
1562: r[58] = 0;
1563: r[59] = 0;
1564: r[60] = 0;
1565: r[61] = 0;
1566: r[62] = 0;
1567: r[63] = 0;
1568: r[64] = 0;
1569: r[65] = 0;
1570: r[66] = 0;
1571: r[67] = 0;
1572: r[68] = 0;
1573: r[69] = 0;
1574: r[70] = 0;
1575: r[71] = 0;
1576: r[72] = 0;
1577: r[73] = 0;
1578: r[74] = 0;
1579: r[75] = 5;
1580: r[76] = 13;
1581: r[77] = 13;
1582: r[78] = 13;
1583: r[79] = 15;
1584: r[80] = 15;
1585: r[81] = 15;
1586: r[82] = 15;
1587: r[83] = 15;
1588: r[84] = 15;
1589: r[85] = 15;
1590: r[86] = 15;
1591: r[87] = 15;
1592: r[88] = 15;
1593: r[89] = 15;
1594: r[90] = 15;
1595: r[91] = 15;
1596: r[92] = 15;
1597: r[93] = 15;
1598: r[94] = 15;
1599: r[95] = 9;
1600: r[96] = 9;
1601: r[97] = 9;
1602: r[98] = 9;
1603: r[99] = 9;
1604: r[100] = 7;
1605: r[101] = 15;
1606: r[102] = 15;
1607: r[103] = 15;
1608: r[104] = 15;
1609: r[105] = 3;
1610: r[106] = 11;
1611: r[107] = 1;
1612: }
1613:
1614: private static byte[] create__resolver_scanner_eof_actions() {
1615: byte[] r = new byte[108];
1616: init__resolver_scanner_eof_actions_0(r);
1617: return r;
1618: }
1619:
1620: private static final byte _resolver_scanner_eof_actions[] = create__resolver_scanner_eof_actions();
1621:
1622: static final int resolver_scanner_start = 1;
1623: static final int resolver_scanner_error = 0;
1624:
1625: static final int resolver_scanner_en_main = 1;
1626:
1627: // line 55 "src/org/jvyamlb/resolver_scanner.rl"
1628:
1629: public String recognize(ByteList list) {
1630: String tag = null;
1631: int cs;
1632: int act;
1633: int have = 0;
1634: int nread = 0;
1635: int p = list.begin;
1636: int pe = p + list.realSize;
1637: int tokstart = -1;
1638: int tokend = -1;
1639:
1640: byte[] data = list.bytes;
1641: if (pe == 0) {
1642: data = new byte[] { (byte) '~' };
1643: pe = 1;
1644: }
1645:
1646: // line 372 "src/org/jvyamlb/ResolverScanner.java"
1647: {
1648: cs = resolver_scanner_start;
1649: }
1650: // line 74 "src/org/jvyamlb/resolver_scanner.rl"
1651:
1652: // line 379 "src/org/jvyamlb/ResolverScanner.java"
1653: {
1654: int _klen;
1655: int _trans;
1656: int _keys;
1657:
1658: if (p != pe) {
1659: if (cs != 0) {
1660: _resume: while (true) {
1661: _again: do {
1662: _match: do {
1663: _keys = _resolver_scanner_key_offsets[cs];
1664: _trans = _resolver_scanner_index_offsets[cs];
1665: _klen = _resolver_scanner_single_lengths[cs];
1666: if (_klen > 0) {
1667: int _lower = _keys;
1668: int _mid;
1669: int _upper = _keys + _klen - 1;
1670: while (true) {
1671: if (_upper < _lower)
1672: break;
1673:
1674: _mid = _lower
1675: + ((_upper - _lower) >> 1);
1676: if (data[p] < _resolver_scanner_trans_keys[_mid])
1677: _upper = _mid - 1;
1678: else if (data[p] > _resolver_scanner_trans_keys[_mid])
1679: _lower = _mid + 1;
1680: else {
1681: _trans += (_mid - _keys);
1682: break _match;
1683: }
1684: }
1685: _keys += _klen;
1686: _trans += _klen;
1687: }
1688:
1689: _klen = _resolver_scanner_range_lengths[cs];
1690: if (_klen > 0) {
1691: int _lower = _keys;
1692: int _mid;
1693: int _upper = _keys + (_klen << 1)
1694: - 2;
1695: while (true) {
1696: if (_upper < _lower)
1697: break;
1698:
1699: _mid = _lower
1700: + (((_upper - _lower) >> 1) & ~1);
1701: if (data[p] < _resolver_scanner_trans_keys[_mid])
1702: _upper = _mid - 2;
1703: else if (data[p] > _resolver_scanner_trans_keys[_mid + 1])
1704: _lower = _mid + 2;
1705: else {
1706: _trans += ((_mid - _keys) >> 1);
1707: break _match;
1708: }
1709: }
1710: _trans += _klen;
1711: }
1712: } while (false);
1713:
1714: _trans = _resolver_scanner_indicies[_trans];
1715: cs = _resolver_scanner_trans_targs_wi[_trans];
1716:
1717: } while (false);
1718: if (cs == 0)
1719: break _resume;
1720: if (++p == pe)
1721: break _resume;
1722: }
1723: }
1724: }
1725: }
1726: // line 76 "src/org/jvyamlb/resolver_scanner.rl"
1727:
1728: // line 452 "src/org/jvyamlb/ResolverScanner.java"
1729: int _acts = _resolver_scanner_eof_actions[cs];
1730: int _nacts = (int) _resolver_scanner_actions[_acts++];
1731: while (_nacts-- > 0) {
1732: switch (_resolver_scanner_actions[_acts++]) {
1733: case 0:
1734: // line 10 "src/org/jvyamlb/resolver_scanner.rl"
1735: {
1736: tag = "tag:yaml.org,2002:bool";
1737: }
1738: break;
1739: case 1:
1740: // line 11 "src/org/jvyamlb/resolver_scanner.rl"
1741: {
1742: tag = "tag:yaml.org,2002:merge";
1743: }
1744: break;
1745: case 2:
1746: // line 12 "src/org/jvyamlb/resolver_scanner.rl"
1747: {
1748: tag = "tag:yaml.org,2002:null";
1749: }
1750: break;
1751: case 3:
1752: // line 13 "src/org/jvyamlb/resolver_scanner.rl"
1753: {
1754: tag = "tag:yaml.org,2002:timestamp#ymd";
1755: }
1756: break;
1757: case 4:
1758: // line 14 "src/org/jvyamlb/resolver_scanner.rl"
1759: {
1760: tag = "tag:yaml.org,2002:timestamp";
1761: }
1762: break;
1763: case 5:
1764: // line 15 "src/org/jvyamlb/resolver_scanner.rl"
1765: {
1766: tag = "tag:yaml.org,2002:value";
1767: }
1768: break;
1769: case 6:
1770: // line 16 "src/org/jvyamlb/resolver_scanner.rl"
1771: {
1772: tag = "tag:yaml.org,2002:float";
1773: }
1774: break;
1775: case 7:
1776: // line 17 "src/org/jvyamlb/resolver_scanner.rl"
1777: {
1778: tag = "tag:yaml.org,2002:int";
1779: }
1780: break;
1781: // line 489 "src/org/jvyamlb/ResolverScanner.java"
1782: }
1783: }
1784:
1785: // line 78 "src/org/jvyamlb/resolver_scanner.rl"
1786: return tag;
1787: }
1788:
1789: public static void main(String[] args) {
1790: ByteList b = new ByteList(78);
1791: b.append(args[0].getBytes());
1792: /*
1793: for(int i=0;i<b.realSize;i++) {
1794: System.err.println("byte " + i + " is " + b.bytes[i] + " char is: " + args[0].charAt(i));
1795: }
1796: */
1797: System.err.println(new ResolverScanner().recognize(b));
1798: }
1799: }
|