1
/*-------------------------------------------------------------------------
4
* lexical token lookup for key words in PostgreSQL
7
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
8
* Portions Copyright (c) 1994, Regents of the University of California
12
*-------------------------------------------------------------------------
17
/* Keyword categories --- should match lists in gram.y */
18
#define UNRESERVED_KEYWORD 0
19
#define COL_NAME_KEYWORD 1
20
#define TYPE_FUNC_NAME_KEYWORD 2
21
#define RESERVED_KEYWORD 3
24
typedef struct ScanKeyword
26
const char *name; /* in lower case */
27
int16 value; /* grammar's token code */
28
int16 category; /* see codes above */
31
extern const ScanKeyword ScanKeywords[];
32
extern const ScanKeyword *LastScanKeyword;
34
extern const ScanKeyword *ScanKeywordLookup(const char *text);
36
#endif /* KEYWORDS_H */