PostgreSQL Source Code  git master
keywords.c
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * keywords.c
4  * PostgreSQL's list of SQL keywords
5  *
6  *
7  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  *
11  * IDENTIFICATION
12  * src/common/keywords.c
13  *
14  *-------------------------------------------------------------------------
15  */
16 #include "c.h"
17 
18 #include "common/keywords.h"
19 
20 
21 /* ScanKeywordList lookup data for SQL keywords */
22 
23 #include "kwlist_d.h"
24 
25 /* Keyword categories for SQL keywords */
26 
27 #define PG_KEYWORD(kwname, value, category, collabel) category,
28 
29 const uint8 ScanKeywordCategories[SCANKEYWORDS_NUM_KEYWORDS] = {
30 #include "parser/kwlist.h"
31 };
32 
33 #undef PG_KEYWORD
34 
35 /* Keyword can-be-bare-label flags for SQL keywords */
36 
37 #define PG_KEYWORD(kwname, value, category, collabel) collabel,
38 
39 #define BARE_LABEL true
40 #define AS_LABEL false
41 
42 const bool ScanKeywordBareLabel[SCANKEYWORDS_NUM_KEYWORDS] = {
43 #include "parser/kwlist.h"
44 };
45 
46 #undef PG_KEYWORD
47 #undef BARE_LABEL
48 #undef AS_LABEL
unsigned char uint8
Definition: c.h:507
const uint8 ScanKeywordCategories[SCANKEYWORDS_NUM_KEYWORDS]
Definition: keywords.c:29
const bool ScanKeywordBareLabel[SCANKEYWORDS_NUM_KEYWORDS]
Definition: keywords.c:42