parser.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*-------------------------------------------------------------------------
  2. *
  3. * parser.h
  4. * Definitions for the "raw" parser (flex and bison phases only)
  5. *
  6. * This is the external API for the raw lexing/parsing functions.
  7. *
  8. * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
  9. * Portions Copyright (c) 1994, Regents of the University of California
  10. *
  11. * src/include/parser/parser.h
  12. *
  13. *-------------------------------------------------------------------------
  14. */
  15. #ifndef PARSER_H
  16. #define PARSER_H
  17. #include "nodes/parsenodes.h"
  18. typedef enum
  19. {
  20. BACKSLASH_QUOTE_OFF,
  21. BACKSLASH_QUOTE_ON,
  22. BACKSLASH_QUOTE_SAFE_ENCODING
  23. } BackslashQuoteType;
  24. /* GUC variables in scan.l (every one of these is a bad idea :-() */
  25. extern int backslash_quote;
  26. extern bool escape_string_warning;
  27. extern PGDLLIMPORT bool standard_conforming_strings;
  28. /* Primary entry point for the raw parsing functions */
  29. extern List *raw_parser(const char *str);
  30. /* Utility functions exported by gram.y (perhaps these should be elsewhere) */
  31. extern List *SystemFuncName(char *name);
  32. extern TypeName *SystemTypeName(char *name);
  33. #endif /* PARSER_H */