Skip to content

Commit

Permalink
feat: pgsql: upgrade keywords to without '_P' in lexer and parser file
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoge committed Nov 7, 2023
1 parent 86248c9 commit 2132850
Show file tree
Hide file tree
Showing 8 changed files with 4,314 additions and 4,274 deletions.
184 changes: 95 additions & 89 deletions src/grammar/pgsql/PostgreSQLLexer.g4

Large diffs are not rendered by default.

855 changes: 446 additions & 409 deletions src/grammar/pgsql/PostgreSQLParser.g4

Large diffs are not rendered by default.

264 changes: 132 additions & 132 deletions src/lib/pgsql/PostgreSQLLexer.interp

Large diffs are not rendered by default.

132 changes: 66 additions & 66 deletions src/lib/pgsql/PostgreSQLLexer.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -57,25 +57,25 @@ KW_DISTINCT=56
KW_DO=57
KW_ELSE=58
KW_EXCEPT=59
KW_FALSE_P=60
KW_FALSE=60
KW_FETCH=61
KW_FOR=62
KW_FOREIGN=63
KW_FROM=64
KW_GRANT=65
KW_GROUP_P=66
KW_GROUP=66
KW_HAVING=67
KW_IN_P=68
KW_IN=68
KW_INITIALLY=69
KW_INTERSECT=70
KW_INTO=71
KW_LATERAL_P=72
KW_LATERAL=72
KW_LEADING=73
KW_LIMIT=74
KW_LOCALTIME=75
KW_LOCALTIMESTAMP=76
KW_NOT=77
KW_NULL_P=78
KW_NULL=78
KW_OFFSET=79
KW_ON=80
KW_ONLY=81
Expand All @@ -93,7 +93,7 @@ KW_TABLE=92
KW_THEN=93
KW_TO=94
KW_TRAILING=95
KW_TRUE_P=96
KW_TRUE=96
KW_UNION=97
KW_UNIQUE=98
KW_USER=99
Expand All @@ -112,25 +112,25 @@ KW_CURRENT_SCHEMA=111
KW_FREEZE=112
KW_FULL=113
KW_ILIKE=114
KW_INNER_P=115
KW_INNER=115
KW_IS=116
KW_ISNULL=117
KW_JOIN=118
KW_LEFT=119
KW_LIKE=120
KW_NATURAL=121
KW_NOTNULL=122
KW_OUTER_P=123
KW_OUTER=123
KW_OVER=124
KW_OVERLAPS=125
KW_RIGHT=126
KW_SIMILAR=127
KW_VERBOSE=128
KW_ABORT_P=129
KW_ABSOLUTE_P=130
KW_ABORT=129
KW_ABSOLUTE=130
KW_ACCESS=131
KW_ACTION=132
KW_ADD_P=133
KW_ADD=133
KW_ADMIN=134
KW_AFTER=135
KW_AGGREGATE=136
Expand All @@ -143,7 +143,7 @@ KW_AT=142
KW_ATTRIBUTE=143
KW_BACKWARD=144
KW_BEFORE=145
KW_BEGIN_P=146
KW_BEGIN=146
KW_BY=147
KW_CACHE=148
KW_CALLED=149
Expand All @@ -163,37 +163,37 @@ KW_COMMITTED=162
KW_CONFIGURATION=163
KW_CONNECTION=164
KW_CONSTRAINTS=165
KW_CONTENT_P=166
KW_CONTINUE_P=167
KW_CONVERSION_P=168
KW_CONTENT=166
KW_CONTINUE=167
KW_CONVERSION=168
KW_COPY=169
KW_COST=170
KW_CSV=171
KW_CURSOR=172
KW_CYCLE=173
KW_DATA_P=174
KW_DATA=174
KW_DATABASE=175
KW_DAY_P=176
KW_DAY=176
KW_DEALLOCATE=177
KW_DECLARE=178
KW_DEFAULTS=179
KW_DEFERRED=180
KW_DEFINER=181
KW_DELETE_P=182
KW_DELETE=182
KW_DELIMITER=183
KW_DELIMITERS=184
KW_DICTIONARY=185
KW_DISABLE_P=186
KW_DISABLE=186
KW_DISCARD=187
KW_DOCUMENT_P=188
KW_DOMAIN_P=189
KW_DOUBLE_P=190
KW_DOCUMENT=188
KW_DOMAIN=189
KW_DOUBLE=190
KW_DROP=191
KW_EACH=192
KW_ENABLE_P=193
KW_ENABLE=193
KW_ENCODING=194
KW_ENCRYPTED=195
KW_ENUM_P=196
KW_ENUM=196
KW_ESCAPE=197
KW_EVENT=198
KW_EXCLUDE=199
Expand All @@ -204,7 +204,7 @@ KW_EXPLAIN=203
KW_EXTENSION=204
KW_EXTERNAL=205
KW_FAMILY=206
KW_FIRST_P=207
KW_FIRST=207
KW_FOLLOWING=208
KW_FORCE=209
KW_FORWARD=210
Expand All @@ -213,14 +213,14 @@ KW_FUNCTIONS=212
KW_GLOBAL=213
KW_GRANTED=214
KW_HANDLER=215
KW_HEADER_P=216
KW_HEADER=216
KW_HOLD=217
KW_HOUR_P=218
KW_IDENTITY_P=219
KW_IF_P=220
KW_HOUR=218
KW_IDENTITY=219
KW_IF=220
KW_IMMEDIATE=221
KW_IMMUTABLE=222
KW_IMPLICIT_P=223
KW_IMPLICIT=223
KW_INCLUDING=224
KW_INCREMENT=225
KW_INDEX=226
Expand All @@ -236,7 +236,7 @@ KW_NOCREATEROLE=235
KW_CREATEUSER=236
KW_NOCREATEUSER=237
KW_INHERITS=238
KW_INLINE_P=239
KW_INLINE=239
KW_INSENSITIVE=240
KW_INSERT=241
KW_INSTEAD=242
Expand All @@ -245,33 +245,33 @@ KW_ISOLATION=244
KW_KEY=245
KW_LABEL=246
KW_LANGUAGE=247
KW_LARGE_P=248
KW_LAST_P=249
KW_LARGE=248
KW_LAST=249
KW_LEAKPROOF=250
KW_LEVEL=251
KW_LISTEN=252
KW_LOAD=253
KW_LOCAL=254
KW_LOCATION=255
KW_LOCK_P=256
KW_LOCK=256
KW_MAPPING=257
KW_MATCH=258
KW_MATERIALIZED=259
KW_MAXVALUE=260
KW_MINUTE_P=261
KW_MINUTE=261
KW_MINVALUE=262
KW_MODE=263
KW_MONTH_P=264
KW_MONTH=264
KW_MOVE=265
KW_NAME_P=266
KW_NAME=266
KW_NAMES=267
KW_NEXT=268
KW_NO=269
KW_NOTHING=270
KW_NOTIFY=271
KW_NOWAIT=272
KW_NULLS_P=273
KW_OBJECT_P=274
KW_NULLS=273
KW_OBJECT=274
KW_OF=275
KW_OFF=276
KW_OIDS=277
Expand Down Expand Up @@ -304,7 +304,7 @@ KW_RECURSIVE=303
KW_REF=304
KW_REFRESH=305
KW_REINDEX=306
KW_RELATIVE_P=307
KW_RELATIVE=307
KW_RELEASE=308
KW_RENAME=309
KW_REPEATABLE=310
Expand All @@ -323,7 +323,7 @@ KW_SAVEPOINT=322
KW_SCHEMA=323
KW_SCROLL=324
KW_SEARCH=325
KW_SECOND_P=326
KW_SECOND=326
KW_SECURITY=327
KW_SEQUENCE=328
KW_SEQUENCES=329
Expand All @@ -336,29 +336,29 @@ KW_SHOW=335
KW_SIMPLE=336
KW_SNAPSHOT=337
KW_STABLE=338
KW_STANDALONE_P=339
KW_STANDALONE=339
KW_START=340
KW_STATEMENT=341
KW_STATISTICS=342
KW_STDIN=343
KW_STDOUT=344
KW_STORAGE=345
KW_STRICT_P=346
KW_STRIP_P=347
KW_STRICT=346
KW_STRIP=347
KW_SYSID=348
KW_SYSTEM_P=349
KW_SYSTEM=349
KW_TABLES=350
KW_TABLESPACE=351
KW_TEMP=352
KW_TEMPLATE=353
KW_TEMPORARY=354
KW_TEXT_P=355
KW_TEXT=355
KW_TRANSACTION=356
KW_TRIGGER=357
KW_TRUNCATE=358
KW_TRUSTED=359
KW_TYPE_P=360
KW_TYPES_P=361
KW_TYPE=360
KW_TYPES=361
KW_UNBOUNDED=362
KW_UNCOMMITTED=363
KW_UNENCRYPTED=364
Expand All @@ -372,33 +372,33 @@ KW_VALID=371
KW_VALIDATE=372
KW_VALIDATOR=373
KW_VARYING=374
KW_VERSION_P=375
KW_VERSION=375
KW_VIEW=376
KW_VOLATILE=377
KW_WHITESPACE_P=378
KW_WHITESPACE=378
KW_WITHOUT=379
KW_WORK=380
KW_WRAPPER=381
KW_WRITE=382
KW_XML_P=383
KW_YEAR_P=384
KW_YES_P=385
KW_XML=383
KW_YEAR=384
KW_YES=385
KW_ZONE=386
KW_BETWEEN=387
KW_BIGINT=388
KW_BIT=389
KW_BOOLEAN_P=390
KW_CHAR_P=391
KW_BOOLEAN=390
KW_CHAR=391
KW_CHARACTER=392
KW_COALESCE=393
KW_DEC=394
KW_DECIMAL_P=395
KW_DECIMAL=395
KW_EXISTS=396
KW_EXTRACT=397
KW_FLOAT_P=398
KW_FLOAT=398
KW_GREATEST=399
KW_INOUT=400
KW_INT_P=401
KW_INT=401
KW_INTEGER=402
KW_INTERVAL=403
KW_LEAST=404
Expand Down Expand Up @@ -431,7 +431,7 @@ KW_XMLPI=430
KW_XMLROOT=431
KW_XMLSERIALIZE=432
KW_CALL=433
KW_CURRENT_P=434
KW_CURRENT=434
KW_ATTACH=435
KW_DETACH=436
KW_EXPRESSION=437
Expand All @@ -441,28 +441,28 @@ KW_STORED=440
KW_INCLUDE=441
KW_ROUTINE=442
KW_TRANSFORM=443
KW_IMPORT_P=444
KW_IMPORT=444
KW_POLICY=445
KW_METHOD=446
KW_REFERENCING=447
KW_NEW=448
KW_OLD=449
KW_VALUE_P=450
KW_VALUE=450
KW_SUBSCRIPTION=451
KW_PUBLICATION=452
KW_OUT_P=453
KW_END_P=454
KW_OUT=453
KW_END=454
KW_ROUTINES=455
KW_SCHEMAS=456
KW_PROCEDURES=457
KW_INPUT_P=458
KW_INPUT=458
KW_SUPPORT=459
KW_PARALLEL=460
KW_SQL_P=461
KW_SQL=461
KW_DEPENDS=462
KW_OVERRIDING=463
KW_CONFLICT=464
KW_SKIP_P=465
KW_SKIP=465
KW_LOCKED=466
KW_TIES=467
KW_ROLLUP=468
Expand Down
Loading

0 comments on commit 2132850

Please sign in to comment.