1 package com.tonbeller.jpivot.olap.mdxparse; 2 import java_cup.runtime.Symbol; 3 4 5 class Yylex implements java_cup.runtime.Scanner { 6 private final int YY_BUFFER_SIZE = 512; 7 private final int YY_F = -1; 8 private final int YY_NO_STATE = -1; 9 private final int YY_NOT_ACCEPT = 0; 10 private final int YY_START = 1; 11 private final int YY_END = 2; 12 private final int YY_NO_ANCHOR = 4; 13 private final int YY_BOL = 65536; 14 private final int YY_EOF = 65537; 15 private java.io.BufferedReader yy_reader; 16 private int yy_buffer_index; 17 private int yy_buffer_read; 18 private int yy_buffer_start; 19 private int yy_buffer_end; 20 private char yy_buffer[]; 21 private boolean yy_at_bol; 22 private int yy_lexical_state; 23 24 Yylex (java.io.Reader reader) { 25 this (); 26 if (null == reader) { 27 throw (new Error ("Error: Bad input stream initializer.")); 28 } 29 yy_reader = new java.io.BufferedReader (reader); 30 } 31 32 Yylex (java.io.InputStream instream) { 33 this (); 34 if (null == instream) { 35 throw (new Error ("Error: Bad input stream initializer.")); 36 } 37 yy_reader = new java.io.BufferedReader (new java.io.InputStreamReader (instream)); 38 } 39 40 private Yylex () { 41 yy_buffer = new char[YY_BUFFER_SIZE]; 42 yy_buffer_read = 0; 43 yy_buffer_index = 0; 44 yy_buffer_start = 0; 45 yy_buffer_end = 0; 46 yy_at_bol = true; 47 yy_lexical_state = YYINITIAL; 48 } 49 50 private boolean yy_eof_done = false; 51 private final int YYINITIAL = 0; 52 private final int AFTER_AS2 = 2; 53 private final int AFTER_AS1 = 1; 54 private final int yy_state_dtrans[] = { 55 0, 56 74, 57 76 58 }; 59 private void yybegin (int state) { 60 yy_lexical_state = state; 61 } 62 private int yy_advance () 63 throws java.io.IOException { 64 int next_read; 65 int i; 66 int j; 67 68 if (yy_buffer_index < yy_buffer_read) { 69 return yy_buffer[yy_buffer_index++]; 70 } 71 72 if (0 != yy_buffer_start) { 73 i = yy_buffer_start; 74 j = 0; 75 while (i < yy_buffer_read) { 76 yy_buffer[j] = yy_buffer[i]; 77 ++i; 78 ++j; 79 } 80 yy_buffer_end = yy_buffer_end - yy_buffer_start; 81 yy_buffer_start = 0; 82 yy_buffer_read = j; 83 yy_buffer_index = j; 84 next_read = yy_reader.read(yy_buffer, 85 yy_buffer_read, 86 yy_buffer.length - yy_buffer_read); 87 if (-1 == next_read) { 88 return YY_EOF; 89 } 90 yy_buffer_read = yy_buffer_read + next_read; 91 } 92 93 while (yy_buffer_index >= yy_buffer_read) { 94 if (yy_buffer_index >= yy_buffer.length) { 95 yy_buffer = yy_double(yy_buffer); 96 } 97 next_read = yy_reader.read(yy_buffer, 98 yy_buffer_read, 99 yy_buffer.length - yy_buffer_read); 100 if (-1 == next_read) { 101 return YY_EOF; 102 } 103 yy_buffer_read = yy_buffer_read + next_read; 104 } 105 return yy_buffer[yy_buffer_index++]; 106 } 107 private void yy_move_end () { 108 if (yy_buffer_end > yy_buffer_start && 109 '\n' == yy_buffer[yy_buffer_end-1]) 110 yy_buffer_end--; 111 if (yy_buffer_end > yy_buffer_start && 112 '\r' == yy_buffer[yy_buffer_end-1]) 113 yy_buffer_end--; 114 } 115 private boolean yy_last_was_cr=false; 116 private void yy_mark_start () { 117 yy_buffer_start = yy_buffer_index; 118 } 119 private void yy_mark_end () { 120 yy_buffer_end = yy_buffer_index; 121 } 122 private void yy_to_mark () { 123 yy_buffer_index = yy_buffer_end; 124 yy_at_bol = (yy_buffer_end > yy_buffer_start) && 125 ('\r' == yy_buffer[yy_buffer_end-1] || 126 '\n' == yy_buffer[yy_buffer_end-1] || 127 2028 == yy_buffer[yy_buffer_end-1] || 128 2029 == yy_buffer[yy_buffer_end-1]); 129 } 130 private java.lang.String yytext () { 131 return (new java.lang.String (yy_buffer, 132 yy_buffer_start, 133 yy_buffer_end - yy_buffer_start)); 134 } 135 private int yylength () { 136 return yy_buffer_end - yy_buffer_start; 137 } 138 private char[] yy_double (char buf[]) { 139 int i; 140 char newbuf[]; 141 newbuf = new char[2*buf.length]; 142 for (i = 0; i < buf.length; ++i) { 143 newbuf[i] = buf[i]; 144 } 145 return newbuf; 146 } 147 private final int YY_E_INTERNAL = 0; 148 private final int YY_E_MATCH = 1; 149 private java.lang.String yy_error_string[] = { 150 "Error: Internal error.\n", 151 "Error: Unmatched input.\n" 152 }; 153 private void yy_error (int code,boolean fatal) { 154 java.lang.System.out.print(yy_error_string[code]); 155 java.lang.System.out.flush(); 156 if (fatal) { 157 throw new Error ("Fatal Error.\n"); 158 } 159 } 160 private int[][] unpackFromString(int size1, int size2, String st) { 161 int colonIndex = -1; 162 String lengthString; 163 int sequenceLength = 0; 164 int sequenceInteger = 0; 165 166 int commaIndex; 167 String workString; 168 169 int res[][] = new int[size1][size2]; 170 for (int i= 0; i < size1; i++) { 171 for (int j= 0; j < size2; j++) { 172 if (sequenceLength != 0) { 173 res[i][j] = sequenceInteger; 174 sequenceLength--; 175 continue; 176 } 177 commaIndex = st.indexOf(','); 178 workString = (commaIndex==-1) ? st : 179 st.substring(0, commaIndex); 180 st = st.substring(commaIndex+1); 181 colonIndex = workString.indexOf(':'); 182 if (colonIndex == -1) { 183 res[i][j]=Integer.parseInt(workString); 184 continue; 185 } 186 lengthString = 187 workString.substring(colonIndex+1); 188 sequenceLength=Integer.parseInt(lengthString); 189 workString=workString.substring(0,colonIndex); 190 sequenceInteger=Integer.parseInt(workString); 191 res[i][j] = sequenceInteger; 192 sequenceLength--; 193 } 194 } 195 return res; 196 } 197 private int yy_acpt[] = { 198 YY_NOT_ACCEPT, 199 YY_NO_ANCHOR, 200 YY_NO_ANCHOR, 201 YY_NO_ANCHOR, 202 YY_NO_ANCHOR, 203 YY_NO_ANCHOR, 204 YY_NO_ANCHOR, 205 YY_NO_ANCHOR, 206 YY_NO_ANCHOR, 207 YY_NO_ANCHOR, 208 YY_NO_ANCHOR, 209 YY_NO_ANCHOR, 210 YY_NO_ANCHOR, 211 YY_NO_ANCHOR, 212 YY_NO_ANCHOR, 213 YY_NO_ANCHOR, 214 YY_NO_ANCHOR, 215 YY_NO_ANCHOR, 216 YY_NO_ANCHOR, 217 YY_NO_ANCHOR, 218 YY_NO_ANCHOR, 219 YY_NO_ANCHOR, 220 YY_NO_ANCHOR, 221 YY_NO_ANCHOR, 222 YY_NO_ANCHOR, 223 YY_NO_ANCHOR, 224 YY_NO_ANCHOR, 225 YY_NO_ANCHOR, 226 YY_NO_ANCHOR, 227 YY_NO_ANCHOR, 228 YY_NO_ANCHOR, 229 YY_NO_ANCHOR, 230 YY_NO_ANCHOR, 231 YY_NO_ANCHOR, 232 YY_NO_ANCHOR, 233 YY_NO_ANCHOR, 234 YY_NO_ANCHOR, 235 YY_NO_ANCHOR, 236 YY_NO_ANCHOR, 237 YY_NO_ANCHOR, 238 YY_NO_ANCHOR, 239 YY_NO_ANCHOR, 240 YY_NO_ANCHOR, 241 YY_NO_ANCHOR, 242 YY_NO_ANCHOR, 243 YY_NO_ANCHOR, 244 YY_NO_ANCHOR, 245 YY_NO_ANCHOR, 246 YY_NO_ANCHOR, 247 YY_NO_ANCHOR, 248 YY_NO_ANCHOR, 249 YY_NO_ANCHOR, 250 YY_NO_ANCHOR, 251 YY_NO_ANCHOR, 252 YY_NOT_ACCEPT, 253 YY_NO_ANCHOR, 254 YY_NO_ANCHOR, 255 YY_NO_ANCHOR, 256 YY_NOT_ACCEPT, 257 YY_NO_ANCHOR, 258 YY_NO_ANCHOR, 259 YY_NOT_ACCEPT, 260 YY_NO_ANCHOR, 261 YY_NO_ANCHOR, 262 YY_NOT_ACCEPT, 263 YY_NO_ANCHOR, 264 YY_NO_ANCHOR, 265 YY_NOT_ACCEPT, 266 YY_NO_ANCHOR, 267 YY_NO_ANCHOR, 268 YY_NOT_ACCEPT, 269 YY_NO_ANCHOR, 270 YY_NOT_ACCEPT, 271 YY_NO_ANCHOR, 272 YY_NOT_ACCEPT, 273 YY_NO_ANCHOR, 274 YY_NOT_ACCEPT, 275 YY_NO_ANCHOR, 276 YY_NO_ANCHOR, 277 YY_NO_ANCHOR, 278 YY_NO_ANCHOR, 279 YY_NO_ANCHOR, 280 YY_NO_ANCHOR, 281 YY_NO_ANCHOR, 282 YY_NO_ANCHOR, 283 YY_NO_ANCHOR, 284 YY_NO_ANCHOR, 285 YY_NO_ANCHOR, 286 YY_NO_ANCHOR, 287 YY_NO_ANCHOR, 288 YY_NO_ANCHOR, 289 YY_NO_ANCHOR, 290 YY_NO_ANCHOR, 291 YY_NO_ANCHOR, 292 YY_NO_ANCHOR, 293 YY_NO_ANCHOR, 294 YY_NO_ANCHOR, 295 YY_NO_ANCHOR, 296 YY_NO_ANCHOR, 297 YY_NO_ANCHOR, 298 YY_NO_ANCHOR, 299 YY_NO_ANCHOR, 300 YY_NO_ANCHOR, 301 YY_NO_ANCHOR, 302 YY_NO_ANCHOR, 303 YY_NO_ANCHOR, 304 YY_NO_ANCHOR, 305 YY_NO_ANCHOR, 306 YY_NO_ANCHOR, 307 YY_NO_ANCHOR, 308 YY_NO_ANCHOR, 309 YY_NO_ANCHOR, 310 YY_NO_ANCHOR, 311 YY_NO_ANCHOR, 312 YY_NO_ANCHOR, 313 YY_NO_ANCHOR, 314 YY_NO_ANCHOR, 315 YY_NO_ANCHOR, 316 YY_NO_ANCHOR, 317 YY_NO_ANCHOR, 318 YY_NO_ANCHOR, 319 YY_NO_ANCHOR, 320 YY_NO_ANCHOR, 321 YY_NO_ANCHOR, 322 YY_NO_ANCHOR, 323 YY_NO_ANCHOR, 324 YY_NO_ANCHOR, 325 YY_NO_ANCHOR, 326 YY_NO_ANCHOR, 327 YY_NO_ANCHOR, 328 YY_NO_ANCHOR, 329 YY_NO_ANCHOR, 330 YY_NO_ANCHOR, 331 YY_NO_ANCHOR, 332 YY_NO_ANCHOR, 333 YY_NO_ANCHOR, 334 YY_NO_ANCHOR, 335 YY_NO_ANCHOR, 336 YY_NO_ANCHOR, 337 YY_NO_ANCHOR 338 }; 339 private int yy_cmap[] = unpackFromString(1,65538, 340 "44:9,48:2,44,48:2,44:18,49,44,47,44:3,46,39,30,32,35,33,25,34,38,36,40:10,2" + 341 "4,44,27,26,28,44:2,1,19,5,3,6,18,15,13,8,41:2,7,9,2,20,16,41,11,4,12,14,41," + 342 "22,23,17,41,43,44,45,44,42,44,1,19,5,3,21,18,15,13,8,41:2,7,9,2,10,16,41,11" + 343 ",4,12,14,41,22,23,17,41,29,37,31,44:65410,0:2")[0]; 344 345 private int yy_rmap[] = unpackFromString(1,140, 346 "0,1,2,1:3,3,4,1:8,5,6,7,1,8:3,1:4,9,1:3,8:6,1,8:14,1:2,10,11,10,12,13,14,1," + 347 "15,16,15,17,18,19,20,21,20,12,22,13,23,24,25,26,27,28,29,30,31,32,33,34,35," + 348 "36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60," + 349 "61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,8,83,84,8" + 350 "5,86,87,88")[0]; 351 352 private int yy_nxt[][] = unpackFromString(89,50, 353 "1,2,55,120,128,130,132,133:2,134,59,133,135,133:3,136,133,137,133,62,65,138" + 354 ",139,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,56,18,133,60,63,60:2,66,69,19:2," + 355 "-1:51,133,68,133,20,133:19,-1:16,133:3,-1:33,23,-1,24,-1:47,25,-1:60,26,-1:" + 356 "52,27,-1:15,58,-1:14,58,-1:16,119,-1,18,-1:10,133:23,-1:16,133:3,-1:13,58,-" + 357 "1:14,58,-1:18,27,-1:10,54:38,28,54:8,-1,54,-1,133:9,71,133:9,71,133:3,-1:16" + 358 ",133:3,-1:47,57,-1:42,70:2,-1:5,57,-1:10,133,21,133:21,-1:16,133:3,-1:8,61:" + 359 "44,29,61:2,-1,61,-1,133,21,133:8,22,133:12,-1:16,133:3,-1:8,64:44,37,64:2,-" + 360 "1,64,-1,133,80,133:4,122,133,81,133,22,133:12,-1:16,133:3,-1:50,64,-1:7,67:" + 361 "46,30,-1,67,-1,133:2,31,133:20,-1:16,133:3,-1:8,133,32,133:9,33,133:11,-1:1" + 362 "6,133:3,-1:8,133:8,129,133:14,-1:16,133:3,-1:7,1,2,55,120,128,130,132,133:2" + 363 ",134,59,133,135,133:3,136,133,137,133,62,65,138,139,3,4,5,6,7,8,9,10,11,12," + 364 "13,14,15,16,17,52,18,133,60,63,60:2,66,69,19:2,-1,133:7,123,133:15,-1:16,13" + 365 "3:3,-1:7,1,2,55,120,128,130,132,133:2,134,59,133,135,133:3,136,133,137,133," + 366 "62,65,138,139,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,53,18,133,60,63,60:2,66" + 367 ",69,19:2,-1,133:6,131,133:4,34,133:11,-1:16,133:3,-1:8,133:3,86,133:19,-1:1" + 368 "6,133:3,-1:8,133:6,87,133:16,-1:16,133:3,-1:8,133:2,35,133:20,-1:16,133:3,-" + 369 "1:8,133:15,126,133:7,-1:16,133:3,-1:8,133:5,90,133:14,90,133:2,-1:16,133:3," + 370 "-1:8,133:9,91,133:9,91,133:3,-1:16,133:3,-1:8,133:11,93,133:11,-1:16,133:3," + 371 "-1:8,133:10,36,133:12,-1:16,133:3,-1:8,133:5,38,133:14,38,133:2,-1:16,133:3" + 372 ",-1:8,133:6,39,133:16,-1:16,133:3,-1:8,133:5,40,133:14,40,133:2,-1:16,133:3" + 373 ",-1:8,133:18,99,133:4,-1:16,133:3,-1:8,133,41,133:21,-1:16,133:3,-1:8,133:1" + 374 "5,127,133:7,-1:16,133:3,-1:8,133:8,42,133:14,-1:16,133:3,-1:8,133:12,43,133" + 375 ":10,-1:16,133:3,-1:8,133,44,133:8,100,133:12,-1:16,133:3,-1:8,133,101,133:2" + 376 "1,-1:16,133:3,-1:8,133:6,102,133:16,-1:16,133:3,-1:8,133:4,103,133:18,-1:16" + 377 ",133:3,-1:8,133:16,45,133:6,-1:16,133:3,-1:8,133:5,104,133:14,104,133:2,-1:" + 378 "16,133:3,-1:8,133:5,46,133:14,46,133:2,-1:16,133:3,-1:8,133:3,106,133:19,-1" + 379 ":16,133:3,-1:8,133:11,107,133:11,-1:16,133:3,-1:8,133:11,47,133:11,-1:16,13" + 380 "3:3,-1:8,133:10,48,133:12,-1:16,133:3,-1:8,133:10,108,133:12,-1:16,133:3,-1" + 381 ":8,133:7,109,133:15,-1:16,133:3,-1:8,133:12,110,133:10,-1:16,133:3,-1:8,133" + 382 ":11,111,133:11,-1:16,133:3,-1:8,133:9,112,133:9,112,133:3,-1:16,133:3,-1:8," + 383 "133:10,113,133:12,-1:16,133:3,-1:8,133:7,114,133:15,-1:16,133:3,-1:8,133,49" + 384 ",133:21,-1:16,133:3,-1:8,133:9,115,133:9,115,133:3,-1:16,133:3,-1:8,133:5,1" + 385 "16,133:14,116,133:2,-1:16,133:3,-1:8,133:13,117,133:9,-1:16,133:3,-1:8,133:" + 386 "3,50,133:19,-1:16,133:3,-1:8,133:14,118,133:8,-1:16,133:3,-1:8,133:12,51,13" + 387 "3:10,-1:16,133:3,-1:13,72,-1:14,72,-1:18,119,-1:10,133:7,73,133:2,75,133:12" + 388 ",-1:16,133:3,-1:8,133:8,89,133:14,-1:16,133:3,-1:8,133:3,88,133:19,-1:16,13" + 389 "3:3,-1:8,133:6,96,133:16,-1:16,133:3,-1:8,133:5,94,133:14,94,133:2,-1:16,13" + 390 "3:3,-1:8,133:9,92,133:9,92,133:3,-1:16,133:3,-1:8,133:11,98,133:11,-1:16,13" + 391 "3:3,-1:8,133:5,105,133:14,105,133:2,-1:16,133:3,-1:8,133:5,77,133:14,77,133" + 392 ":2,-1:16,133:3,-1:8,133:5,95,133:14,95,133:2,-1:16,133:3,-1:8,78,133:4,79,1" + 393 "33:14,79,133:2,-1:16,133:3,-1:8,133:5,97,133:14,97,133:2,-1:16,133:3,-1:8,1" + 394 "33,80,133:4,122,133,81,133:14,-1:16,133:3,-1:8,133:5,121,133:14,121,133:2,-" + 395 "1:16,133:3,-1:8,133:12,82,133:10,-1:16,133:3,-1:8,133:10,83,133:12,-1:16,13" + 396 "3:3,-1:8,133:10,125,133:12,-1:16,133:3,-1:8,133:7,84,133:4,124,133:10,-1:16" + 397 ",133:3,-1:8,133:9,85,133:9,85,133:3,-1:16,133:3,-1:7"); 398 399 public java_cup.runtime.Symbol next_token () 400 throws java.io.IOException { 401 int yy_lookahead; 402 int yy_anchor = YY_NO_ANCHOR; 403 int yy_state = yy_state_dtrans[yy_lexical_state]; 404 int yy_next_state = YY_NO_STATE; 405 int yy_last_accept_state = YY_NO_STATE; 406 boolean yy_initial = true; 407 int yy_this_accept; 408 409 yy_mark_start(); 410 yy_this_accept = yy_acpt[yy_state]; 411 if (YY_NOT_ACCEPT != yy_this_accept) { 412 yy_last_accept_state = yy_state; 413 yy_mark_end(); 414 } 415 while (true) { 416 if (yy_initial && yy_at_bol) yy_lookahead = YY_BOL; 417 else yy_lookahead = yy_advance(); 418 yy_next_state = YY_F; 419 yy_next_state = yy_nxt[yy_rmap[yy_state]][yy_cmap[yy_lookahead]]; 420 if (YY_EOF == yy_lookahead && true == yy_initial) { 421 422 return new Symbol(sym.EOF, null); 423 } 424 if (YY_F != yy_next_state) { 425 yy_state = yy_next_state; 426 yy_initial = false; 427 yy_this_accept = yy_acpt[yy_state]; 428 if (YY_NOT_ACCEPT != yy_this_accept) { 429 yy_last_accept_state = yy_state; 430 yy_mark_end(); 431 } 432 } 433 else { 434 if (YY_NO_STATE == yy_last_accept_state) { 435 throw (new Error ("Lexical Error: Unmatched Input.")); 436 } 437 else { 438 yy_anchor = yy_acpt[yy_last_accept_state]; 439 if (0 != (YY_END & yy_anchor)) { 440 yy_move_end(); 441 } 442 yy_to_mark(); 443 switch (yy_last_accept_state) { 444 case 1: 445 446 case -2: 447 break; 448 case 2: 449 { return new Symbol(sym.ID, yytext()); } 450 case -3: 451 break; 452 case 3: 453 { return new Symbol(sym.COLON, ":"); } 454 case -4: 455 break; 456 case 4: 457 { return new Symbol(sym.COMMA, ","); } 458 case -5: 459 break; 460 case 5: 461 { return new Symbol(sym.EQ, "="); } 462 case -6: 463 break; 464 case 6: 465 { return new Symbol(sym.LT, "<"); } 466 case -7: 467 break; 468 case 7: 469 { return new Symbol(sym.GT, ">"); } 470 case -8: 471 break; 472 case 8: 473 { return new Symbol(sym.LBRACE, "{"); } 474 case -9: 475 break; 476 case 9: 477 { return new Symbol(sym.LPAREN, "("); } 478 case -10: 479 break; 480 case 10: 481 { return new Symbol(sym.RBRACE, "}"); } 482 case -11: 483 break; 484 case 11: 485 { return new Symbol(sym.RPAREN, ")"); } 486 case -12: 487 break; 488 case 12: 489 { return new Symbol(sym.PLUS, "+"); } 490 case -13: 491 break; 492 case 13: 493 { return new Symbol(sym.MINUS, "-"); } 494 case -14: 495 break; 496 case 14: 497 { return new Symbol(sym.ASTERISK, "*"); } 498 case -15: 499 break; 500 case 15: 501 { return new Symbol(sym.SOLIDUS, "/"); } 502 case -16: 503 break; 504 case 16: 505 { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); } 506 case -17: 507 break; 508 case 17: 509 { return new Symbol(sym.DOT, "."); } 510 case -18: 511 break; 512 case 18: 513 { Double d = new Double (yytext()); return new Symbol(sym.NUMBER, d); } 514 case -19: 515 break; 516 case 19: 517 { } 518 case -20: 519 break; 520 case 20: 521 { yybegin(AFTER_AS1); return new Symbol(sym.AS, "AS"); } 522 case -21: 523 break; 524 case 21: 525 { return new Symbol(sym.ON, "ON"); } 526 case -22: 527 break; 528 case 22: 529 { return new Symbol(sym.OR, "OR"); } 530 case -23: 531 break; 532 case 23: 533 { return new Symbol(sym.LE, "<="); } 534 case -24: 535 break; 536 case 24: 537 { return new Symbol(sym.NE, "<>"); } 538 case -25: 539 break; 540 case 25: 541 { return new Symbol(sym.GE, ">="); } 542 case -26: 543 break; 544 case 26: 545 { return new Symbol(sym.CONCAT, "||"); } 546 case -27: 547 break; 548 case 27: 549 { Double d = new Double (yytext()); return new Symbol(sym.NUMBER, d); } 550 case -28: 551 break; 552 case 28: 553 { return new Symbol(sym.STRING, yytext()); } 554 case -29: 555 break; 556 case 29: 557 { return new Symbol(sym.QUOTED_ID, yytext()); } 558 case -30: 559 break; 560 case 30: 561 { return new Symbol(sym.STRING, yytext()); } 562 case -31: 563 break; 564 case 31: 565 { return new Symbol(sym.AND, "AND"); } 566 case -32: 567 break; 568 case 32: 569 { return new Symbol(sym.NON, "NON"); } 570 case -33: 571 break; 572 case 33: 573 { return new Symbol(sym.NOT, "NOT"); } 574 case -34: 575 break; 576 case 34: 577 { return new Symbol(sym.SET, "SET"); } 578 case -35: 579 break; 580 case 35: 581 { return new Symbol(sym.END, "END"); } 582 case -36: 583 break; 584 case 36: 585 { return new Symbol(sym.XOR, "XOR"); } 586 case -37: 587 break; 588 case 37: 589 { return new Symbol(sym.AMP_QUOTED_ID, yytext()); } 590 case -38: 591 break; 592 case 38: 593 { return new Symbol(sym.CASE, "CASE"); } 594 case -39: 595 break; 596 case 39: 597 { return new Symbol(sym.CELL, "CELL"); } 598 case -40: 599 break; 600 case 40: 601 { return new Symbol(sym.ELSE, "ELSE"); } 602 case -41: 603 break; 604 case 41: 605 { return new Symbol(sym.THEN, "THEN"); } 606 case -42: 607 break; 608 case 42: 609 { return new Symbol(sym.FROM, "FROM"); } 610 case -43: 611 break; 612 case 43: 613 { return new Symbol(sym.WITH, "WITH"); } 614 case -44: 615 break; 616 case 44: 617 { return new Symbol(sym.WHEN, "WHEN"); } 618 case -45: 619 break; 620 case 45: 621 { return new Symbol(sym.EMPTY, "EMPTY"); } 622 case -46: 623 break; 624 case 46: 625 { return new Symbol(sym.WHERE, "WHERE"); } 626 case -47: 627 break; 628 case 47: 629 { return new Symbol(sym.SELECT, "SELECT"); } 630 case -48: 631 break; 632 case 48: 633 { return new Symbol(sym.MEMBER, "MEMBER"); } 634 case -49: 635 break; 636 case 49: 637 { return new Symbol(sym.DIMENSION, "DIMENSION"); } 638 case -50: 639 break; 640 case 50: 641 { return new Symbol(sym.PROPERTIES, "PROPERTIES"); } 642 case -51: 643 break; 644 case 51: 645 { return new Symbol(sym.DRILLTHROUGH, "DRILLTHROUGH"); } 646 case -52: 647 break; 648 case 52: 649 {yybegin(AFTER_AS2); return new Symbol(sym.QUOTE, "'"); } 650 case -53: 651 break; 652 case 53: 653 {yybegin(YYINITIAL); return new Symbol(sym.QUOTE, "'"); } 654 case -54: 655 break; 656 case 55: 657 { return new Symbol(sym.ID, yytext()); } 658 case -55: 659 break; 660 case 56: 661 { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); } 662 case -56: 663 break; 664 case 57: 665 { Double d = new Double (yytext()); return new Symbol(sym.NUMBER, d); } 666 case -57: 667 break; 668 case 59: 669 { return new Symbol(sym.ID, yytext()); } 670 case -58: 671 break; 672 case 60: 673 { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); } 674 case -59: 675 break; 676 case 62: 677 { return new Symbol(sym.ID, yytext()); } 678 case -60: 679 break; 680 case 63: 681 { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); } 682 case -61: 683 break; 684 case 65: 685 { return new Symbol(sym.ID, yytext()); } 686 case -62: 687 break; 688 case 66: 689 { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); } 690 case -63: 691 break; 692 case 68: 693 { return new Symbol(sym.ID, yytext()); } 694 case -64: 695 break; 696 case 69: 697 { System.out.println("Unmatched input: " + yytext()); return new Symbol(sym.UNKNOWN, yytext()); } 698 case -65: 699 break; 700 case 71: 701 { return new Symbol(sym.ID, yytext()); } 702 case -66: 703 break; 704 case 73: 705 { return new Symbol(sym.ID, yytext()); } 706 case -67: 707 break; 708 case 75: 709 { return new Symbol(sym.ID, yytext()); } 710 case -68: 711 break; 712 case 77: 713 { return new Symbol(sym.ID, yytext()); } 714 case -69: 715 break; 716 case 78: 717 { return new Symbol(sym.ID, yytext()); } 718 case -70: 719 break; 720 case 79: 721 { return new Symbol(sym.ID, yytext()); } 722 case -71: 723 break; 724 case 80: 725 { return new Symbol(sym.ID, yytext()); } 726 case -72: 727 break; 728 case 81: 729 { return new Symbol(sym.ID, yytext()); } 730 case -73: 731 break; 732 case 82: 733 { return new Symbol(sym.ID, yytext()); } 734 case -74: 735 break; 736 case 83: 737 { return new Symbol(sym.ID, yytext()); } 738 case -75: 739 break; 740 case 84: 741 { return new Symbol(sym.ID, yytext()); } 742 case -76: 743 break; 744 case 85: 745 { return new Symbol(sym.ID, yytext()); } 746 case -77: 747 break; 748 case 86: 749 { return new Symbol(sym.ID, yytext()); } 750 case -78: 751 break; 752 case 87: 753 { return new Symbol(sym.ID, yytext()); } 754 case -79: 755 break; 756 case 88: 757 { return new Symbol(sym.ID, yytext()); } 758 case -80: 759 break; 760 case 89: 761 { return new Symbol(sym.ID, yytext()); } 762 case -81: 763 break; 764 case 90: 765 { return new Symbol(sym.ID, yytext()); } 766 case -82: 767 break; 768 case 91: 769 { return new Symbol(sym.ID, yytext()); } 770 case -83: 771 break; 772 case 92: 773 { return new Symbol(sym.ID, yytext()); } 774 case -84: 775 break; 776 case 93: 777 { return new Symbol(sym.ID, yytext()); } 778 case -85: 779 break; 780 case 94: 781 { return new Symbol(sym.ID, yytext()); } 782 case -86: 783 break; 784 case 95: 785 { return new Symbol(sym.ID, yytext()); } 786 case -87: 787 break; 788 case 96: 789 { return new Symbol(sym.ID, yytext()); } 790 case -88: 791 break; 792 case 97: 793 { return new Symbol(sym.ID, yytext()); } 794 case -89: 795 break; 796 case 98: 797 { return new Symbol(sym.ID, yytext()); } 798 case -90: 799 break; 800 case 99: 801 { return new Symbol(sym.ID, yytext()); } 802 case -91: 803 break; 804 case 100: 805 { return new Symbol(sym.ID, yytext()); } 806 case -92: 807 break; 808 case 101: 809 { return new Symbol(sym.ID, yytext()); } 810 case -93: 811 break; 812 case 102: 813 { return new Symbol(sym.ID, yytext()); } 814 case -94: 815 break; 816 case 103: 817 { return new Symbol(sym.ID, yytext()); } 818 case -95: 819 break; 820 case 104: 821 { return new Symbol(sym.ID, yytext()); } 822 case -96: 823 break; 824 case 105: 825 { return new Symbol(sym.ID, yytext()); } 826 case -97: 827 break; 828 case 106: 829 { return new Symbol(sym.ID, yytext()); } 830 case -98: 831 break; 832 case 107: 833 { return new Symbol(sym.ID, yytext()); } 834 case -99: 835 break; 836 case 108: 837 { return new Symbol(sym.ID, yytext()); } 838 case -100: 839 break; 840 case 109: 841 { return new Symbol(sym.ID, yytext()); } 842 case -101: 843 break; 844 case 110: 845 { return new Symbol(sym.ID, yytext()); } 846 case -102: 847 break; 848 case 111: 849 { return new Symbol(sym.ID, yytext()); } 850 case -103: 851 break; 852 case 112: 853 { return new Symbol(sym.ID, yytext()); } 854 case -104: 855 break; 856 case 113: 857 { return new Symbol(sym.ID, yytext()); } 858 case -105: 859 break; 860 case 114: 861 { return new Symbol(sym.ID, yytext()); } 862 case -106: 863 break; 864 case 115: 865 { return new Symbol(sym.ID, yytext()); } 866 case -107: 867 break; 868 case 116: 869 { return new Symbol(sym.ID, yytext()); } 870 case -108: 871 break; 872 case 117: 873 { return new Symbol(sym.ID, yytext()); } 874 case -109: 875 break; 876 case 118: 877 { return new Symbol(sym.ID, yytext()); } 878 case -110: 879 break; 880 case 119: 881 { Double d = new Double (yytext()); return new Symbol(sym.NUMBER, d); } 882 case -111: 883 break; 884 case 120: 885 { return new Symbol(sym.ID, yytext()); } 886 case -112: 887 break; 888 case 121: 889 { return new Symbol(sym.ID, yytext()); } 890 case -113: 891 break; 892 case 122: 893 { return new Symbol(sym.ID, yytext()); } 894 case -114: 895 break; 896 case 123: 897 { return new Symbol(sym.ID, yytext()); } 898 case -115: 899 break; 900 case 124: 901 { return new Symbol(sym.ID, yytext()); } 902 case -116: 903 break; 904 case 125: 905 { return new Symbol(sym.ID, yytext()); } 906 case -117: 907 break; 908 case 126: 909 { return new Symbol(sym.ID, yytext()); } 910 case -118: 911 break; 912 case 127: 913 { return new Symbol(sym.ID, yytext()); } 914 case -119: 915 break; 916 case 128: 917 { return new Symbol(sym.ID, yytext()); } 918 case -120: 919 break; 920 case 129: 921 { return new Symbol(sym.ID, yytext()); } 922 case -121: 923 break; 924 case 130: 925 { return new Symbol(sym.ID, yytext()); } 926 case -122: 927 break; 928 case 131: 929 { return new Symbol(sym.ID, yytext()); } 930 case -123: 931 break; 932 case 132: 933 { return new Symbol(sym.ID, yytext()); } 934 case -124: 935 break; 936 case 133: 937 { return new Symbol(sym.ID, yytext()); } 938 case -125: 939 break; 940 case 134: 941 { return new Symbol(sym.ID, yytext()); } 942 case -126: 943 break; 944 case 135: 945 { return new Symbol(sym.ID, yytext()); } 946 case -127: 947 break; 948 case 136: 949 { return new Symbol(sym.ID, yytext()); } 950 case -128: 951 break; 952 case 137: 953 { return new Symbol(sym.ID, yytext()); } 954 case -129: 955 break; 956 case 138: 957 { return new Symbol(sym.ID, yytext()); } 958 case -130: 959 break; 960 case 139: 961 { return new Symbol(sym.ID, yytext()); } 962 case -131: 963 break; 964 default: 965 yy_error(YY_E_INTERNAL,false); 966 case -1: 967 } 968 yy_initial = true; 969 yy_state = yy_state_dtrans[yy_lexical_state]; 970 yy_next_state = YY_NO_STATE; 971 yy_last_accept_state = YY_NO_STATE; 972 yy_mark_start(); 973 yy_this_accept = yy_acpt[yy_state]; 974 if (YY_NOT_ACCEPT != yy_this_accept) { 975 yy_last_accept_state = yy_state; 976 yy_mark_end(); 977 } 978 } 979 } 980 } 981 } 982 } 983 | Popular Tags |