1997-11-25 23:07:18 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* parser.h
|
2009-07-12 19:12:34 +02:00
|
|
|
* Definitions for the "raw" parser (flex and bison phases only)
|
1997-11-25 23:07:18 +01:00
|
|
|
*
|
2009-07-12 19:12:34 +02:00
|
|
|
* This is the external API for the raw lexing/parsing functions.
|
1997-11-25 23:07:18 +01:00
|
|
|
*
|
2009-01-01 18:24:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
2000-01-26 06:58:53 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
1997-11-25 23:07:18 +01:00
|
|
|
*
|
2009-07-13 02:42:18 +02:00
|
|
|
* $PostgreSQL: pgsql/src/include/parser/parser.h,v 1.27 2009/07/13 00:42:17 tgl Exp $
|
1997-11-25 23:07:18 +01:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PARSER_H
|
|
|
|
#define PARSER_H
|
|
|
|
|
2009-07-12 19:12:34 +02:00
|
|
|
#include "nodes/parsenodes.h"
|
2008-05-12 02:00:54 +02:00
|
|
|
|
2009-07-12 19:12:34 +02:00
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
BACKSLASH_QUOTE_OFF,
|
|
|
|
BACKSLASH_QUOTE_ON,
|
|
|
|
BACKSLASH_QUOTE_SAFE_ENCODING
|
|
|
|
} BackslashQuoteType;
|
|
|
|
|
|
|
|
/* GUC variables in scan.l (every one of these is a bad idea :-() */
|
|
|
|
extern int backslash_quote;
|
|
|
|
extern bool escape_string_warning;
|
2009-07-13 02:42:18 +02:00
|
|
|
extern PGDLLIMPORT bool standard_conforming_strings;
|
2009-07-12 19:12:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
/* Primary entry points for the raw parsing functions */
|
2003-04-30 00:13:11 +02:00
|
|
|
extern List *raw_parser(const char *str);
|
2001-10-28 07:26:15 +01:00
|
|
|
|
2009-04-19 23:50:09 +02:00
|
|
|
extern char *pg_parse_string_token(const char *token);
|
|
|
|
|
2009-07-12 19:12:34 +02:00
|
|
|
/* Utility functions exported by gram.y (perhaps these should be elsewhere) */
|
|
|
|
extern List *SystemFuncName(char *name);
|
|
|
|
extern TypeName *SystemTypeName(char *name);
|
|
|
|
|
2001-11-05 18:46:40 +01:00
|
|
|
#endif /* PARSER_H */
|