1/*-------------------------------------------------------------------------
4 * lexical token lookup for reserved words in postgres embedded SQL
7 * src/interfaces/ecpg/preproc/ecpg_keywords.c
9 *-------------------------------------------------------------------------
16/* ScanKeywordList lookup data for ECPG keywords */
17#include "ecpg_kwlist_d.h"
21/* Token codes for ECPG keywords */
22 #define PG_KEYWORD(kwname, value) value,
32 * ScanECPGKeywordLookup - see if a given word is a keyword
34 * Returns the token value of the keyword, or -1 if no match.
36 * Keywords are matched using the same case-folding rules as in the backend.
43 /* First check SQL symbols defined by the backend. */
48 /* Try ECPG-specific keywords. */
int ScanECPGKeywordLookup(const char *text)
static const uint16 ECPGScanKeywordTokens[]
const uint16 SQLScanKeywordTokens[]
PGDLLIMPORT const ScanKeywordList ScanKeywords
int ScanKeywordLookup(const char *str, const ScanKeywordList *keywords)