-
Notifications
You must be signed in to change notification settings - Fork 2
/
GoogleSQLLexer.tokens
674 lines (674 loc) · 10.3 KB
/
GoogleSQLLexer.tokens
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
EQUAL_OPERATOR=1
NOT_EQUAL_OPERATOR=2
NOT_EQUAL2_OPERATOR=3
LT_OPERATOR=4
LE_OPERATOR=5
GT_OPERATOR=6
GE_OPERATOR=7
KL_OPERATOR=8
KR_OPERATOR=9
PLUS_OPERATOR=10
MINUS_OPERATOR=11
MULTIPLY_OPERATOR=12
DIVIDE_OPERATOR=13
BITWISE_NOT_OPERATOR=14
COMMA_SYMBOL=15
DOT_SYMBOL=16
LC_BRACKET_SYMBOL=17
RC_BRACKET_SYMBOL=18
LR_BRACKET_SYMBOL=19
RR_BRACKET_SYMBOL=20
LS_BRACKET_SYMBOL=21
RS_BRACKET_SYMBOL=22
STROKE_SYMBOL=23
COLON_SYMBOL=24
SEMI_SYMBOL=25
SINGLE_QUOTE_SYMBOL=26
SINGLE_QUOTE_3_SYMBOL=27
DOUBLE_QUOTE_SYMBOL=28
DOUBLE_QUOTE_3_SYMBOL=29
BACKQUOTE_SYMBOL=30
QUESTION_SYMBOL=31
AT_SYMBOL=32
ATAT_SYMBOL=33
EQUAL_GT_BRACKET_SYMBOL=34
SUB_GT_BRACKET_SYMBOL=35
PLUS_EQUAL_SYMBOL=36
SUB_EQUAL_SYMBOL=37
PIPE_SYMBOL=38
CIRCUMFLEX_SYMBOL=39
BIT_AND_SYMBOL=40
BOOL_OR_SYMBOL=41
STRING_LITERAL=42
BYTES_LITERAL=43
UNCLOSED_STRING_LITERAL=44
UNCLOSED_TRIPLE_QUOTED_STRING_LITERAL=45
UNCLOSED_RAW_STRING_LITERAL=46
UNCLOSED_TRIPLE_QUOTED_RAW_STRING_LITERAL=47
UNCLOSED_BYTES_LITERAL=48
UNCLOSED_TRIPLE_QUOTED_BYTES_LITERAL=49
UNCLOSED_RAW_BYTES_LITERAL=50
UNCLOSED_TRIPLE_QUOTED_RAW_BYTES_LITERAL=51
FLOATING_POINT_LITERAL=52
INTEGER_LITERAL=53
ARRAY_SYMBOL=54
ALL_SYMBOL=55
AS_SYMBOL=56
ASC_SYMBOL=57
BY_SYMBOL=58
CROSS_SYMBOL=59
JOIN_SYMBOL=60
DELTA_SYMBOL=61
DESC_SYMBOL=62
DIFFERENTIAL_PRIVACY_SYMBOL=63
DISTINCT_SYMBOL=64
EPSILON_SYMBOL=65
EXCEPT_SYMBOL=66
EXCLUDE_SYMBOL=67
FOR_SYMBOL=68
FROM_SYMBOL=69
FULL_SYMBOL=70
IN_SYMBOL=71
INCLUDE_SYMBOL=72
INNER_SYMBOL=73
INTERSECT_SYMBOL=74
LEFT_SYMBOL=75
LIMIT_SYMBOL=76
MAX_GROUPS_CONTRIBUTED_SYMBOL=77
NULL_SYMBOL=78
NULLS_SYMBOL=79
OF_SYMBOL=80
OFFSET_SYMBOL=81
ON_SYMBOL=82
OPTIONS_SYMBOL=83
ORDER_SYMBOL=84
OUTER_SYMBOL=85
PERCENT_SYMBOL=86
PIVOT_SYMBOL=87
PRIVACY_UNIT_COLUMN_SYMBOL=88
RIGHT_SYMBOL=89
RECURSIVE_SYMBOL=90
REPLACE_SYMBOL=91
UNPIVOT_SYMBOL=92
SELECT_SYMBOL=93
STRUCT_SYMBOL=94
SYSTEM_SYMBOL=95
SYSTEM_TIME_SYMBOL=96
TABLESAMPLE_SYMBOL=97
UNION_SYMBOL=98
UNNEST_SYMBOL=99
USING_SYMBOL=100
VALUE_SYMBOL=101
WITH_SYMBOL=102
TRUE_SYMBOL=103
FALSE_SYMBOL=104
NUMERIC_SYMBOL=105
DECIMAL_SYMBOL=106
BIGNUMERIC_SYMBOL=107
BIGDECIMAL_SYMBOL=108
NOT_SYMBOL=109
AND_SYMBOL=110
OR_SYMBOL=111
JSON_SYMBOL=112
DATE_SYMBOL=113
TIME_SYMBOL=114
DATETIME_SYMBOL=115
TIMESTAMP_SYMBOL=116
RANGE_SYMBOL=117
INTERVAL_SYMBOL=118
SIMPLE_SYMBOL=119
ABORT_SYMBOL=120
ACCESS_SYMBOL=121
ACTION_SYMBOL=122
AGGREGATE_SYMBOL=123
ADD_SYMBOL=124
ALTER_SYMBOL=125
ALWAYS_SYMBOL=126
ANALYZE_SYMBOL=127
APPROX_SYMBOL=128
ARE_SYMBOL=129
ASSERT_SYMBOL=130
BATCH_SYMBOL=131
BEGIN_SYMBOL=132
BREAK_SYMBOL=133
CALL_SYMBOL=134
CASCADE_SYMBOL=135
CHECK_SYMBOL=136
CLAMPED_SYMBOL=137
CLONE_SYMBOL=138
COPY_SYMBOL=139
CLUSTER_SYMBOL=140
COLUMN_SYMBOL=141
COLUMNS_SYMBOL=142
COMMIT_SYMBOL=143
CONNECTION_SYMBOL=144
CONSTANT_SYMBOL=145
CONSTRAINT_SYMBOL=146
CONTINUE_SYMBOL=147
CORRESPONDING_SYMBOL=148
CYCLE_SYMBOL=149
DATA_SYMBOL=150
DATABASE_SYMBOL=151
DECLARE_SYMBOL=152
DEFINER_SYMBOL=153
DELETE_SYMBOL=154
DELETION_SYMBOL=155
DEPTH_SYMBOL=156
DESCRIBE_SYMBOL=157
DETERMINISTIC_SYMBOL=158
DO_SYMBOL=159
DROP_SYMBOL=160
ELSEIF_SYMBOL=161
ENFORCED_SYMBOL=162
ERROR_SYMBOL=163
EXCEPTION_SYMBOL=164
EXECUTE_SYMBOL=165
EXPLAIN_SYMBOL=166
EXPORT_SYMBOL=167
EXTEND_SYMBOL=168
EXTERNAL_SYMBOL=169
FILES_SYMBOL=170
FILTER_SYMBOL=171
FILL_SYMBOL=172
FIRST_SYMBOL=173
FOREIGN_SYMBOL=174
FORMAT_SYMBOL=175
FUNCTION_SYMBOL=176
GENERATED_SYMBOL=177
GRANT_SYMBOL=178
GROUP_ROWS_SYMBOL=179
HIDDEN_SYMBOL=180
IDENTITY_SYMBOL=181
IMMEDIATE_SYMBOL=182
IMMUTABLE_SYMBOL=183
IMPORT_SYMBOL=184
INCREMENT_SYMBOL=185
INDEX_SYMBOL=186
INOUT_SYMBOL=187
INPUT_SYMBOL=188
INSERT_SYMBOL=189
INVOKER_SYMBOL=190
ISOLATION_SYMBOL=191
ITERATE_SYMBOL=192
KEY_SYMBOL=193
LANGUAGE_SYMBOL=194
LAST_SYMBOL=195
LEAVE_SYMBOL=196
LEVEL_SYMBOL=197
LOAD_SYMBOL=198
LOOP_SYMBOL=199
MACRO_SYMBOL=200
MAP_SYMBOL=201
MATCH_SYMBOL=202
KW_MATCH_RECOGNIZE_NONRESERVED_SYMBOL=203
MATCHED_SYMBOL=204
MATERIALIZED_SYMBOL=205
MAX_SYMBOL=206
MAXVALUE_SYMBOL=207
MEASURES_SYMBOL=208
MESSAGE_SYMBOL=209
METADATA_SYMBOL=210
MIN_SYMBOL=211
MINVALUE_SYMBOL=212
MODEL_SYMBOL=213
MODULE_SYMBOL=214
ONLY_SYMBOL=215
OUT_SYMBOL=216
OUTPUT_SYMBOL=217
OVERWRITE_SYMBOL=218
PARTITIONS_SYMBOL=219
PATTERN_SYMBOL=220
POLICIES_SYMBOL=221
POLICY_SYMBOL=222
PRIMARY_SYMBOL=223
PRIVATE_SYMBOL=224
PRIVILEGE_SYMBOL=225
PRIVILEGES_SYMBOL=226
PROCEDURE_SYMBOL=227
PROJECT_SYMBOL=228
PUBLIC_SYMBOL=229
RAISE_SYMBOL=230
READ_SYMBOL=231
REFERENCES_SYMBOL=232
REMOTE_SYMBOL=233
REMOVE_SYMBOL=234
RENAME_SYMBOL=235
REPEAT_SYMBOL=236
REPEATABLE_SYMBOL=237
REPLACE_FIELDS_SYMBOL=238
REPLICA_SYMBOL=239
REPORT_SYMBOL=240
RESTRICT_SYMBOL=241
RESTRICTION_SYMBOL=242
RETURNS_SYMBOL=243
RETURN_SYMBOL=244
REVOKE_SYMBOL=245
ROLLBACK_SYMBOL=246
ROW_SYMBOL=247
RUN_SYMBOL=248
SAFE_CAST_SYMBOL=249
SCHEMA_SYMBOL=250
SEARCH_SYMBOL=251
SECURITY_SYMBOL=252
SEQUENCE_SYMBOL=253
SETS_SYMBOL=254
SET_SYMBOL=255
SHOW_SYMBOL=256
SNAPSHOT_SYMBOL=257
SOURCE_SYMBOL=258
SQL_SYMBOL=259
STABLE_SYMBOL=260
START_SYMBOL=261
STATIC_DESCRIBE_SYMBOL=262
STORED_SYMBOL=263
STORING_SYMBOL=264
STRICT_SYMBOL=265
TABLE_SYMBOL=266
TABLES_SYMBOL=267
TARGET_SYMBOL=268
TEMP_SYMBOL=269
TEMPORARY_SYMBOL=270
TRANSACTION_SYMBOL=271
TRANSFORM_SYMBOL=272
TRUNCATE_SYMBOL=273
TYPE_SYMBOL=274
UNDROP_SYMBOL=275
UNIQUE_SYMBOL=276
UNKNOWN_SYMBOL=277
UNTIL_SYMBOL=278
UPDATE_SYMBOL=279
VALUES_SYMBOL=280
VECTOR_SYMBOL=281
VIEW_SYMBOL=282
VIEWS_SYMBOL=283
VOLATILE_SYMBOL=284
WEIGHT_SYMBOL=285
WHILE_SYMBOL=286
WRITE_SYMBOL=287
ZONE_SYMBOL=288
DESCRIPTOR_SYMBOL=289
INTERLEAVE_SYMBOL=290
NULL_FILTERED_SYMBOL=291
PARENT_SYMBOL=292
NEW_SYMBOL=293
END_SYMBOL=294
CASE_SYMBOL=295
WHEN_SYMBOL=296
THEN_SYMBOL=297
ELSE_SYMBOL=298
CAST_SYMBOL=299
EXTRACT_SYMBOL=300
COLLATE_SYMBOL=301
IF_SYMBOL=302
GROUPING_SYMBOL=303
HAVING_SYMBOL=304
GROUP_SYMBOL=305
ROLLUP_SYMBOL=306
CUBE_SYMBOL=307
HASH_SYMBOL=308
PROTO_SYMBOL=309
PARTITION_SYMBOL=310
IGNORE_SYMBOL=311
RESPECT_SYMBOL=312
ROWS_SYMBOL=313
OVER_SYMBOL=314
BETWEEN_SYMBOL=315
UNBOUNDED_SYMBOL=316
CURRENT_SYMBOL=317
PRECEDING_SYMBOL=318
FOLLOWING_SYMBOL=319
NATURAL_SYMBOL=320
QUALIFY_SYMBOL=321
DEFAULT_SYMBOL=322
SLASH_SYMBOL=323
MATCH_RECOGNIZE_SYMBOL=324
DEFINE_SYMBOL=325
LOOKUP_SYMBOL=326
WHERE_SYMBOL=327
WINDOW_SYMBOL=328
TO_SYMBOL=329
EXISTS_SYMBOL=330
ANY_SYMBOL=331
SOME_SYMBOL=332
LIKE_SYMBOL=333
IS_SYMBOL=334
NO_SYMBOL=335
INTO_SYMBOL=336
ASSERT_ROWS_MODIFIED_SYMBOL=337
CONFLICT_SYMBOL=338
NOTHING_SYMBOL=339
MERGE_SYMBOL=340
CREATE_SYMBOL=341
IDENTIFIER=342
UNCLOSED_ESCAPED_IDENTIFIER=343
WHITESPACE=344
COMMENT=345
'='=1
'!='=2
'<>'=3
'<'=4
'<='=5
'>'=6
'>='=7
'<<'=8
'>>'=9
'+'=10
'-'=11
'*'=12
'/'=13
'~'=14
','=15
'.'=16
'{'=17
'}'=18
'('=19
')'=20
'['=21
']'=22
'|'=23
':'=24
';'=25
'\''=26
'\'\'\''=27
'"'=28
'"""'=29
'`'=30
'?'=31
'@'=32
'@@'=33
'=>'=34
'->'=35
'+='=36
'-='=37
'|>'=38
'^'=39
'&'=40
'||'=41
'ARRAY'=54
'ALL'=55
'AS'=56
'ASC'=57
'BY'=58
'CROSS'=59
'JOIN'=60
'DELTA'=61
'DESC'=62
'DIFFERENTIAL_PRIVACY'=63
'DISTINCT'=64
'EPSILON'=65
'EXCEPT'=66
'EXCLUDE'=67
'FOR'=68
'FROM'=69
'FULL'=70
'IN'=71
'INCLUDE'=72
'INNER'=73
'INTERSECT'=74
'LEFT'=75
'LIMIT'=76
'MAX_GROUPS_CONTRIBUTED'=77
'NULL'=78
'NULLS'=79
'OF'=80
'OFFSET'=81
'ON'=82
'OPTIONS'=83
'ORDER'=84
'OUTER'=85
'PERCENT'=86
'PIVOT'=87
'PRIVACY_UNIT_COLUMN'=88
'RIGHT'=89
'RECURSIVE'=90
'REPLACE'=91
'UNPIVOT'=92
'SELECT'=93
'STRUCT'=94
'SYSTEM'=95
'SYSTEM_TIME'=96
'TABLESAMPLE'=97
'UNION'=98
'UNNEST'=99
'USING'=100
'VALUE'=101
'WITH'=102
'TRUE'=103
'FALSE'=104
'NUMERIC'=105
'DECIMAL'=106
'BIGNUMERIC'=107
'BIGDECIMAL'=108
'NOT'=109
'AND'=110
'OR'=111
'JSON'=112
'DATE'=113
'TIME'=114
'DATETIME'=115
'TIMESTAMP'=116
'RANGE'=117
'INTERVAL'=118
'SIMPLE'=119
'ABORT'=120
'ACCESS'=121
'ACTION'=122
'AGGREGATE'=123
'ADD'=124
'ALTER'=125
'ALWAYS'=126
'ANALYZE'=127
'APPROX'=128
'ARE'=129
'ASSERT'=130
'BATCH'=131
'BEGIN'=132
'BREAK'=133
'CALL'=134
'CASCADE'=135
'CHECK'=136
'CLAMPED'=137
'CLONE'=138
'COPY'=139
'CLUSTER'=140
'COLUMN'=141
'COLUMNS'=142
'COMMIT'=143
'CONNECTION'=144
'CONSTANT'=145
'CONSTRAINT'=146
'CONTINUE'=147
'CORRESPONDING'=148
'CYCLE'=149
'DATA'=150
'DATABASE'=151
'DECLARE'=152
'DEFINER'=153
'DELETE'=154
'DELETION'=155
'DEPTH'=156
'DESCRIBE'=157
'DETERMINISTIC'=158
'DO'=159
'DROP'=160
'ELSEIF'=161
'ENFORCED'=162
'ERROR'=163
'EXCEPTION'=164
'EXECUTE'=165
'EXPLAIN'=166
'EXPORT'=167
'EXTEND'=168
'EXTERNAL'=169
'FILES'=170
'FILTER'=171
'FILL'=172
'FIRST'=173
'FOREIGN'=174
'FORMAT'=175
'FUNCTION'=176
'GENERATED'=177
'GRANT'=178
'GROUP_ROWS'=179
'HIDDEN'=180
'IDENTITY'=181
'IMMEDIATE'=182
'IMMUTABLE'=183
'IMPORT'=184
'INCREMENT'=185
'INDEX'=186
'INOUT'=187
'INPUT'=188
'INSERT'=189
'INVOKER'=190
'ISOLATION'=191
'ITERATE'=192
'KEY'=193
'LANGUAGE'=194
'LAST'=195
'LEAVE'=196
'LEVEL'=197
'LOAD'=198
'LOOP'=199
'MACRO'=200
'MAP'=201
'MATCH'=202
'KW_MATCH_RECOGNIZE_NONRESERVED'=203
'MATCHED'=204
'MATERIALIZED'=205
'MAX'=206
'MAXVALUE'=207
'MEASURES'=208
'MESSAGE'=209
'METADATA'=210
'MIN'=211
'MINVALUE'=212
'MODEL'=213
'MODULE'=214
'ONLY'=215
'OUT'=216
'OUTPUT'=217
'OVERWRITE'=218
'PARTITIONS'=219
'PATTERN'=220
'POLICIES'=221
'POLICY'=222
'PRIMARY'=223
'PRIVATE'=224
'PRIVILEGE'=225
'PRIVILEGES'=226
'PROCEDURE'=227
'PROJECT'=228
'PUBLIC'=229
'RAISE'=230
'READ'=231
'REFERENCES'=232
'REMOTE'=233
'REMOVE'=234
'RENAME'=235
'REPEAT'=236
'REPEATABLE'=237
'REPLACE_FIELDS'=238
'REPLICA'=239
'REPORT'=240
'RESTRICT'=241
'RESTRICTION'=242
'RETURNS'=243
'RETURN'=244
'REVOKE'=245
'ROLLBACK'=246
'ROW'=247
'RUN'=248
'SAFE_CAST'=249
'SCHEMA'=250
'SEARCH'=251
'SECURITY'=252
'SEQUENCE'=253
'SETS'=254
'SET'=255
'SHOW'=256
'SNAPSHOT'=257
'SOURCE'=258
'SQL'=259
'STABLE'=260
'START'=261
'STATIC_DESCRIBE'=262
'STORED'=263
'STORING'=264
'STRICT'=265
'TABLE'=266
'TABLES'=267
'TARGET'=268
'TEMP'=269
'TEMPORARY'=270
'TRANSACTION'=271
'TRANSFORM'=272
'TRUNCATE'=273
'TYPE'=274
'UNDROP'=275
'UNIQUE'=276
'UNKNOWN'=277
'UNTIL'=278
'UPDATE'=279
'VALUES'=280
'VECTOR'=281
'VIEW'=282
'VIEWS'=283
'VOLATILE'=284
'WEIGHT'=285
'WHILE'=286
'WRITE'=287
'ZONE'=288
'DESCRIPTOR'=289
'INTERLEAVE'=290
'NULL_FILTERED'=291
'PARENT'=292
'NEW'=293
'END'=294
'CASE'=295
'WHEN'=296
'THEN'=297
'ELSE'=298
'CAST'=299
'EXTRACT'=300
'COLLATE'=301
'IF'=302
'GROUPING'=303
'HAVING'=304
'GROUP'=305
'ROLLUP'=306
'CUBE'=307
'HASH'=308
'PROTO'=309
'PARTITION'=310
'IGNORE'=311
'RESPECT'=312
'ROWS'=313
'OVER'=314
'BETWEEN'=315
'UNBOUNDED'=316
'CURRENT'=317
'PRECEDING'=318
'FOLLOWING'=319
'NATURAL'=320
'QUALIFY'=321
'DEFAULT'=322
'SLASH'=323
'MATCH_RECOGNIZE'=324
'DEFINE'=325
'LOOKUP'=326
'WHERE'=327
'WINDOW'=328
'TO'=329
'EXISTS'=330
'ANY'=331
'SOME'=332
'LIKE'=333
'IS'=334
'NO'=335
'INTO'=336
'ASSERT_ROWS_MODIFIED'=337
'CONFLICT'=338
'NOTHING'=339
'MERGE'=340
'CREATE'=341