/* The following code was generated by JFlex 1.4.3 on 1/7/13 5:15 PM */
/*
* Copyright (c) 2006-2013 Nuxeo SA (http://nuxeo.com/) and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Bogdan Stefanescu
* Florent Guillaume
*/
package org.nuxeo.ecm.core.query.sql.parser;
import java_cup.runtime.*;
import org.nuxeo.ecm.core.query.*;
/**
* Lexer for NXQL
*/
public class Scanner implements java_cup.runtime.Scanner {
/** This character denotes the end of file */
public static final int YYEOF = -1;
/** initial size of the lookahead buffer */
private static final int ZZ_BUFFERSIZE = 16384;
/** lexical states */
public static final int STRING = 4;
public static final int YYINITIAL = 0;
public static final int SQ_STRING = 2;
/**
* ZZ_LEXSTATE[l] is the state in the DFA for the lexical state l
* ZZ_LEXSTATE[l+1] is the state in the DFA for the lexical state l
* at the beginning of a line
* l is of the form l = 2*k, k a non negative integer
*/
private static final int ZZ_LEXSTATE[] = {
0, 0, 1, 1, 2, 2
};
/**
* Translates characters to character classes
*/
private static final String ZZ_CMAP_PACKED =
"\11\0\1\3\1\2\1\0\1\3\1\1\22\0\1\64\1\76\1\104"+
"\1\0\1\4\2\0\1\105\1\101\1\102\1\13\1\17\1\103\1\20"+
"\1\7\1\10\1\14\11\15\1\5\1\0\1\77\1\75\1\100\2\0"+
"\1\46\1\62\1\24\1\52\1\22\1\32\1\71\1\43\1\54\1\6"+
"\1\60\1\23\1\35\1\50\1\34\1\67\1\6\1\33\1\21\1\25"+
"\1\56\1\73\1\42\1\6\1\65\1\6\1\11\1\106\1\12\1\0"+
"\1\6\1\0\1\47\1\63\1\27\1\53\1\16\1\41\1\72\1\44"+
"\1\55\1\6\1\61\1\26\1\40\1\51\1\37\1\70\1\6\1\36"+
"\1\31\1\30\1\57\1\74\1\45\1\6\1\66\1\6\47\0\4\4"+
"\4\0\1\4\12\0\1\4\4\0\1\4\5\0\27\4\1\0\37\4"+
"\1\0\u013f\4\31\0\162\4\4\0\14\4\16\0\5\4\11\0\1\4"+
"\213\0\1\4\13\0\1\4\1\0\3\4\1\0\1\4\1\0\24\4"+
"\1\0\54\4\1\0\46\4\1\0\5\4\4\0\202\4\10\0\105\4"+
"\1\0\46\4\2\0\2\4\6\0\20\4\41\0\46\4\2\0\1\4"+
"\7\0\47\4\110\0\33\4\5\0\3\4\56\0\32\4\5\0\13\4"+
"\43\0\2\4\1\0\143\4\1\0\1\4\17\0\2\4\7\0\2\4"+
"\12\0\3\4\2\0\1\4\20\0\1\4\1\0\36\4\35\0\3\4"+
"\60\0\46\4\13\0\1\4\u0152\0\66\4\3\0\1\4\22\0\1\4"+
"\7\0\12\4\43\0\10\4\2\0\2\4\2\0\26\4\1\0\7\4"+
"\1\0\1\4\3\0\4\4\3\0\1\4\36\0\2\4\1\0\3\4"+
"\16\0\4\4\21\0\6\4\4\0\2\4\2\0\26\4\1\0\7\4"+
"\1\0\2\4\1\0\2\4\1\0\2\4\37\0\4\4\1\0\1\4"+
"\23\0\3\4\20\0\11\4\1\0\3\4\1\0\26\4\1\0\7\4"+
"\1\0\2\4\1\0\5\4\3\0\1\4\22\0\1\4\17\0\2\4"+
"\17\0\1\4\23\0\10\4\2\0\2\4\2\0\26\4\1\0\7\4"+
"\1\0\2\4\1\0\5\4\3\0\1\4\36\0\2\4\1\0\3\4"+
"\17\0\1\4\21\0\1\4\1\0\6\4\3\0\3\4\1\0\4\4"+
"\3\0\2\4\1\0\1\4\1\0\2\4\3\0\2\4\3\0\3\4"+
"\3\0\10\4\1\0\3\4\77\0\1\4\13\0\10\4\1\0\3\4"+
"\1\0\27\4\1\0\12\4\1\0\5\4\46\0\2\4\43\0\10\4"+
"\1\0\3\4\1\0\27\4\1\0\12\4\1\0\5\4\3\0\1\4"+
"\40\0\1\4\1\0\2\4\43\0\10\4\1\0\3\4\1\0\27\4"+
"\1\0\20\4\46\0\2\4\43\0\22\4\3\0\30\4\1\0\11\4"+
"\1\0\1\4\2\0\7\4\72\0\60\4\1\0\2\4\13\0\10\4"+
"\72\0\2\4\1\0\1\4\2\0\2\4\1\0\1\4\2\0\1\4"+
"\6\0\4\4\1\0\7\4\1\0\3\4\1\0\1\4\1\0\1\4"+
"\2\0\2\4\1\0\4\4\1\0\2\4\11\0\1\4\2\0\5\4"+
"\1\0\1\4\25\0\2\4\42\0\1\4\77\0\10\4\1\0\42\4"+
"\35\0\4\4\164\0\42\4\1\0\5\4\1\0\2\4\45\0\6\4"+
"\112\0\46\4\12\0\51\4\7\0\132\4\5\0\104\4\5\0\122\4"+
"\6\0\7\4\1\0\77\4\1\0\1\4\1\0\4\4\2\0\7\4"+
"\1\0\1\4\1\0\4\4\2\0\47\4\1\0\1\4\1\0\4\4"+
"\2\0\37\4\1\0\1\4\1\0\4\4\2\0\7\4\1\0\1\4"+
"\1\0\4\4\2\0\7\4\1\0\7\4\1\0\27\4\1\0\37\4"+
"\1\0\1\4\1\0\4\4\2\0\7\4\1\0\47\4\1\0\23\4"+
"\105\0\125\4\14\0\u026c\4\2\0\10\4\12\0\32\4\5\0\113\4"+
"\3\0\3\4\17\0\15\4\1\0\4\4\16\0\22\4\16\0\22\4"+
"\16\0\15\4\1\0\3\4\17\0\64\4\43\0\1\4\3\0\2\4"+
"\103\0\130\4\10\0\51\4\127\0\35\4\63\0\36\4\2\0\5\4"+
"\u038b\0\154\4\224\0\234\4\4\0\132\4\6\0\26\4\2\0\6\4"+
"\2\0\46\4\2\0\6\4\2\0\10\4\1\0\1\4\1\0\1\4"+
"\1\0\1\4\1\0\37\4\2\0\65\4\1\0\7\4\1\0\1\4"+
"\3\0\3\4\1\0\7\4\3\0\4\4\2\0\6\4\4\0\15\4"+
"\5\0\3\4\1\0\7\4\102\0\2\4\23\0\1\4\34\0\1\4"+
"\15\0\1\4\40\0\22\4\120\0\1\4\4\0\1\4\2\0\12\4"+
"\1\0\1\4\3\0\5\4\6\0\1\4\1\0\1\4\1\0\1\4"+
"\1\0\4\4\1\0\3\4\1\0\7\4\3\0\3\4\5\0\5\4"+
"\26\0\44\4\u0e81\0\3\4\31\0\11\4\7\0\5\4\2\0\5\4"+
"\4\0\126\4\6\0\3\4\1\0\137\4\5\0\50\4\4\0\136\4"+
"\21\0\30\4\70\0\20\4\u0200\0\u19b6\4\112\0\u51a6\4\132\0\u048d\4"+
"\u0773\0\u2ba4\4\u215c\0\u012e\4\2\0\73\4\225\0\7\4\14\0\5\4"+
"\5\0\1\4\1\0\12\4\1\0\15\4\1\0\5\4\1\0\1\4"+
"\1\0\2\4\1\0\2\4\1\0\154\4\41\0\u016b\4\22\0\100\4"+
"\2\0\66\4\50\0\15\4\66\0\2\4\30\0\3\4\31\0\1\4"+
"\6\0\5\4\1\0\207\4\7\0\1\4\34\0\32\4\4\0\1\4"+
"\1\0\32\4\12\0\132\4\3\0\6\4\2\0\6\4\2\0\6\4"+
"\2\0\3\4\3\0\2\4\3\0\2\4\31\0";
/**
* Translates characters to character classes
*/
private static final char [] ZZ_CMAP = zzUnpackCMap(ZZ_CMAP_PACKED);
/**
* Translates DFA states to action switch labels.
*/
private static final int [] ZZ_ACTION = zzUnpackAction();
private static final String ZZ_ACTION_PACKED_0 =
"\3\0\1\1\2\2\1\3\1\1\1\4\1\5\2\6"+
"\1\7\1\10\32\3\1\11\1\1\1\12\1\13\1\14"+
"\1\15\1\16\1\17\1\20\1\21\1\22\1\23\1\21"+
"\1\24\1\23\1\3\1\0\2\25\1\0\21\3\2\26"+
"\1\3\1\26\4\3\1\27\2\3\1\27\14\3\1\30"+
"\1\3\1\31\6\3\1\32\1\33\1\34\1\35\1\36"+
"\1\37\1\40\1\23\1\41\1\42\4\43\1\25\1\0"+
"\33\3\1\44\1\45\1\46\1\47\17\3\1\42\1\0"+
"\7\3\1\50\3\3\1\51\2\3\1\52\11\3\1\53"+
"\1\54\1\55\11\3\3\0\6\3\1\56\10\3\1\57"+
"\4\3\1\60\5\3\1\61\7\3\1\62\3\0\1\63"+
"\4\3\3\0\6\3\2\0\2\3\1\64\2\0\2\3"+
"\1\65\2\3\1\66\1\67\1\70\2\3\1\71\1\72";
private static int [] zzUnpackAction() {
int [] result = new int[284];
int offset = 0;
offset = zzUnpackAction(ZZ_ACTION_PACKED_0, offset, result);
return result;
}
private static int zzUnpackAction(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
do result[j++] = value; while (--count > 0);
}
return j;
}
/**
* Translates a state to a row index in the transition table
*/
private static final int [] ZZ_ROWMAP = zzUnpackRowMap();
private static final String ZZ_ROWMAP_PACKED_0 =
"\0\0\0\107\0\216\0\325\0\u011c\0\325\0\u0163\0\u01aa"+
"\0\325\0\325\0\u01f1\0\u0238\0\325\0\325\0\u027f\0\u02c6"+
"\0\u030d\0\u0354\0\u039b\0\u03e2\0\u0429\0\u0470\0\u04b7\0\u04fe"+
"\0\u0545\0\u058c\0\u05d3\0\u061a\0\u0661\0\u06a8\0\u06ef\0\u0736"+
"\0\u077d\0\u07c4\0\u080b\0\u0852\0\u0899\0\u08e0\0\u0927\0\u096e"+
"\0\325\0\u09b5\0\u09fc\0\u0a43\0\325\0\325\0\325\0\325"+
"\0\325\0\u0a8a\0\325\0\u0ad1\0\u0b18\0\325\0\u0b5f\0\u0ba6"+
"\0\u0bed\0\u0c34\0\u01f1\0\u0c7b\0\u0cc2\0\u0d09\0\u0d50\0\u0d97"+
"\0\u0dde\0\u0e25\0\u0e6c\0\u0eb3\0\u0efa\0\u0f41\0\u0f88\0\u0fcf"+
"\0\u1016\0\u105d\0\u10a4\0\u10eb\0\u1132\0\u1179\0\u11c0\0\u1207"+
"\0\u124e\0\u1295\0\u12dc\0\u1323\0\u136a\0\u13b1\0\u13f8\0\u143f"+
"\0\u1486\0\u14cd\0\u1514\0\u155b\0\u15a2\0\u15e9\0\u1630\0\u1677"+
"\0\u16be\0\u1705\0\u174c\0\u1793\0\u17da\0\u0163\0\u1821\0\u0163"+
"\0\u1868\0\u18af\0\u18f6\0\u193d\0\u1984\0\u19cb\0\325\0\325"+
"\0\325\0\325\0\325\0\325\0\325\0\325\0\325\0\u1a12"+
"\0\u1a59\0\u1aa0\0\u1ae7\0\u1b2e\0\u1b75\0\u1b75\0\u1bbc\0\u1c03"+
"\0\u1c4a\0\u1c91\0\u1cd8\0\u1d1f\0\u1d66\0\u1dad\0\u1df4\0\u1e3b"+
"\0\u1e82\0\u1ec9\0\u1f10\0\u1f57\0\u1f9e\0\u1fe5\0\u202c\0\u2073"+
"\0\u20ba\0\u2101\0\u2148\0\u218f\0\u21d6\0\u221d\0\u2264\0\u22ab"+
"\0\u22f2\0\u0163\0\u0163\0\u0163\0\u0163\0\u2339\0\u2380\0\u23c7"+
"\0\u240e\0\u2455\0\u249c\0\u24e3\0\u252a\0\u2571\0\u25b8\0\u25ff"+
"\0\u2646\0\u268d\0\u26d4\0\u271b\0\u2762\0\u27a9\0\u27f0\0\u2837"+
"\0\u287e\0\u28c5\0\u290c\0\u2953\0\u299a\0\u0163\0\u29e1\0\u2a28"+
"\0\u2a6f\0\u0163\0\u2ab6\0\u2afd\0\u0163\0\u2b44\0\u2b8b\0\u2bd2"+
"\0\u2c19\0\u2c60\0\u2ca7\0\u2cee\0\u2d35\0\u2d7c\0\u0163\0\u0163"+
"\0\u0163\0\u2dc3\0\u2e0a\0\u2e51\0\u2e98\0\u2edf\0\u2f26\0\u2f6d"+
"\0\u2fb4\0\u2ffb\0\u3042\0\u3089\0\u30d0\0\u3117\0\u315e\0\u31a5"+
"\0\u31ec\0\u3233\0\u327a\0\u0163\0\u32c1\0\u3308\0\u334f\0\u3396"+
"\0\u33dd\0\u3424\0\u346b\0\u34b2\0\u0163\0\u34f9\0\u3540\0\u3587"+
"\0\u35ce\0\u0163\0\u3615\0\u365c\0\u36a3\0\u36ea\0\u3731\0\u0163"+
"\0\u3778\0\u37bf\0\u3806\0\u384d\0\u3894\0\u38db\0\u3922\0\u0163"+
"\0\u3969\0\u39b0\0\u39f7\0\u0163\0\u3a3e\0\u3a85\0\u3acc\0\u3b13"+
"\0\u3b5a\0\u3ba1\0\u3be8\0\u3c2f\0\u3c76\0\u3cbd\0\u3d04\0\u3d4b"+
"\0\u3d92\0\u3dd9\0\u3e20\0\u3e67\0\u3eae\0\u0163\0\u3ef5\0\u3f3c"+
"\0\u3f83\0\u3fca\0\u0163\0\u4011\0\u4058\0\325\0\u0163\0\325"+
"\0\u409f\0\u40e6\0\u0163\0\u0163";
private static int [] zzUnpackRowMap() {
int [] result = new int[284];
int offset = 0;
offset = zzUnpackRowMap(ZZ_ROWMAP_PACKED_0, offset, result);
return result;
}
private static int zzUnpackRowMap(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int high = packed.charAt(i++) << 16;
result[j++] = high | packed.charAt(i++);
}
return j;
}
/**
* The transition table of the DFA
*/
private static final int [] ZZ_TRANS = zzUnpackTrans();
private static final String ZZ_TRANS_PACKED_0 =
"\1\4\1\5\2\6\1\7\1\4\1\7\1\10\1\11"+
"\2\4\1\12\1\13\1\14\1\7\1\15\1\16\1\17"+
"\1\7\1\20\1\7\1\21\1\22\1\7\1\23\1\24"+
"\1\25\1\7\1\26\2\7\1\27\1\7\1\30\1\31"+
"\1\32\1\33\1\34\1\35\1\36\1\37\1\40\1\41"+
"\1\42\1\43\1\44\4\7\1\45\1\46\1\6\4\7"+
"\1\47\1\50\2\7\1\51\1\52\1\53\1\54\1\55"+
"\1\56\1\57\1\60\1\61\1\4\1\62\2\4\102\62"+
"\1\63\1\64\1\65\2\4\101\65\1\66\1\65\1\67"+
"\111\0\1\6\111\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\44\7\1\0\10\7\26\0\2\72\100\0\1\72"+
"\4\0\2\73\1\74\3\0\1\74\73\0\1\72\4\0"+
"\2\14\1\74\3\0\1\74\71\0\2\7\1\70\1\71"+
"\3\0\2\7\1\75\1\0\2\7\1\76\2\7\1\77"+
"\2\7\1\100\33\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\14\7\1\101\2\7\1\102"+
"\14\7\1\103\1\104\6\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\34\7\1\105\1\106"+
"\6\7\1\0\1\107\1\110\6\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\17\7\1\102\15\7\1\104"+
"\6\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\35\7\1\111\6\7\1\0\1\7\1\110"+
"\6\7\17\0\2\7\1\70\1\71\3\0\2\7\1\75"+
"\1\0\10\7\1\112\33\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\13\7\1\113\2\7"+
"\1\114\25\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\12\7\1\115\1\116\2\7\1\117"+
"\2\7\1\120\22\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\16\7\1\121\2\7\1\120"+
"\22\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\16\7\1\114\25\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\23\7\1\122"+
"\1\123\17\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\26\7\1\124\1\125\14\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\27\7\1\125\14\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\24\7\1\123\17\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\1\7\1\126\1\7\1\127\2\7\1\130\2\7\1\131"+
"\16\7\1\132\1\133\12\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\6\7\1\130\2\7"+
"\1\131\17\7\1\133\12\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\14\7\1\134\2\7"+
"\1\135\16\7\1\136\1\137\4\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\17\7\1\135"+
"\17\7\1\137\4\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\2\7\1\140\1\0\2\7\1\141\23\7"+
"\1\142\1\143\4\7\1\144\1\145\6\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\2\7\1\140\1\0"+
"\27\7\1\143\5\7\1\145\6\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\1\7\1\146"+
"\1\7\1\147\5\7\1\146\16\7\2\150\12\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\6\7\1\151\2\7\1\146\17\7\1\150\12\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\2\7\1\152"+
"\1\0\2\7\1\153\41\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\2\7\1\152\1\0\44\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\13\7\1\154\2\7\1\155\25\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\16\7\1\156"+
"\25\7\1\0\10\7\107\0\1\157\106\0\1\160\2\0"+
"\1\157\103\0\1\161\11\0\1\62\2\0\102\62\32\0"+
"\1\162\5\0\1\163\12\0\1\164\33\0\1\165\1\166"+
"\1\65\2\0\101\65\1\0\1\65\31\0\1\162\5\0"+
"\1\163\12\0\1\164\32\0\1\167\1\0\1\166\4\0"+
"\1\170\2\7\1\70\1\71\3\0\3\7\1\0\44\7"+
"\1\0\10\7\16\0\1\171\1\0\1\171\4\0\1\172"+
"\1\173\1\174\1\171\2\0\43\171\1\0\10\171\26\0"+
"\2\72\1\74\3\0\1\74\100\0\2\175\1\0\2\176"+
"\73\0\2\7\1\70\1\71\3\0\3\7\1\0\6\7"+
"\1\177\35\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\3\7\1\200\40\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\26\7"+
"\1\201\15\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\27\7\1\202\14\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\4\7"+
"\1\203\37\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\7\7\1\204\34\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\15\7"+
"\1\205\22\7\1\206\3\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\20\7\1\207\20\7"+
"\1\210\2\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\15\7\1\211\26\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\20\7"+
"\1\212\23\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\44\7\1\0\2\7\1\213\5\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\44\7"+
"\1\0\3\7\1\214\4\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\20\7\1\215\23\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\27\7"+
"\1\216\14\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\14\7\1\217\27\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\17\7"+
"\1\220\24\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\12\7\1\221\31\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\32\7"+
"\1\222\11\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\33\7\1\223\10\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\21\7"+
"\1\224\22\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\33\7\1\225\10\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\2\7"+
"\1\226\41\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\2\7\1\227\1\0\44\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\44\7\1\0"+
"\6\7\1\230\1\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\44\7\1\0\7\7\1\231\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\4\7\1\232\37\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\3\7\1\233\40\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\6\7\1\233\35\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\7\7\1\232\34\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\32\7\1\234\11\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\33\7\1\234\10\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\5\7\1\235\36\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\10\7\1\235\33\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\3\7\1\236\40\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\6\7\1\237\35\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\11\7\1\240\32\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\1\7\1\241\42\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\5\7\1\242\36\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\10\7\1\243\33\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\1\7\1\244\42\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\11\7\1\245\32\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\34\7\1\246\1\247"+
"\6\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\35\7\1\247\6\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\10\7\1\250"+
"\33\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\5\7\1\251\36\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\14\7\1\252"+
"\27\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\17\7\1\253\24\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\17\7\1\254"+
"\24\7\1\0\10\7\17\0\2\170\1\255\4\0\3\170"+
"\1\0\44\170\1\0\10\170\17\0\3\171\1\71\1\256"+
"\2\0\3\171\1\0\44\171\1\0\10\171\22\0\1\71"+
"\3\0\1\173\1\174\101\0\1\71\106\0\1\71\3\0"+
"\2\174\105\0\2\175\76\0\2\7\1\70\1\71\3\0"+
"\2\7\1\257\1\0\44\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\2\7\1\260\41\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\13\7\1\261\30\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\16\7\1\262\25\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\26\7\1\263\15\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\27\7\1\264\14\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\34\7\1\265\7\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\2\7\1\266\41\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\35\7\1\267\6\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\2\7\1\266\1\0\44\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\2\7\1\270\41\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\2\7\1\271\1\0\44\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\2\7"+
"\1\272\41\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\2\7\1\272\1\0\44\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\2\7\1\273\1\0\44\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\16\7\1\274\25\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\15\7\1\275\26\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\20\7\1\275\23\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\1\7\1\276\42\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\2\7\1\277\41\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\2\7\1\300\1\0\44\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\11\7\1\301\32\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\2\7\1\302\1\0\44\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\13\7"+
"\1\303\30\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\16\7\1\304\25\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\34\7"+
"\1\305\7\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\35\7\1\306\6\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\3\7"+
"\1\307\40\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\6\7\1\307\35\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\7\7"+
"\1\310\34\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\4\7\1\310\37\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\2\7"+
"\1\311\41\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\2\7\1\311\1\0\44\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\5\7\1\312"+
"\36\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\10\7\1\313\33\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\40\7\1\314"+
"\3\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\41\7\1\315\2\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\25\7\1\316"+
"\16\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\22\7\1\317\21\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\36\7\1\320"+
"\5\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\37\7\1\321\4\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\37\7\1\322"+
"\4\7\1\0\10\7\16\0\3\170\1\255\4\0\3\170"+
"\1\0\44\170\1\0\10\170\25\0\1\323\1\324\1\325"+
"\76\0\2\7\1\70\1\71\3\0\3\7\1\0\7\7"+
"\1\326\34\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\4\7\1\327\37\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\5\7"+
"\1\330\36\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\10\7\1\331\33\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\5\7"+
"\1\332\36\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\10\7\1\333\33\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\5\7"+
"\1\334\36\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\10\7\1\334\33\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\1\7"+
"\1\335\42\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\1\7\1\336\7\7\1\336\32\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\11\7\1\336\32\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\10\7\1\337\33\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\2\7\1\340\41\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\13\7\1\341\30\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\16\7\1\342\25\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\2\7\1\343\1\0\44\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\16\7\1\344\25\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\2\7\1\345\41\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\2\7\1\345"+
"\1\0\44\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\30\7\1\346\13\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\31\7"+
"\1\347\12\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\34\7\1\350\7\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\35\7"+
"\1\351\6\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\2\7\1\352\41\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\2\7\1\352\1\0"+
"\44\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\2\7\1\353\1\0\44\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\2\7\1\354\41\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\44\7\1\0\2\7\1\355\5\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\44\7\1\0\3\7"+
"\1\356\4\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\44\7\1\0\3\7\1\357\4\7\24\0\1\173"+
"\1\0\1\324\1\325\103\0\1\173\106\0\1\173\1\0"+
"\2\325\76\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\10\7\1\360\33\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\5\7\1\360\36\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\1\7\1\361\42\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\11\7\1\362\32\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\34\7\1\363\7\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\35\7\1\364\6\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\5\7\1\365\36\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\10\7\1\366\33\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\11\7\1\367\32\7\1\0\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\5\7\1\370\36\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\44\7\1\371\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\44\7\1\372\10\7\17\0\2\7\1\70"+
"\1\71\3\0\3\7\1\0\10\7\1\370\33\7\1\0"+
"\10\7\17\0\2\7\1\70\1\71\3\0\3\7\1\0"+
"\44\7\1\373\10\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\44\7\1\0\4\7\1\374\3\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\44\7\1\0"+
"\5\7\1\374\2\7\17\0\2\7\1\70\1\71\3\0"+
"\3\7\1\0\30\7\1\375\13\7\1\0\10\7\17\0"+
"\2\7\1\70\1\71\3\0\3\7\1\0\31\7\1\376"+
"\12\7\1\0\10\7\17\0\2\7\1\70\1\71\3\0"+
"\2\7\1\377\1\0\44\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\2\7\1\u0100\41\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\44\7\1\u0101\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\44\7\1\u0102\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\44\7\1\u0103\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\22\7"+
"\1\u0104\21\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\22\7\1\u0105\2\7\1\u0105\16\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\14\7\1\u0106\27\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\17\7\1\u0107\24\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\26\7\1\u0108\15\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\27\7\1\u0109\14\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\25\7\1\u0105\16\7\1\0\10\7\74\0\1\u010a"+
"\106\0\1\u010b\107\0\1\u010b\30\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\4\7\1\u010c\37\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\7\7"+
"\1\u010d\34\7\1\0\10\7\17\0\2\7\1\70\1\71"+
"\3\0\3\7\1\0\31\7\1\u010e\12\7\1\0\10\7"+
"\17\0\2\7\1\70\1\71\3\0\3\7\1\0\30\7"+
"\1\u010e\13\7\1\0\10\7\74\0\1\u010f\106\0\1\u0110"+
"\107\0\1\u0110\30\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\34\7\1\u0111\7\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\35\7\1\u0112\6\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\30\7\1\u0113\13\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\31\7\1\u0113\12\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\15\7\1\u0114\26\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\20\7\1\u0115\23\7"+
"\1\0\10\7\77\0\1\u0116\107\0\1\u0116\25\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\5\7\1\u0117\36\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\10\7\1\u0117\33\7\1\0\10\7\77\0\1\u0118"+
"\107\0\1\u0118\25\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\5\7\1\u0119\36\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\10\7\1\u011a\33\7"+
"\1\0\10\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\44\7\1\0\2\7\1\u011b\5\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\44\7\1\0\3\7"+
"\1\u011b\4\7\17\0\2\7\1\70\1\71\3\0\3\7"+
"\1\0\23\7\1\u011c\20\7\1\0\10\7\17\0\2\7"+
"\1\70\1\71\3\0\3\7\1\0\24\7\1\u011c\17\7"+
"\1\0\10\7\12\0";
private static int [] zzUnpackTrans() {
int [] result = new int[16685];
int offset = 0;
offset = zzUnpackTrans(ZZ_TRANS_PACKED_0, offset, result);
return result;
}
private static int zzUnpackTrans(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
value--;
do result[j++] = value; while (--count > 0);
}
return j;
}
/* error codes */
private static final int ZZ_UNKNOWN_ERROR = 0;
private static final int ZZ_NO_MATCH = 1;
private static final int ZZ_PUSHBACK_2BIG = 2;
/* error messages for the codes above */
private static final String ZZ_ERROR_MSG[] = {
"Unkown internal scanner error",
"Error: could not match input",
"Error: pushback value was too large"
};
/**
* ZZ_ATTRIBUTE[aState] contains the attributes of state <code>aState</code>
*/
private static final int [] ZZ_ATTRIBUTE = zzUnpackAttribute();
private static final String ZZ_ATTRIBUTE_PACKED_0 =
"\3\0\1\11\1\1\1\11\2\1\2\11\2\1\2\11"+
"\32\1\1\11\3\1\5\11\1\1\1\11\2\1\1\11"+
"\2\1\1\0\2\1\1\0\62\1\11\11\6\1\1\0"+
"\57\1\1\0\44\1\3\0\43\1\3\0\5\1\3\0"+
"\6\1\2\0\3\1\2\0\5\1\1\11\1\1\1\11"+
"\4\1";
private static int [] zzUnpackAttribute() {
int [] result = new int[284];
int offset = 0;
offset = zzUnpackAttribute(ZZ_ATTRIBUTE_PACKED_0, offset, result);
return result;
}
private static int zzUnpackAttribute(String packed, int offset, int [] result) {
int i = 0; /* index in packed string */
int j = offset; /* index in unpacked array */
int l = packed.length();
while (i < l) {
int count = packed.charAt(i++);
int value = packed.charAt(i++);
do result[j++] = value; while (--count > 0);
}
return j;
}
/** the input device */
private java.io.Reader zzReader;
/** the current state of the DFA */
private int zzState;
/** the current lexical state */
private int zzLexicalState = YYINITIAL;
/** this buffer contains the current text to be matched and is
the source of the yytext() string */
private char zzBuffer[] = new char[ZZ_BUFFERSIZE];
/** the textposition at the last accepting state */
private int zzMarkedPos;
/** the current text position in the buffer */
private int zzCurrentPos;
/** startRead marks the beginning of the yytext() string in the buffer */
private int zzStartRead;
/** endRead marks the last character in the buffer, that has been read
from input */
private int zzEndRead;
/** number of newlines encountered up to the start of the matched text */
private int yyline;
/** the number of characters up to the start of the matched text */
private int yychar;
/**
* the number of characters from the last newline up to the start of the
* matched text
*/
private int yycolumn;
/**
* zzAtBOL == true <=> the scanner is currently at the beginning of a line
*/
private boolean zzAtBOL = true;
/** zzAtEOF == true <=> the scanner is at the EOF */
private boolean zzAtEOF;
/** denotes if the user-EOF-code has already been executed */
private boolean zzEOFDone;
/* user code: */
StringBuffer string = new StringBuffer();
private Symbol symbol(int type) {
return new Symbol(type, -1, yychar, yytext());
}
private Symbol symbol(int type, Object value) {
return new Symbol(type, -1, yychar, value);
}
private void scanError() throws QueryParseException {
StringBuffer buf = new StringBuffer("Lexical Error: Illegal character <")
.append(yytext()).append("> at offset ").append(yychar);
throw new QueryParseException(buf.toString());
}
/**
* Creates a new scanner
* There is also a java.io.InputStream version of this constructor.
*
* @param in the java.io.Reader to read input from.
*/
public Scanner(java.io.Reader in) {
this.zzReader = in;
}
/**
* Creates a new scanner.
* There is also java.io.Reader version of this constructor.
*
* @param in the java.io.Inputstream to read input from.
*/
public Scanner(java.io.InputStream in) {
this(new java.io.InputStreamReader(in));
}
/**
* Unpacks the compressed character translation table.
*
* @param packed the packed character translation table
* @return the unpacked character translation table
*/
private static char [] zzUnpackCMap(String packed) {
char [] map = new char[0x10000];
int i = 0; /* index in packed string */
int j = 0; /* index in unpacked array */
while (i < 1334) {
int count = packed.charAt(i++);
char value = packed.charAt(i++);
do map[j++] = value; while (--count > 0);
}
return map;
}
/**
* Refills the input buffer.
*
* @return <code>false</code>, iff there was new input.
*
* @exception java.io.IOException if any I/O-Error occurs
*/
private boolean zzRefill() throws java.io.IOException {
/* first: make room (if you can) */
if (zzStartRead > 0) {
System.arraycopy(zzBuffer, zzStartRead,
zzBuffer, 0,
zzEndRead-zzStartRead);
/* translate stored positions */
zzEndRead-= zzStartRead;
zzCurrentPos-= zzStartRead;
zzMarkedPos-= zzStartRead;
zzStartRead = 0;
}
/* is the buffer big enough? */
if (zzCurrentPos >= zzBuffer.length) {
/* if not: blow it up */
char newBuffer[] = new char[zzCurrentPos*2];
System.arraycopy(zzBuffer, 0, newBuffer, 0, zzBuffer.length);
zzBuffer = newBuffer;
}
/* finally: fill the buffer with new input */
int numRead = zzReader.read(zzBuffer, zzEndRead,
zzBuffer.length-zzEndRead);
if (numRead > 0) {
zzEndRead+= numRead;
return false;
}
// unlikely but not impossible: read 0 characters, but not at end of stream
if (numRead == 0) {
int c = zzReader.read();
if (c == -1) {
return true;
} else {
zzBuffer[zzEndRead++] = (char) c;
return false;
}
}
// numRead < 0
return true;
}
/**
* Closes the input stream.
*/
public final void yyclose() throws java.io.IOException {
zzAtEOF = true; /* indicate end of file */
zzEndRead = zzStartRead; /* invalidate buffer */
if (zzReader != null)
zzReader.close();
}
/**
* Resets the scanner to read from a new input stream.
* Does not close the old reader.
*
* All internal variables are reset, the old input stream
* <b>cannot</b> be reused (internal buffer is discarded and lost).
* Lexical state is set to <tt>ZZ_INITIAL</tt>.
*
* @param reader the new input stream
*/
public final void yyreset(java.io.Reader reader) {
zzReader = reader;
zzAtBOL = true;
zzAtEOF = false;
zzEOFDone = false;
zzEndRead = zzStartRead = 0;
zzCurrentPos = zzMarkedPos = 0;
yyline = yychar = yycolumn = 0;
zzLexicalState = YYINITIAL;
}
/**
* Returns the current lexical state.
*/
public final int yystate() {
return zzLexicalState;
}
/**
* Enters a new lexical state
*
* @param newState the new lexical state
*/
public final void yybegin(int newState) {
zzLexicalState = newState;
}
/**
* Returns the text matched by the current regular expression.
*/
public final String yytext() {
return new String( zzBuffer, zzStartRead, zzMarkedPos-zzStartRead );
}
/**
* Returns the character at position <tt>pos</tt> from the
* matched text.
*
* It is equivalent to yytext().charAt(pos), but faster
*
* @param pos the position of the character to fetch.
* A value from 0 to yylength()-1.
*
* @return the character at position pos
*/
public final char yycharat(int pos) {
return zzBuffer[zzStartRead+pos];
}
/**
* Returns the length of the matched text region.
*/
public final int yylength() {
return zzMarkedPos-zzStartRead;
}
/**
* Reports an error that occured while scanning.
*
* In a wellformed scanner (no or only correct usage of
* yypushback(int) and a match-all fallback rule) this method
* will only be called with things that "Can't Possibly Happen".
* If this method is called, something is seriously wrong
* (e.g. a JFlex bug producing a faulty scanner etc.).
*
* Usual syntax/scanner level error handling should be done
* in error fallback rules.
*
* @param errorCode the code of the errormessage to display
*/
private void zzScanError(int errorCode) {
String message;
try {
message = ZZ_ERROR_MSG[errorCode];
}
catch (ArrayIndexOutOfBoundsException e) {
message = ZZ_ERROR_MSG[ZZ_UNKNOWN_ERROR];
}
throw new Error(message);
}
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
/**
* Contains user EOF-code, which will be executed exactly once,
* when the end of file is reached
*/
private void zzDoEOF() throws java.io.IOException {
if (!zzEOFDone) {
zzEOFDone = true;
yyclose();
}
}
/**
* Resumes scanning until the next regular expression is matched,
* the end of input is encountered or an I/O-Error occurs.
*
* @return the next token
* @exception java.io.IOException if any I/O-Error occurs
*/
public java_cup.runtime.Symbol next_token() throws java.io.IOException {
int zzInput;
int zzAction;
// cached fields:
int zzCurrentPosL;
int zzMarkedPosL;
int zzEndReadL = zzEndRead;
char [] zzBufferL = zzBuffer;
char [] zzCMapL = ZZ_CMAP;
int [] zzTransL = ZZ_TRANS;
int [] zzRowMapL = ZZ_ROWMAP;
int [] zzAttrL = ZZ_ATTRIBUTE;
while (true) {
zzMarkedPosL = zzMarkedPos;
yychar+= zzMarkedPosL-zzStartRead;
zzAction = -1;
zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL;
zzState = ZZ_LEXSTATE[zzLexicalState];
zzForAction: {
while (true) {
if (zzCurrentPosL < zzEndReadL)
zzInput = zzBufferL[zzCurrentPosL++];
else if (zzAtEOF) {
zzInput = YYEOF;
break zzForAction;
}
else {
// store back cached positions
zzCurrentPos = zzCurrentPosL;
zzMarkedPos = zzMarkedPosL;
boolean eof = zzRefill();
// get translated positions and possibly new buffer
zzCurrentPosL = zzCurrentPos;
zzMarkedPosL = zzMarkedPos;
zzBufferL = zzBuffer;
zzEndReadL = zzEndRead;
if (eof) {
zzInput = YYEOF;
break zzForAction;
}
else {
zzInput = zzBufferL[zzCurrentPosL++];
}
}
int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ];
if (zzNext == -1) break zzForAction;
zzState = zzNext;
int zzAttributes = zzAttrL[zzState];
if ( (zzAttributes & 1) == 1 ) {
zzAction = zzState;
zzMarkedPosL = zzCurrentPosL;
if ( (zzAttributes & 8) == 8 ) break zzForAction;
}
}
}
// store back cached position
zzMarkedPos = zzMarkedPosL;
switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) {
case 2:
{ /* ignore */
}
case 59: break;
case 51:
{ return symbol(sym.HAVING);
}
case 60: break;
case 24:
{ return symbol(sym.IS);
}
case 61: break;
case 47:
{ return symbol(sym.WHERE);
}
case 62: break;
case 44:
{ return symbol(sym.DESC);
}
case 63: break;
case 11:
{ return symbol(sym.GT);
}
case 64: break;
case 55:
{ return symbol(sym.DISTINCT);
}
case 65: break;
case 29:
{ string.append('\t');
}
case 66: break;
case 7:
{ return symbol(sym.SUM);
}
case 67: break;
case 10:
{ return symbol(sym.LT);
}
case 68: break;
case 15:
{ string.setLength(0); yybegin(STRING);
}
case 69: break;
case 57:
{ return symbol(sym.TIMESTAMP);
}
case 70: break;
case 48:
{ return symbol(sym.ILIKE);
}
case 71: break;
case 28:
{ return symbol(sym.GTEQ);
}
case 72: break;
case 21:
{ return symbol(sym.DOUBLE, yytext());
}
case 73: break;
case 39:
{ return symbol(sym.NOT);
}
case 74: break;
case 38:
{ return symbol(sym.AND);
}
case 75: break;
case 4:
{ return symbol(sym.DIV);
}
case 76: break;
case 19:
{ string.append('\\');
}
case 77: break;
case 30:
{ string.append('\r');
}
case 78: break;
case 52:
{ return symbol(sym.BETWEEN);
}
case 79: break;
case 50:
{ return symbol(sym.OFFSET);
}
case 80: break;
case 45:
{ return symbol(sym.DATE);
}
case 81: break;
case 36:
{ return symbol(sym.ASC);
}
case 82: break;
case 8:
{ return symbol(sym.SUB);
}
case 83: break;
case 41:
{ return symbol(sym.TYPE);
}
case 84: break;
case 3:
{ return symbol(sym.IDENTIFIER, yytext());
}
case 85: break;
case 33:
{ string.append('\"');
}
case 86: break;
case 37:
{ return symbol(sym.ALL);
}
case 87: break;
case 1:
{ scanError();
}
case 88: break;
case 54:
{ return symbol(sym.ORDERBY);
}
case 89: break;
case 20:
{ yybegin(YYINITIAL);
return symbol(sym.STRING, string.toString());
}
case 90: break;
case 32:
{ string.append('\'');
}
case 91: break;
case 40:
{ return symbol(sym.LIKE);
}
case 92: break;
case 22:
{ return symbol(sym.OR);
}
case 93: break;
case 25:
{ return symbol(sym.IN);
}
case 94: break;
case 9:
{ return symbol(sym.EQ);
}
case 95: break;
case 18:
{ yybegin(YYINITIAL);
return symbol(sym.STRING,string.toString());
}
case 96: break;
case 34:
{ return symbol(sym.FROM_IDENTIFIER, yytext());
}
case 97: break;
case 35:
{ return symbol(sym.PATH_IDENTIFIER, yytext());
}
case 98: break;
case 31:
{ string.append('\n');
}
case 99: break;
case 53:
{ return symbol(sym.LOCATION);
}
case 100: break;
case 27:
{ return symbol(sym.LTEQ);
}
case 101: break;
case 23:
{ return symbol(sym.AS);
}
case 102: break;
case 12:
{ return symbol(sym.LPARA);
}
case 103: break;
case 42:
{ return symbol(sym.FROM);
}
case 104: break;
case 49:
{ return symbol(sym.SELECT);
}
case 105: break;
case 13:
{ return symbol(sym.RPARA);
}
case 106: break;
case 58:
{ return symbol(sym.STARTSWITH);
}
case 107: break;
case 26:
{ return symbol(sym.NOTEQ);
}
case 108: break;
case 16:
{ string.setLength(0); yybegin(SQ_STRING);
}
case 109: break;
case 14:
{ return symbol(sym.COMMA);
}
case 110: break;
case 5:
{ return symbol(sym.MUL);
}
case 111: break;
case 56:
{ return symbol(sym.GROUPBY);
}
case 112: break;
case 17:
{ string.append( yytext() );
}
case 113: break;
case 6:
{ return symbol(sym.INTEGER, yytext());
}
case 114: break;
case 43:
{ return symbol(sym.NULL);
}
case 115: break;
case 46:
{ return symbol(sym.LIMIT);
}
case 116: break;
default:
if (zzInput == YYEOF && zzStartRead == zzCurrentPos) {
zzAtEOF = true;
zzDoEOF();
{ return new java_cup.runtime.Symbol(sym.EOF); }
}
else {
zzScanError(ZZ_NO_MATCH);
}
}
}
}
}