1 /*-------------------------------------------------------------------------
4 * lexical token lookup for reserved words in postgres SQL
7 * Portions Copyright (c) 2003-2008, PgPool Global Development Group
8 * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * $PostgreSQL: pgsql/src/include/parser/keywords.h,v 1.20 2004/12/31 22:03:38 pgsql Exp $
13 *-------------------------------------------------------------------------
18 /* Keyword categories --- should match lists in gram.y */
19 #define UNRESERVED_KEYWORD 0
20 #define COL_NAME_KEYWORD 1
21 #define TYPE_FUNC_NAME_KEYWORD 2
22 #define RESERVED_KEYWORD 3
25 typedef struct ScanKeyword
27 const char *name; /* in lower case */
28 short value; /* grammar's token code */
29 short category; /* see codes above */
32 extern const ScanKeyword *ScanKeywordLookup(const char *text);
34 #endif /* KEYWORDS_H */