dt-sql-parser
Version:
SQL Parsers for BigData, built with antlr4
565 lines (564 loc) • 21.5 kB
TypeScript
import * as antlr from "antlr4ng";
export declare class FlinkSqlLexer extends antlr.Lexer {
static readonly WHITE_SPACE = 1;
static readonly BRACKETED_COMMENT = 2;
static readonly LINE_COMMENT = 3;
static readonly KW_ABS = 4;
static readonly KW_ALL = 5;
static readonly KW_ALLOCATE = 6;
static readonly KW_ALLOW = 7;
static readonly KW_ALTER = 8;
static readonly KW_ANALYZE = 9;
static readonly KW_AND = 10;
static readonly KW_ANY = 11;
static readonly KW_ARE = 12;
static readonly KW_ARRAY = 13;
static readonly KW_ARRAY_AGG = 14;
static readonly KW_ARRAY_CONCAT_AGG = 15;
static readonly KW_ARRAY_MAX_CARDINALITY = 16;
static readonly KW_AS = 17;
static readonly KW_ASENSITIVE = 18;
static readonly KW_ASYMMETRIC = 19;
static readonly KW_AT = 20;
static readonly KW_ATOMIC = 21;
static readonly KW_AUTHORIZATION = 22;
static readonly KW_AVG = 23;
static readonly KW_BEGIN = 24;
static readonly KW_BEGIN_FRAME = 25;
static readonly KW_BEGIN_PARTITION = 26;
static readonly KW_BETWEEN = 27;
static readonly KW_BIGINT = 28;
static readonly KW_BINARY = 29;
static readonly KW_BIT = 30;
static readonly KW_BLOB = 31;
static readonly KW_BOOLEAN = 32;
static readonly KW_BOTH = 33;
static readonly KW_BY = 34;
static readonly KW_BYTES = 35;
static readonly KW_CALL = 36;
static readonly KW_CALLED = 37;
static readonly KW_CARDINALITY = 38;
static readonly KW_CASCADED = 39;
static readonly KW_CASE = 40;
static readonly KW_CAST = 41;
static readonly KW_CATALOGS = 42;
static readonly KW_CEIL = 43;
static readonly KW_CEILING = 44;
static readonly KW_CHANGELOG_MODE = 45;
static readonly KW_CHAR = 46;
static readonly KW_CHARACTER = 47;
static readonly KW_CHARACTER_LENGTH = 48;
static readonly KW_CHAR_LENGTH = 49;
static readonly KW_CHECK = 50;
static readonly KW_CLASSIFIER = 51;
static readonly KW_CLOB = 52;
static readonly KW_CLOSE = 53;
static readonly KW_COALESCE = 54;
static readonly KW_COLLATE = 55;
static readonly KW_COLLECT = 56;
static readonly KW_COLUMN = 57;
static readonly KW_COLUMNS = 58;
static readonly KW_COMMENT = 59;
static readonly KW_COMMIT = 60;
static readonly KW_COMPUTE = 61;
static readonly KW_CONDITION = 62;
static readonly KW_CONNECT = 63;
static readonly KW_CONSTRAINT = 64;
static readonly KW_CONTAINS = 65;
static readonly KW_CONVERT = 66;
static readonly KW_CORR = 67;
static readonly KW_CORRESPONDING = 68;
static readonly KW_COUNT = 69;
static readonly KW_COVAR_POP = 70;
static readonly KW_COVAR_SAMP = 71;
static readonly KW_CREATE = 72;
static readonly KW_CROSS = 73;
static readonly KW_CUBE = 74;
static readonly KW_CUME_DIST = 75;
static readonly KW_CURRENT = 76;
static readonly KW_CURRENT_CATALOG = 77;
static readonly KW_CURRENT_DATE = 78;
static readonly KW_CURRENT_DEFAULT_TRANSFORM_GROUP = 79;
static readonly KW_CURRENT_PATH = 80;
static readonly KW_CURRENT_ROLE = 81;
static readonly KW_CURRENT_ROW = 82;
static readonly KW_CURRENT_SCHEMA = 83;
static readonly KW_CURRENT_TIME = 84;
static readonly KW_CURRENT_TIMESTAMP = 85;
static readonly KW_CURRENT_TRANSFORM_GROUP_FOR_TYPE = 86;
static readonly KW_CURRENT_USER = 87;
static readonly KW_CURSOR = 88;
static readonly KW_CYCLE = 89;
static readonly KW_DATABASES = 90;
static readonly KW_DATE = 91;
static readonly KW_DATETIME = 92;
static readonly KW_DATETIME_DIFF = 93;
static readonly KW_DATETIME_TRUNC = 94;
static readonly KW_DATE_DIFF = 95;
static readonly KW_DATE_TRUNC = 96;
static readonly KW_DAY = 97;
static readonly KW_DAYOFWEEK = 98;
static readonly KW_DAYOFYEAR = 99;
static readonly KW_DEALLOCATE = 100;
static readonly KW_DEC = 101;
static readonly KW_DECIMAL = 102;
static readonly KW_DECLARE = 103;
static readonly KW_DEFAULT = 104;
static readonly KW_DEFINE = 105;
static readonly KW_DELETE = 106;
static readonly KW_DENSE_RANK = 107;
static readonly KW_DEREF = 108;
static readonly KW_DESCRIBE = 109;
static readonly KW_DETERMINISTIC = 110;
static readonly KW_DISALLOW = 111;
static readonly KW_DISCONNECT = 112;
static readonly KW_DISTINCT = 113;
static readonly KW_DOT = 114;
static readonly KW_DOUBLE = 115;
static readonly KW_DROP = 116;
static readonly KW_DYNAMIC = 117;
static readonly KW_EACH = 118;
static readonly KW_ELEMENT = 119;
static readonly KW_ELSE = 120;
static readonly KW_EMPTY = 121;
static readonly KW_END = 122;
static readonly KW_END_FRAME = 123;
static readonly KW_END_PARTITION = 124;
static readonly KW_ENFORCED = 125;
static readonly KW_EQUALS = 126;
static readonly KW_ESCAPE = 127;
static readonly KW_ESTIMATED_COST = 128;
static readonly KW_EVERY = 129;
static readonly KW_EXCEPT = 130;
static readonly KW_EXEC = 131;
static readonly KW_EXECUTE = 132;
static readonly KW_EXISTS = 133;
static readonly KW_EXP = 134;
static readonly KW_EXPLAIN = 135;
static readonly KW_EXTEND = 136;
static readonly KW_EXTENDED = 137;
static readonly KW_EXTERNAL = 138;
static readonly KW_EXTRACT = 139;
static readonly KW_FALSE = 140;
static readonly KW_FETCH = 141;
static readonly KW_FILTER = 142;
static readonly KW_FIRST_VALUE = 143;
static readonly KW_FLOAT = 144;
static readonly KW_FLOOR = 145;
static readonly KW_FOR = 146;
static readonly KW_FOREIGN = 147;
static readonly KW_FRAME_ROW = 148;
static readonly KW_FREE = 149;
static readonly KW_FRIDAY = 150;
static readonly KW_FROM = 151;
static readonly KW_FULL = 152;
static readonly KW_FUNCTION = 153;
static readonly KW_FUNCTIONS = 154;
static readonly KW_FUSION = 155;
static readonly KW_GET = 156;
static readonly KW_GLOBAL = 157;
static readonly KW_GRANT = 158;
static readonly KW_GROUP = 159;
static readonly KW_GROUPING = 160;
static readonly KW_GROUPS = 161;
static readonly KW_GROUP_CONCAT = 162;
static readonly KW_HAVING = 163;
static readonly KW_HOLD = 164;
static readonly KW_HOUR = 165;
static readonly KW_IDENTITY = 166;
static readonly KW_IF = 167;
static readonly KW_ILIKE = 168;
static readonly KW_IMPORT = 169;
static readonly KW_IN = 170;
static readonly KW_INCLUDE = 171;
static readonly KW_INDICATOR = 172;
static readonly KW_INITIAL = 173;
static readonly KW_INNER = 174;
static readonly KW_INOUT = 175;
static readonly KW_INSENSITIVE = 176;
static readonly KW_INSERT = 177;
static readonly KW_INT = 178;
static readonly KW_INTEGER = 179;
static readonly KW_INTERSECT = 180;
static readonly KW_INTERSECTION = 181;
static readonly KW_INTERVAL = 182;
static readonly KW_INTO = 183;
static readonly KW_IS = 184;
static readonly KW_JOIN = 185;
static readonly KW_JSON = 186;
static readonly KW_JSON_ARRAY = 187;
static readonly KW_JSON_ARRAYAGG = 188;
static readonly KW_JSON_EXECUTION_PLAN = 189;
static readonly KW_JSON_EXISTS = 190;
static readonly KW_JSON_OBJECT = 191;
static readonly KW_JSON_OBJECTAGG = 192;
static readonly KW_JSON_QUERY = 193;
static readonly KW_JSON_VALUE = 194;
static readonly KW_LAG = 195;
static readonly KW_LANGUAGE = 196;
static readonly KW_LARGE = 197;
static readonly KW_LAST_VALUE = 198;
static readonly KW_LATERAL = 199;
static readonly KW_LEAD = 200;
static readonly KW_LEADING = 201;
static readonly KW_LEFT = 202;
static readonly KW_LIKE = 203;
static readonly KW_LIKE_REGEX = 204;
static readonly KW_LIMIT = 205;
static readonly KW_LN = 206;
static readonly KW_LOCAL = 207;
static readonly KW_LOCALTIME = 208;
static readonly KW_LOCALTIMESTAMP = 209;
static readonly KW_LOWER = 210;
static readonly KW_MATCH = 211;
static readonly KW_MATCHES = 212;
static readonly KW_MATCH_NUMBER = 213;
static readonly KW_MATCH_RECOGNIZE = 214;
static readonly KW_MAX = 215;
static readonly KW_MEASURES = 216;
static readonly KW_MEMBER = 217;
static readonly KW_MERGE = 218;
static readonly KW_METADATA = 219;
static readonly KW_METHOD = 220;
static readonly KW_MIN = 221;
static readonly KW_MINUS = 222;
static readonly KW_MINUTE = 223;
static readonly KW_MOD = 224;
static readonly KW_MODIFIES = 225;
static readonly KW_MODIFY = 226;
static readonly KW_MODULE = 227;
static readonly KW_MODULES = 228;
static readonly KW_MONDAY = 229;
static readonly KW_MONTH = 230;
static readonly KW_MORE = 231;
static readonly KW_MULTISET = 232;
static readonly KW_NATIONAL = 233;
static readonly KW_NATURAL = 234;
static readonly KW_NCHAR = 235;
static readonly KW_NCLOB = 236;
static readonly KW_NEW = 237;
static readonly KW_NEXT = 238;
static readonly KW_NO = 239;
static readonly KW_NONE = 240;
static readonly KW_NORMALIZE = 241;
static readonly KW_NOT = 242;
static readonly KW_NTH_VALUE = 243;
static readonly KW_NTILE = 244;
static readonly KW_NULL = 245;
static readonly KW_NULLIF = 246;
static readonly KW_NUMERIC = 247;
static readonly KW_OCCURRENCES_REGEX = 248;
static readonly KW_OCTET_LENGTH = 249;
static readonly KW_OF = 250;
static readonly KW_OFFSET = 251;
static readonly KW_OLD = 252;
static readonly KW_OMIT = 253;
static readonly KW_ON = 254;
static readonly KW_ONE = 255;
static readonly KW_ONLY = 256;
static readonly KW_OPEN = 257;
static readonly KW_OR = 258;
static readonly KW_ORDER = 259;
static readonly KW_ORDINAL = 260;
static readonly KW_OUT = 261;
static readonly KW_OUTER = 262;
static readonly KW_OVER = 263;
static readonly KW_OVERLAPS = 264;
static readonly KW_OVERLAY = 265;
static readonly KW_OVERWRITE = 266;
static readonly KW_OVERWRITING = 267;
static readonly KW_PARAMETER = 268;
static readonly KW_PARTITION = 269;
static readonly KW_PARTITIONED = 270;
static readonly KW_PARTITIONS = 271;
static readonly KW_PATTERN = 272;
static readonly KW_PER = 273;
static readonly KW_PERCENT = 274;
static readonly KW_PERCENTILE_CONT = 275;
static readonly KW_PERCENTILE_DISC = 276;
static readonly KW_PERCENT_RANK = 277;
static readonly KW_PERIOD = 278;
static readonly KW_PERMUTE = 279;
static readonly KW_PIVOT = 280;
static readonly KW_PORTION = 281;
static readonly KW_POSITION = 282;
static readonly KW_POSITION_REGEX = 283;
static readonly KW_POWER = 284;
static readonly KW_PRECEDES = 285;
static readonly KW_PRECISION = 286;
static readonly KW_PREPARE = 287;
static readonly KW_PREV = 288;
static readonly KW_PRIMARY = 289;
static readonly KW_PROCEDURE = 290;
static readonly KW_QUALIFY = 291;
static readonly KW_QUARTERS = 292;
static readonly KW_RANGE = 293;
static readonly KW_RANK = 294;
static readonly KW_RAW = 295;
static readonly KW_READS = 296;
static readonly KW_REAL = 297;
static readonly KW_RECURSIVE = 298;
static readonly KW_REF = 299;
static readonly KW_REFERENCES = 300;
static readonly KW_REFERENCING = 301;
static readonly KW_REGR_AVGX = 302;
static readonly KW_REGR_AVGY = 303;
static readonly KW_REGR_COUNT = 304;
static readonly KW_REGR_INTERCEPT = 305;
static readonly KW_REGR_R2 = 306;
static readonly KW_REGR_SLOPE = 307;
static readonly KW_REGR_SXX = 308;
static readonly KW_REGR_SXY = 309;
static readonly KW_REGR_SYY = 310;
static readonly KW_RELEASE = 311;
static readonly KW_RENAME = 312;
static readonly KW_RESET = 313;
static readonly KW_RESULT = 314;
static readonly KW_RETURN = 315;
static readonly KW_RETURNS = 316;
static readonly KW_REVOKE = 317;
static readonly KW_RIGHT = 318;
static readonly KW_RLIKE = 319;
static readonly KW_ROLLBACK = 320;
static readonly KW_ROLLUP = 321;
static readonly KW_ROW = 322;
static readonly KW_ROWS = 323;
static readonly KW_ROW_NUMBER = 324;
static readonly KW_RUNNING = 325;
static readonly KW_SAFE_CAST = 326;
static readonly KW_SAFE_OFFSET = 327;
static readonly KW_SAFE_ORDINAL = 328;
static readonly KW_SATURDAY = 329;
static readonly KW_SAVEPOINT = 330;
static readonly KW_SCALA = 331;
static readonly KW_SCOPE = 332;
static readonly KW_SCROLL = 333;
static readonly KW_SEARCH = 334;
static readonly KW_SECOND = 335;
static readonly KW_SEEK = 336;
static readonly KW_SELECT = 337;
static readonly KW_SENSITIVE = 338;
static readonly KW_SEPARATOR = 339;
static readonly KW_SESSION_USER = 340;
static readonly KW_SET = 341;
static readonly KW_SHOW = 342;
static readonly KW_SIMILAR = 343;
static readonly KW_SKIP = 344;
static readonly KW_SMALLINT = 345;
static readonly KW_SOME = 346;
static readonly KW_SPECIFIC = 347;
static readonly KW_SPECIFICTYPE = 348;
static readonly KW_SQL = 349;
static readonly KW_SQLEXCEPTION = 350;
static readonly KW_SQLSTATE = 351;
static readonly KW_SQLWARNING = 352;
static readonly KW_SQRT = 353;
static readonly KW_START = 354;
static readonly KW_STATEMENT = 355;
static readonly KW_STATIC = 356;
static readonly KW_STATISTICS = 357;
static readonly KW_STDDEV_POP = 358;
static readonly KW_STDDEV_SAMP = 359;
static readonly KW_STREAM = 360;
static readonly KW_STRING = 361;
static readonly KW_STRING_AGG = 362;
static readonly KW_SUBMULTISET = 363;
static readonly KW_SUBSET = 364;
static readonly KW_SUBSTRING = 365;
static readonly KW_SUBSTRING_REGEX = 366;
static readonly KW_SUCCEEDS = 367;
static readonly KW_SUM = 368;
static readonly KW_SUNDAY = 369;
static readonly KW_SYMMETRIC = 370;
static readonly KW_SYSTEM = 371;
static readonly KW_SYSTEM_TIME = 372;
static readonly KW_SYSTEM_USER = 373;
static readonly KW_TABLE = 374;
static readonly KW_TABLES = 375;
static readonly KW_TABLESAMPLE = 376;
static readonly KW_THEN = 377;
static readonly KW_THURSDAY = 378;
static readonly KW_TIME = 379;
static readonly KW_TIMESTAMP = 380;
static readonly KW_TIMESTAMP_DIFF = 381;
static readonly KW_TIMESTAMP_LTZ = 382;
static readonly KW_TIMESTAMP_TRUNC = 383;
static readonly KW_TIMEZONE_HOUR = 384;
static readonly KW_TIMEZONE_MINUTE = 385;
static readonly KW_TIME_DIFF = 386;
static readonly KW_TIME_TRUNC = 387;
static readonly KW_TINYINT = 388;
static readonly KW_TO = 389;
static readonly KW_TRAILING = 390;
static readonly KW_TRANSLATE = 391;
static readonly KW_TRANSLATE_REGEX = 392;
static readonly KW_TRANSLATION = 393;
static readonly KW_TREAT = 394;
static readonly KW_TRIGGER = 395;
static readonly KW_TRIM = 396;
static readonly KW_TRIM_ARRAY = 397;
static readonly KW_TRUE = 398;
static readonly KW_TRUNCATE = 399;
static readonly KW_TRY_CAST = 400;
static readonly KW_TUESDAY = 401;
static readonly KW_UESCAPE = 402;
static readonly KW_UNION = 403;
static readonly KW_UNIQUE = 404;
static readonly KW_UNKNOWN = 405;
static readonly KW_UNNEST = 406;
static readonly KW_UNPIVOT = 407;
static readonly KW_UPDATE = 408;
static readonly KW_UPPER = 409;
static readonly KW_UPSERT = 410;
static readonly KW_USE = 411;
static readonly KW_USER = 412;
static readonly KW_USING = 413;
static readonly KW_VALUE = 414;
static readonly KW_VALUES = 415;
static readonly KW_VALUE_OF = 416;
static readonly KW_VARBINARY = 417;
static readonly KW_VARCHAR = 418;
static readonly KW_VARYING = 419;
static readonly KW_VAR_POP = 420;
static readonly KW_VAR_SAMP = 421;
static readonly KW_VERSIONING = 422;
static readonly KW_VIEWS = 423;
static readonly KW_VIRTUAL = 424;
static readonly KW_WATERMARK = 425;
static readonly KW_WATERMARKS = 426;
static readonly KW_WEDNESDAY = 427;
static readonly KW_WEEKS = 428;
static readonly KW_WHEN = 429;
static readonly KW_WHENEVER = 430;
static readonly KW_WHERE = 431;
static readonly KW_WIDTH_BUCKET = 432;
static readonly KW_WINDOW = 433;
static readonly KW_WITH = 434;
static readonly KW_WITHIN = 435;
static readonly KW_WITHOUT = 436;
static readonly KW_YEAR = 437;
static readonly KW_ADD = 438;
static readonly KW_AFTER = 439;
static readonly KW_ASC = 440;
static readonly KW_CASCADE = 441;
static readonly KW_CATALOG = 442;
static readonly KW_CENTURY = 443;
static readonly KW_CONFIG = 444;
static readonly KW_CONSTRAINTS = 445;
static readonly KW_CUMULATE = 446;
static readonly KW_DATA = 447;
static readonly KW_DATABASE = 448;
static readonly KW_DAYS = 449;
static readonly KW_DECADE = 450;
static readonly KW_DESC = 451;
static readonly KW_DESCRIPTOR = 452;
static readonly KW_DIV = 453;
static readonly KW_ENGINE = 454;
static readonly KW_EPOCH = 455;
static readonly KW_EXCLUDING = 456;
static readonly KW_FILE = 457;
static readonly KW_FIRST = 458;
static readonly KW_GENERATED = 459;
static readonly KW_HOP = 460;
static readonly KW_HOURS = 461;
static readonly KW_IGNORE = 462;
static readonly KW_INCLUDING = 463;
static readonly KW_JAR = 464;
static readonly KW_JARS = 465;
static readonly KW_JAVA = 466;
static readonly KW_KEY = 467;
static readonly KW_LAST = 468;
static readonly KW_LOAD = 469;
static readonly KW_MAP = 470;
static readonly KW_MICROSECOND = 471;
static readonly KW_MILLENNIUM = 472;
static readonly KW_MILLISECOND = 473;
static readonly KW_MINUTES = 474;
static readonly KW_MONTHS = 475;
static readonly KW_NANOSECOND = 476;
static readonly KW_NULLS = 477;
static readonly KW_OPTIONS = 478;
static readonly KW_PAST = 479;
static readonly KW_PLAN = 480;
static readonly KW_PRECEDING = 481;
static readonly KW_PYTHON = 482;
static readonly KW_PYTHON_ARCHIVES = 483;
static readonly KW_PYTHON_DEPENDENCIES = 484;
static readonly KW_PYTHON_FILES = 485;
static readonly KW_PYTHON_JAR = 486;
static readonly KW_PYTHON_PARAMETER = 487;
static readonly KW_PYTHON_REQUIREMENTS = 488;
static readonly KW_QUARTER = 489;
static readonly KW_REMOVE = 490;
static readonly KW_RESTRICT = 491;
static readonly KW_SECONDS = 492;
static readonly KW_SESSION = 493;
static readonly KW_SETS = 494;
static readonly KW_SIZE = 495;
static readonly KW_SLIDE = 496;
static readonly KW_STEP = 497;
static readonly KW_TEMPORARY = 498;
static readonly KW_TIMECOL = 499;
static readonly KW_TUMBLE = 500;
static readonly KW_UNLOAD = 501;
static readonly KW_VIEW = 502;
static readonly KW_WEEK = 503;
static readonly KW_YEARS = 504;
static readonly KW_ZONE = 505;
static readonly EQUAL_SYMBOL = 506;
static readonly GREATER_SYMBOL = 507;
static readonly LESS_SYMBOL = 508;
static readonly EXCLAMATION_SYMBOL = 509;
static readonly BIT_NOT_OP = 510;
static readonly BIT_OR_OP = 511;
static readonly BIT_AND_OP = 512;
static readonly BIT_XOR_OP = 513;
static readonly DOT = 514;
static readonly LS_BRACKET = 515;
static readonly RS_BRACKET = 516;
static readonly LR_BRACKET = 517;
static readonly RR_BRACKET = 518;
static readonly LB_BRACKET = 519;
static readonly RB_BRACKET = 520;
static readonly COMMA = 521;
static readonly SEMICOLON = 522;
static readonly AT_SIGN = 523;
static readonly SINGLE_QUOTE_SYMB = 524;
static readonly DOUBLE_QUOTE_SYMB = 525;
static readonly REVERSE_QUOTE_SYMB = 526;
static readonly COLON_SYMB = 527;
static readonly ASTERISK_SIGN = 528;
static readonly UNDERLINE_SIGN = 529;
static readonly HYPHEN_SIGN = 530;
static readonly ADD_SIGN = 531;
static readonly PERCENT_SIGN = 532;
static readonly DOUBLE_VERTICAL_SIGN = 533;
static readonly DOUBLE_HYPHEN_SIGN = 534;
static readonly SLASH_SIGN = 535;
static readonly QUESTION_MARK_SIGN = 536;
static readonly DOUBLE_RIGHT_ARROW = 537;
static readonly STRING_LITERAL = 538;
static readonly DIG_LITERAL = 539;
static readonly REAL_LITERAL = 540;
static readonly BIT_STRING = 541;
static readonly ID_LITERAL = 542;
static readonly channelNames: string[];
static readonly literalNames: (string | null)[];
static readonly symbolicNames: (string | null)[];
static readonly modeNames: string[];
static readonly ruleNames: string[];
constructor(input: antlr.CharStream);
get grammarFileName(): string;
get literalNames(): (string | null)[];
get symbolicNames(): (string | null)[];
get ruleNames(): string[];
get serializedATN(): number[];
get channelNames(): string[];
get modeNames(): string[];
static readonly _serializedATN: number[];
private static __ATN;
static get _ATN(): antlr.ATN;
private static readonly vocabulary;
get vocabulary(): antlr.Vocabulary;
private static readonly decisionsToDFA;
}