rhombic
Version:
SQL parsing, lineage extraction and manipulation
368 lines • 13.2 kB
TypeScript
import { ATN } from "antlr4ts/atn/ATN";
import { CharStream } from "antlr4ts/CharStream";
import { Lexer } from "antlr4ts/Lexer";
import { RuleContext } from "antlr4ts/RuleContext";
import { Vocabulary } from "antlr4ts/Vocabulary";
export declare class SqlBaseLexer extends Lexer {
static readonly T__0 = 1;
static readonly T__1 = 2;
static readonly T__2 = 3;
static readonly T__3 = 4;
static readonly T__4 = 5;
static readonly T__5 = 6;
static readonly T__6 = 7;
static readonly T__7 = 8;
static readonly T__8 = 9;
static readonly T__9 = 10;
static readonly T__10 = 11;
static readonly T__11 = 12;
static readonly T__12 = 13;
static readonly T__13 = 14;
static readonly T__14 = 15;
static readonly ADD = 16;
static readonly AFTER = 17;
static readonly ALL = 18;
static readonly ALTER = 19;
static readonly ANALYZE = 20;
static readonly AND = 21;
static readonly ANTI = 22;
static readonly ANY = 23;
static readonly ARCHIVE = 24;
static readonly ARRAY = 25;
static readonly AS = 26;
static readonly ASC = 27;
static readonly AT = 28;
static readonly AUTHORIZATION = 29;
static readonly BETWEEN = 30;
static readonly BOTH = 31;
static readonly BUCKET = 32;
static readonly BUCKETS = 33;
static readonly BY = 34;
static readonly CACHE = 35;
static readonly CASCADE = 36;
static readonly CASE = 37;
static readonly CAST = 38;
static readonly CHANGE = 39;
static readonly CHECK = 40;
static readonly CLEAR = 41;
static readonly CLUSTER = 42;
static readonly CLUSTERED = 43;
static readonly CODEGEN = 44;
static readonly COLLATE = 45;
static readonly COLLECTION = 46;
static readonly COLUMN = 47;
static readonly COLUMNS = 48;
static readonly COMMENT = 49;
static readonly COMMIT = 50;
static readonly COMPACT = 51;
static readonly COMPACTIONS = 52;
static readonly COMPUTE = 53;
static readonly CONCATENATE = 54;
static readonly CONSTRAINT = 55;
static readonly COST = 56;
static readonly CREATE = 57;
static readonly CROSS = 58;
static readonly CUBE = 59;
static readonly CURRENT = 60;
static readonly CURRENT_DATE = 61;
static readonly CURRENT_TIME = 62;
static readonly CURRENT_TIMESTAMP = 63;
static readonly CURRENT_USER = 64;
static readonly DAY = 65;
static readonly DATA = 66;
static readonly DATABASE = 67;
static readonly DATABASES = 68;
static readonly DBPROPERTIES = 69;
static readonly DEFINED = 70;
static readonly DELETE = 71;
static readonly DELIMITED = 72;
static readonly DESC = 73;
static readonly DESCRIBE = 74;
static readonly DFS = 75;
static readonly DIRECTORIES = 76;
static readonly DIRECTORY = 77;
static readonly DISTINCT = 78;
static readonly DISTRIBUTE = 79;
static readonly DIV = 80;
static readonly DROP = 81;
static readonly ELSE = 82;
static readonly END = 83;
static readonly ESCAPE = 84;
static readonly ESCAPED = 85;
static readonly EXCEPT = 86;
static readonly EXCHANGE = 87;
static readonly EXISTS = 88;
static readonly EXPLAIN = 89;
static readonly EXPORT = 90;
static readonly EXTENDED = 91;
static readonly EXTERNAL = 92;
static readonly EXTRACT = 93;
static readonly FALSE = 94;
static readonly FETCH = 95;
static readonly FIELDS = 96;
static readonly FILTER = 97;
static readonly FILEFORMAT = 98;
static readonly FIRST = 99;
static readonly FOLLOWING = 100;
static readonly FOR = 101;
static readonly FOREIGN = 102;
static readonly FORMAT = 103;
static readonly FORMATTED = 104;
static readonly FROM = 105;
static readonly FULL = 106;
static readonly FUNCTION = 107;
static readonly FUNCTIONS = 108;
static readonly GLOBAL = 109;
static readonly GRANT = 110;
static readonly GROUP = 111;
static readonly GROUPING = 112;
static readonly HAVING = 113;
static readonly HOUR = 114;
static readonly IF = 115;
static readonly IGNORE = 116;
static readonly IMPORT = 117;
static readonly IN = 118;
static readonly INDEX = 119;
static readonly INDEXES = 120;
static readonly INNER = 121;
static readonly INPATH = 122;
static readonly INPUTFORMAT = 123;
static readonly INSERT = 124;
static readonly INTERSECT = 125;
static readonly INTERVAL = 126;
static readonly INTO = 127;
static readonly IS = 128;
static readonly ITEMS = 129;
static readonly JOIN = 130;
static readonly KEYS = 131;
static readonly LAST = 132;
static readonly LATERAL = 133;
static readonly LAZY = 134;
static readonly LEADING = 135;
static readonly LEFT = 136;
static readonly LIKE = 137;
static readonly LIMIT = 138;
static readonly LINES = 139;
static readonly LIST = 140;
static readonly LOAD = 141;
static readonly LOCAL = 142;
static readonly LOCATION = 143;
static readonly LOCK = 144;
static readonly LOCKS = 145;
static readonly LOGICAL = 146;
static readonly MACRO = 147;
static readonly MAP = 148;
static readonly MATCHED = 149;
static readonly MERGE = 150;
static readonly MINUTE = 151;
static readonly MONTH = 152;
static readonly MSCK = 153;
static readonly NAMESPACE = 154;
static readonly NAMESPACES = 155;
static readonly NATURAL = 156;
static readonly NO = 157;
static readonly NOT = 158;
static readonly NULL = 159;
static readonly NULLS = 160;
static readonly OF = 161;
static readonly ON = 162;
static readonly ONLY = 163;
static readonly OPTION = 164;
static readonly OPTIONS = 165;
static readonly OR = 166;
static readonly ORDER = 167;
static readonly OUT = 168;
static readonly OUTER = 169;
static readonly OUTPUTFORMAT = 170;
static readonly OVER = 171;
static readonly OVERLAPS = 172;
static readonly OVERLAY = 173;
static readonly OVERWRITE = 174;
static readonly PARTITION = 175;
static readonly PARTITIONED = 176;
static readonly PARTITIONS = 177;
static readonly PERCENTLIT = 178;
static readonly PIVOT = 179;
static readonly PLACING = 180;
static readonly POSITION = 181;
static readonly PRECEDING = 182;
static readonly PRIMARY = 183;
static readonly PRINCIPALS = 184;
static readonly PROPERTIES = 185;
static readonly PURGE = 186;
static readonly QUERY = 187;
static readonly RANGE = 188;
static readonly RECORDREADER = 189;
static readonly RECORDWRITER = 190;
static readonly RECOVER = 191;
static readonly REDUCE = 192;
static readonly REFERENCES = 193;
static readonly REFRESH = 194;
static readonly RENAME = 195;
static readonly REPAIR = 196;
static readonly REPLACE = 197;
static readonly RESET = 198;
static readonly RESPECT = 199;
static readonly RESTRICT = 200;
static readonly REVOKE = 201;
static readonly RIGHT = 202;
static readonly RLIKE = 203;
static readonly ROLE = 204;
static readonly ROLES = 205;
static readonly ROLLBACK = 206;
static readonly ROLLUP = 207;
static readonly ROW = 208;
static readonly ROWS = 209;
static readonly SECOND = 210;
static readonly SCHEMA = 211;
static readonly SELECT = 212;
static readonly SEMI = 213;
static readonly SEPARATED = 214;
static readonly SERDE = 215;
static readonly SERDEPROPERTIES = 216;
static readonly SESSION_USER = 217;
static readonly SET = 218;
static readonly SETMINUS = 219;
static readonly SETS = 220;
static readonly SHOW = 221;
static readonly SKEWED = 222;
static readonly SOME = 223;
static readonly SORT = 224;
static readonly SORTED = 225;
static readonly START = 226;
static readonly STATISTICS = 227;
static readonly STORED = 228;
static readonly STRATIFY = 229;
static readonly STRUCT = 230;
static readonly SUBSTR = 231;
static readonly SUBSTRING = 232;
static readonly SYNC = 233;
static readonly TABLE = 234;
static readonly TABLES = 235;
static readonly TABLESAMPLE = 236;
static readonly TBLPROPERTIES = 237;
static readonly TEMPORARY = 238;
static readonly TERMINATED = 239;
static readonly THEN = 240;
static readonly TIME = 241;
static readonly TO = 242;
static readonly TOUCH = 243;
static readonly TRAILING = 244;
static readonly TRANSACTION = 245;
static readonly TRANSACTIONS = 246;
static readonly TRANSFORM = 247;
static readonly TRIM = 248;
static readonly TRUE = 249;
static readonly TRUNCATE = 250;
static readonly TRY_CAST = 251;
static readonly TYPE = 252;
static readonly UNARCHIVE = 253;
static readonly UNBOUNDED = 254;
static readonly UNCACHE = 255;
static readonly UNION = 256;
static readonly UNIQUE = 257;
static readonly UNKNOWN = 258;
static readonly UNLOCK = 259;
static readonly UNSET = 260;
static readonly UPDATE = 261;
static readonly USE = 262;
static readonly USER = 263;
static readonly USING = 264;
static readonly VALUES = 265;
static readonly VIEW = 266;
static readonly VIEWS = 267;
static readonly WHEN = 268;
static readonly WHERE = 269;
static readonly WINDOW = 270;
static readonly WITH = 271;
static readonly YEAR = 272;
static readonly ZONE = 273;
static readonly EQ = 274;
static readonly NSEQ = 275;
static readonly NEQ = 276;
static readonly NEQJ = 277;
static readonly LT = 278;
static readonly LTE = 279;
static readonly GT = 280;
static readonly GTE = 281;
static readonly PLUS = 282;
static readonly MINUS = 283;
static readonly ASTERISK = 284;
static readonly SLASH = 285;
static readonly PERCENT = 286;
static readonly TILDE = 287;
static readonly AMPERSAND = 288;
static readonly PIPE = 289;
static readonly CONCAT_PIPE = 290;
static readonly HAT = 291;
static readonly STRING = 292;
static readonly BIGINT_LITERAL = 293;
static readonly SMALLINT_LITERAL = 294;
static readonly TINYINT_LITERAL = 295;
static readonly INTEGER_VALUE = 296;
static readonly EXPONENT_VALUE = 297;
static readonly DECIMAL_VALUE = 298;
static readonly FLOAT_LITERAL = 299;
static readonly DOUBLE_LITERAL = 300;
static readonly BIGDECIMAL_LITERAL = 301;
static readonly IDENTIFIER = 302;
static readonly BACKQUOTED_IDENTIFIER = 303;
static readonly DOUBLEQUOTED_IDENTIFIER = 304;
static readonly SIMPLE_COMMENT = 305;
static readonly BRACKETED_COMMENT = 306;
static readonly WS = 307;
static readonly UNRECOGNIZED = 308;
static readonly channelNames: string[];
static readonly modeNames: string[];
static readonly ruleNames: string[];
private static readonly _LITERAL_NAMES;
private static readonly _SYMBOLIC_NAMES;
static readonly VOCABULARY: Vocabulary;
get vocabulary(): Vocabulary;
doublequoted_identifier: boolean;
/**
* Verify whether current token is a valid decimal token (which contains dot).
* Returns true if the character that follows the token is not a digit or letter or underscore.
*
* For example:
* For char stream "2.3", "2." is not a valid decimal token, because it is followed by digit '3'.
* For char stream "2.3_", "2.3" is not a valid decimal token, because it is followed by '_'.
* For char stream "2.3W", "2.3" is not a valid decimal token, because it is followed by 'W'.
* For char stream "12.0D 34.E2+0.12 " 12.0D is a valid decimal token because it is followed
* by a space. 34.E2 is a valid decimal token because it is followed by symbol '+'
* which is not a digit or letter or underscore.
*/
isValidDecimal(): boolean;
/**
* This method will be called when we see '/*' and try to match it as a bracketed comment.
* If the next character is '+', it should be parsed as hint later, and we cannot match
* it as a bracketed comment.
*
* Returns true if the next character is '+'.
*/
isHint(): boolean;
constructor(input: CharStream);
get grammarFileName(): string;
get ruleNames(): string[];
get serializedATN(): string;
get channelNames(): string[];
get modeNames(): string[];
sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
private STRING_sempred;
private EXPONENT_VALUE_sempred;
private DECIMAL_VALUE_sempred;
private FLOAT_LITERAL_sempred;
private DOUBLE_LITERAL_sempred;
private BIGDECIMAL_LITERAL_sempred;
private BRACKETED_COMMENT_sempred;
private static readonly _serializedATNSegments;
private static readonly _serializedATNSegment0;
private static readonly _serializedATNSegment1;
private static readonly _serializedATNSegment2;
private static readonly _serializedATNSegment3;
private static readonly _serializedATNSegment4;
static readonly _serializedATN: string;
static __ATN: ATN;
static get _ATN(): ATN;
}
//# sourceMappingURL=SqlBaseLexer.d.ts.map