org.apache.cassandra.cql3.CqlLexer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-all Show documentation
Show all versions of cassandra-all Show documentation
The Apache Cassandra Project develops a highly scalable second-generation distributed database, bringing together Dynamo's fully distributed design and Bigtable's ColumnFamily-based data model.
// $ANTLR 3.5.2 Cql__.g 2024-04-12 17:39:07
package org.apache.cassandra.cql3;
import org.apache.cassandra.exceptions.SyntaxException;
import org.antlr.runtime.*;
import java.util.Stack;
import java.util.List;
import java.util.ArrayList;
@SuppressWarnings("all")
public class CqlLexer extends Lexer {
public static final int EOF=-1;
public static final int T__186=186;
public static final int T__187=187;
public static final int T__188=188;
public static final int T__189=189;
public static final int T__190=190;
public static final int T__191=191;
public static final int T__192=192;
public static final int T__193=193;
public static final int T__194=194;
public static final int T__195=195;
public static final int T__196=196;
public static final int T__197=197;
public static final int T__198=198;
public static final int T__199=199;
public static final int T__200=200;
public static final int T__201=201;
public static final int T__202=202;
public static final int T__203=203;
public static final int T__204=204;
public static final int T__205=205;
public static final int T__206=206;
public static final int T__207=207;
public static final int A=4;
public static final int B=5;
public static final int BOOLEAN=6;
public static final int C=7;
public static final int COMMENT=8;
public static final int D=9;
public static final int DIGIT=10;
public static final int DURATION=11;
public static final int DURATION_ISO_8601_PERIOD_DESIGNATORS=12;
public static final int DURATION_ISO_8601_TIME_DESIGNATORS=13;
public static final int DURATION_ISO_8601_WEEK_PERIOD_DESIGNATOR=14;
public static final int DURATION_UNIT=15;
public static final int E=16;
public static final int EMPTY_QUOTED_NAME=17;
public static final int EXPONENT=18;
public static final int F=19;
public static final int FLOAT=20;
public static final int G=21;
public static final int H=22;
public static final int HEX=23;
public static final int HEXNUMBER=24;
public static final int I=25;
public static final int IDENT=26;
public static final int INTEGER=27;
public static final int J=28;
public static final int K=29;
public static final int K_ADD=30;
public static final int K_AGGREGATE=31;
public static final int K_ALL=32;
public static final int K_ALLOW=33;
public static final int K_ALTER=34;
public static final int K_AND=35;
public static final int K_APPLY=36;
public static final int K_AS=37;
public static final int K_ASC=38;
public static final int K_ASCII=39;
public static final int K_AUTHORIZE=40;
public static final int K_BATCH=41;
public static final int K_BEGIN=42;
public static final int K_BIGINT=43;
public static final int K_BLOB=44;
public static final int K_BOOLEAN=45;
public static final int K_BY=46;
public static final int K_CALLED=47;
public static final int K_CAST=48;
public static final int K_CLUSTERING=49;
public static final int K_COLUMNFAMILY=50;
public static final int K_COMPACT=51;
public static final int K_CONTAINS=52;
public static final int K_COUNT=53;
public static final int K_COUNTER=54;
public static final int K_CREATE=55;
public static final int K_CUSTOM=56;
public static final int K_DATE=57;
public static final int K_DECIMAL=58;
public static final int K_DEFAULT=59;
public static final int K_DELETE=60;
public static final int K_DESC=61;
public static final int K_DESCRIBE=62;
public static final int K_DISTINCT=63;
public static final int K_DOUBLE=64;
public static final int K_DROP=65;
public static final int K_DURATION=66;
public static final int K_ENTRIES=67;
public static final int K_EXECUTE=68;
public static final int K_EXISTS=69;
public static final int K_FILTERING=70;
public static final int K_FINALFUNC=71;
public static final int K_FLOAT=72;
public static final int K_FROM=73;
public static final int K_FROZEN=74;
public static final int K_FULL=75;
public static final int K_FUNCTION=76;
public static final int K_FUNCTIONS=77;
public static final int K_GRANT=78;
public static final int K_GROUP=79;
public static final int K_IF=80;
public static final int K_IN=81;
public static final int K_INDEX=82;
public static final int K_INET=83;
public static final int K_INFINITY=84;
public static final int K_INITCOND=85;
public static final int K_INPUT=86;
public static final int K_INSERT=87;
public static final int K_INT=88;
public static final int K_INTO=89;
public static final int K_IS=90;
public static final int K_JSON=91;
public static final int K_KEY=92;
public static final int K_KEYS=93;
public static final int K_KEYSPACE=94;
public static final int K_KEYSPACES=95;
public static final int K_LANGUAGE=96;
public static final int K_LIKE=97;
public static final int K_LIMIT=98;
public static final int K_LIST=99;
public static final int K_LOGIN=100;
public static final int K_MAP=101;
public static final int K_MATERIALIZED=102;
public static final int K_MBEAN=103;
public static final int K_MBEANS=104;
public static final int K_MODIFY=105;
public static final int K_NAN=106;
public static final int K_NOLOGIN=107;
public static final int K_NORECURSIVE=108;
public static final int K_NOSUPERUSER=109;
public static final int K_NOT=110;
public static final int K_NULL=111;
public static final int K_OF=112;
public static final int K_ON=113;
public static final int K_OPTIONS=114;
public static final int K_OR=115;
public static final int K_ORDER=116;
public static final int K_PARTITION=117;
public static final int K_PASSWORD=118;
public static final int K_PER=119;
public static final int K_PERMISSION=120;
public static final int K_PERMISSIONS=121;
public static final int K_PRIMARY=122;
public static final int K_RENAME=123;
public static final int K_REPLACE=124;
public static final int K_RETURNS=125;
public static final int K_REVOKE=126;
public static final int K_ROLE=127;
public static final int K_ROLES=128;
public static final int K_SELECT=129;
public static final int K_SET=130;
public static final int K_SFUNC=131;
public static final int K_SMALLINT=132;
public static final int K_STATIC=133;
public static final int K_STORAGE=134;
public static final int K_STYPE=135;
public static final int K_SUPERUSER=136;
public static final int K_TEXT=137;
public static final int K_TIME=138;
public static final int K_TIMESTAMP=139;
public static final int K_TIMEUUID=140;
public static final int K_TINYINT=141;
public static final int K_TO=142;
public static final int K_TOKEN=143;
public static final int K_TRIGGER=144;
public static final int K_TRUNCATE=145;
public static final int K_TTL=146;
public static final int K_TUPLE=147;
public static final int K_TYPE=148;
public static final int K_UNLOGGED=149;
public static final int K_UNSET=150;
public static final int K_UPDATE=151;
public static final int K_USE=152;
public static final int K_USER=153;
public static final int K_USERS=154;
public static final int K_USING=155;
public static final int K_UUID=156;
public static final int K_VALUES=157;
public static final int K_VARCHAR=158;
public static final int K_VARINT=159;
public static final int K_VIEW=160;
public static final int K_WHERE=161;
public static final int K_WITH=162;
public static final int K_WRITETIME=163;
public static final int L=164;
public static final int LETTER=165;
public static final int M=166;
public static final int MULTILINE_COMMENT=167;
public static final int N=168;
public static final int O=169;
public static final int P=170;
public static final int Q=171;
public static final int QMARK=172;
public static final int QUOTED_NAME=173;
public static final int R=174;
public static final int S=175;
public static final int STRING_LITERAL=176;
public static final int T=177;
public static final int U=178;
public static final int UUID=179;
public static final int V=180;
public static final int W=181;
public static final int WS=182;
public static final int X=183;
public static final int Y=184;
public static final int Z=185;
public static final int Tokens=208;
List tokens = new ArrayList();
public void emit(Token token)
{
state.token = token;
tokens.add(token);
}
public Token nextToken()
{
super.nextToken();
if (tokens.size() == 0)
return new CommonToken(Token.EOF);
return tokens.remove(0);
}
private final List listeners = new ArrayList();
public void addErrorListener(ErrorListener listener)
{
this.listeners.add(listener);
}
public void removeErrorListener(ErrorListener listener)
{
this.listeners.remove(listener);
}
public void displayRecognitionError(String[] tokenNames, RecognitionException e)
{
for (int i = 0, m = listeners.size(); i < m; i++)
listeners.get(i).syntaxError(this, tokenNames, e);
}
// delegates
public Cql_Lexer gLexer;
// delegators
public Lexer[] getDelegates() {
return new Lexer[] {gLexer};
}
public CqlLexer() {}
public CqlLexer(CharStream input) {
this(input, new RecognizerSharedState());
}
public CqlLexer(CharStream input, RecognizerSharedState state) {
super(input,state);
gLexer = new Cql_Lexer(input, state, this);
}
@Override public String getGrammarFileName() { return "Cql__.g"; }
// $ANTLR start "T__186"
public final void mT__186() throws RecognitionException {
try {
int _type = T__186;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:49:8: ( '!=' )
// Cql__.g:49:10: '!='
{
match("!=");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__186"
// $ANTLR start "T__187"
public final void mT__187() throws RecognitionException {
try {
int _type = T__187;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:50:8: ( '(' )
// Cql__.g:50:10: '('
{
match('(');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__187"
// $ANTLR start "T__188"
public final void mT__188() throws RecognitionException {
try {
int _type = T__188;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:51:8: ( ')' )
// Cql__.g:51:10: ')'
{
match(')');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__188"
// $ANTLR start "T__189"
public final void mT__189() throws RecognitionException {
try {
int _type = T__189;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:52:8: ( '+' )
// Cql__.g:52:10: '+'
{
match('+');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__189"
// $ANTLR start "T__190"
public final void mT__190() throws RecognitionException {
try {
int _type = T__190;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:53:8: ( '+=' )
// Cql__.g:53:10: '+='
{
match("+=");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__190"
// $ANTLR start "T__191"
public final void mT__191() throws RecognitionException {
try {
int _type = T__191;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:54:8: ( ',' )
// Cql__.g:54:10: ','
{
match(',');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__191"
// $ANTLR start "T__192"
public final void mT__192() throws RecognitionException {
try {
int _type = T__192;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:55:8: ( '-' )
// Cql__.g:55:10: '-'
{
match('-');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__192"
// $ANTLR start "T__193"
public final void mT__193() throws RecognitionException {
try {
int _type = T__193;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:56:8: ( '-=' )
// Cql__.g:56:10: '-='
{
match("-=");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__193"
// $ANTLR start "T__194"
public final void mT__194() throws RecognitionException {
try {
int _type = T__194;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:57:8: ( '.' )
// Cql__.g:57:10: '.'
{
match('.');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__194"
// $ANTLR start "T__195"
public final void mT__195() throws RecognitionException {
try {
int _type = T__195;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:58:8: ( ':' )
// Cql__.g:58:10: ':'
{
match(':');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__195"
// $ANTLR start "T__196"
public final void mT__196() throws RecognitionException {
try {
int _type = T__196;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:59:8: ( ';' )
// Cql__.g:59:10: ';'
{
match(';');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__196"
// $ANTLR start "T__197"
public final void mT__197() throws RecognitionException {
try {
int _type = T__197;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:60:8: ( '<' )
// Cql__.g:60:10: '<'
{
match('<');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__197"
// $ANTLR start "T__198"
public final void mT__198() throws RecognitionException {
try {
int _type = T__198;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:61:8: ( '<=' )
// Cql__.g:61:10: '<='
{
match("<=");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__198"
// $ANTLR start "T__199"
public final void mT__199() throws RecognitionException {
try {
int _type = T__199;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:62:8: ( '=' )
// Cql__.g:62:10: '='
{
match('=');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__199"
// $ANTLR start "T__200"
public final void mT__200() throws RecognitionException {
try {
int _type = T__200;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:63:8: ( '>' )
// Cql__.g:63:10: '>'
{
match('>');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__200"
// $ANTLR start "T__201"
public final void mT__201() throws RecognitionException {
try {
int _type = T__201;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:64:8: ( '>=' )
// Cql__.g:64:10: '>='
{
match(">=");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__201"
// $ANTLR start "T__202"
public final void mT__202() throws RecognitionException {
try {
int _type = T__202;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:65:8: ( '[' )
// Cql__.g:65:10: '['
{
match('[');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__202"
// $ANTLR start "T__203"
public final void mT__203() throws RecognitionException {
try {
int _type = T__203;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:66:8: ( '\\*' )
// Cql__.g:66:10: '\\*'
{
match('*');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__203"
// $ANTLR start "T__204"
public final void mT__204() throws RecognitionException {
try {
int _type = T__204;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:67:8: ( ']' )
// Cql__.g:67:10: ']'
{
match(']');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__204"
// $ANTLR start "T__205"
public final void mT__205() throws RecognitionException {
try {
int _type = T__205;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:68:8: ( 'expr(' )
// Cql__.g:68:10: 'expr('
{
match("expr(");
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__205"
// $ANTLR start "T__206"
public final void mT__206() throws RecognitionException {
try {
int _type = T__206;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:69:8: ( '{' )
// Cql__.g:69:10: '{'
{
match('{');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__206"
// $ANTLR start "T__207"
public final void mT__207() throws RecognitionException {
try {
int _type = T__207;
int _channel = DEFAULT_TOKEN_CHANNEL;
// Cql__.g:70:8: ( '}' )
// Cql__.g:70:10: '}'
{
match('}');
}
state.type = _type;
state.channel = _channel;
}
finally {
// do for sure before leaving
}
}
// $ANTLR end "T__207"
@Override
public void mTokens() throws RecognitionException {
// Cql__.g:1:8: ( T__186 | T__187 | T__188 | T__189 | T__190 | T__191 | T__192 | T__193 | T__194 | T__195 | T__196 | T__197 | T__198 | T__199 | T__200 | T__201 | T__202 | T__203 | T__204 | T__205 | T__206 | T__207 | Lexer. Tokens )
int alt1=23;
alt1 = dfa1.predict(input);
switch (alt1) {
case 1 :
// Cql__.g:1:10: T__186
{
mT__186();
}
break;
case 2 :
// Cql__.g:1:17: T__187
{
mT__187();
}
break;
case 3 :
// Cql__.g:1:24: T__188
{
mT__188();
}
break;
case 4 :
// Cql__.g:1:31: T__189
{
mT__189();
}
break;
case 5 :
// Cql__.g:1:38: T__190
{
mT__190();
}
break;
case 6 :
// Cql__.g:1:45: T__191
{
mT__191();
}
break;
case 7 :
// Cql__.g:1:52: T__192
{
mT__192();
}
break;
case 8 :
// Cql__.g:1:59: T__193
{
mT__193();
}
break;
case 9 :
// Cql__.g:1:66: T__194
{
mT__194();
}
break;
case 10 :
// Cql__.g:1:73: T__195
{
mT__195();
}
break;
case 11 :
// Cql__.g:1:80: T__196
{
mT__196();
}
break;
case 12 :
// Cql__.g:1:87: T__197
{
mT__197();
}
break;
case 13 :
// Cql__.g:1:94: T__198
{
mT__198();
}
break;
case 14 :
// Cql__.g:1:101: T__199
{
mT__199();
}
break;
case 15 :
// Cql__.g:1:108: T__200
{
mT__200();
}
break;
case 16 :
// Cql__.g:1:115: T__201
{
mT__201();
}
break;
case 17 :
// Cql__.g:1:122: T__202
{
mT__202();
}
break;
case 18 :
// Cql__.g:1:129: T__203
{
mT__203();
}
break;
case 19 :
// Cql__.g:1:136: T__204
{
mT__204();
}
break;
case 20 :
// Cql__.g:1:143: T__205
{
mT__205();
}
break;
case 21 :
// Cql__.g:1:150: T__206
{
mT__206();
}
break;
case 22 :
// Cql__.g:1:157: T__207
{
mT__207();
}
break;
case 23 :
// Cql__.g:1:164: Lexer. Tokens
{
gLexer.mTokens();
}
break;
}
}
protected DFA1 dfa1 = new DFA1(this);
static final String DFA1_eotS =
"\4\uffff\1\25\1\uffff\1\27\3\uffff\1\31\1\uffff\1\33\3\uffff\1\23\13\uffff"+
"\3\23\1\uffff";
static final String DFA1_eofS =
"\40\uffff";
static final String DFA1_minS =
"\1\11\3\uffff\1\75\1\uffff\1\55\3\uffff\1\75\1\uffff\1\75\3\uffff\1\170"+
"\13\uffff\1\160\1\162\1\50\1\uffff";
static final String DFA1_maxS =
"\1\175\3\uffff\1\75\1\uffff\1\120\3\uffff\1\75\1\uffff\1\75\3\uffff\1"+
"\170\13\uffff\1\160\1\162\1\50\1\uffff";
static final String DFA1_acceptS =
"\1\uffff\1\1\1\2\1\3\1\uffff\1\6\1\uffff\1\11\1\12\1\13\1\uffff\1\16\1"+
"\uffff\1\21\1\22\1\23\1\uffff\1\25\1\26\1\27\1\5\1\4\1\10\1\7\1\15\1\14"+
"\1\20\1\17\3\uffff\1\24";
static final String DFA1_specialS =
"\40\uffff}>";
static final String[] DFA1_transitionS = {
"\2\23\2\uffff\1\23\22\uffff\1\23\1\1\1\23\1\uffff\1\23\2\uffff\1\23\1"+
"\2\1\3\1\16\1\4\1\5\1\6\1\7\13\23\1\10\1\11\1\12\1\13\1\14\1\23\1\uffff"+
"\32\23\1\15\1\uffff\1\17\3\uffff\4\23\1\20\25\23\1\21\1\uffff\1\22",
"",
"",
"",
"\1\24",
"",
"\1\23\2\uffff\12\23\3\uffff\1\26\22\uffff\1\23",
"",
"",
"",
"\1\30",
"",
"\1\32",
"",
"",
"",
"\1\34",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"",
"\1\35",
"\1\36",
"\1\37",
""
};
static final short[] DFA1_eot = DFA.unpackEncodedString(DFA1_eotS);
static final short[] DFA1_eof = DFA.unpackEncodedString(DFA1_eofS);
static final char[] DFA1_min = DFA.unpackEncodedStringToUnsignedChars(DFA1_minS);
static final char[] DFA1_max = DFA.unpackEncodedStringToUnsignedChars(DFA1_maxS);
static final short[] DFA1_accept = DFA.unpackEncodedString(DFA1_acceptS);
static final short[] DFA1_special = DFA.unpackEncodedString(DFA1_specialS);
static final short[][] DFA1_transition;
static {
int numStates = DFA1_transitionS.length;
DFA1_transition = new short[numStates][];
for (int i=0; i
© 2015 - 2024 Weber Informatics LLC | Privacy Policy