options { STATIC = false; ERROR_REPORTING = true; JAVA_UNICODE_ESCAPE = true; UNICODE_INPUT = false; IGNORE_CASE = true; DEBUG_PARSER = false; DEBUG_LOOKAHEAD = false; DEBUG_TOKEN_MANAGER = false; } PARSER_BEGIN(SQLParser) package org.teiid.query.parser; import java.math.BigInteger; import java.util.*; import org.teiid.core.types.*; import org.teiid.core.util.StringUtil; import org.teiid.core.util.PropertiesUtils; import org.teiid.query.QueryPlugin; import org.teiid.query.sql.LanguageObject; import org.teiid.query.sql.proc.*; import org.teiid.query.sql.symbol.*; import org.teiid.query.metadata.*; import org.teiid.metadata.*; import org.teiid.metadata.BaseColumn.NullType; import org.teiid.language.Like.MatchMode; import org.teiid.translator.*; import org.teiid.query.sql.lang.*; /** *
The SQLParser is a JavaCC-generated parser that reads a SQL string and produces a * Query object. The SQLParser.java file is generated by JavaCC from the SQLParser.jj * file. WARNING: DO NOT MODIFY the SQLParser.java file as it will be * regenerated from the .jj file and your changes will be lost!
*/ @SuppressWarnings({"nls", "unused"}) public class SQLParser extends SQLParserUtil { private void jj_add_error_token ( int kind, int pos) { if (pos >= 100) return; if (pos == jj_endpos + 1) { jj_lasttokens[jj_endpos++] = kind; } else if (jj_endpos != 0) { jj_expentry = new int[jj_endpos]; for (int i = 0; i < jj_endpos; i++) { jj_expentry[i] = jj_lasttokens[i]; } boolean exists = false; for (java.util.Iterator e = jj_expentries.iterator(); e.hasNext();) { int[] oldentry = (int[])(e.next()); if (oldentry.length == jj_expentry.length) { exists = true; for (int i = 0; i < jj_expentry.length; i++) { if (oldentry[i] != jj_expentry[i]) { exists = false; break; } } if (exists) break; } } if (!exists) jj_expentries.add(jj_expentry); if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind; } } } // end class PARSER_END(SQLParser) TOKEN_MGR_DECLS : { int commentNestingDepth; } SKIP : { " " | "\t" | "\n" | "\r" } MORE : { "/*" { commentNestingDepth = 1 ; } : IN_MULTI_LINE_COMMENT }