PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "gramparse.h"
#include "mb/pg_wchar.h"
#include "parser/parser.h"
#include "parser/scansup.h"
Go to the source code of this file.
Functions | |
static bool | check_uescapechar (unsigned char escape) |
static char * | str_udeescape (const char *str, char escape, int position, core_yyscan_t yyscanner) |
List * | raw_parser (const char *str, RawParseMode mode) |
int | base_yylex (YYSTYPE *lvalp, YYLTYPE *llocp, core_yyscan_t yyscanner) |
static unsigned int | hexval (unsigned char c) |
static void | check_unicode_value (pg_wchar c) |
int base_yylex | ( | YYSTYPE * | lvalp, |
YYLTYPE * | llocp, | ||
core_yyscan_t | yyscanner | ||
) |
Definition at line 111 of file parser.c.
References Assert, check_uescapechar(), base_yy_extra_type::core_yy_extra, core_yylex(), base_yy_extra_type::have_lookahead, base_yy_extra_type::lookahead_end, base_yy_extra_type::lookahead_hold_char, base_yy_extra_type::lookahead_token, base_yy_extra_type::lookahead_yylloc, base_yy_extra_type::lookahead_yylval, next_token(), pg_yyget_extra, core_yy_extra_type::scanbuf, scanner_yyerror(), core_YYSTYPE::str, str_udeescape(), truncate_identifier(), and yyscanner.
Referenced by base_yylex_location().
|
static |
|
static |
Definition at line 342 of file parser.c.
References ereport, errcode(), errmsg(), ERROR, and is_valid_unicode_codepoint().
Referenced by str_udeescape().
|
static |
List* raw_parser | ( | const char * | str, |
RawParseMode | mode | ||
) |
Definition at line 42 of file parser.c.
References base_yyparse(), base_yy_extra_type::core_yy_extra, base_yy_extra_type::have_lookahead, base_yy_extra_type::lookahead_end, base_yy_extra_type::lookahead_token, base_yy_extra_type::lookahead_yylloc, mode, NIL, parser_init(), base_yy_extra_type::parsetree, RAW_PARSE_DEFAULT, RAW_PARSE_PLPGSQL_ASSIGN1, RAW_PARSE_PLPGSQL_ASSIGN2, RAW_PARSE_PLPGSQL_ASSIGN3, RAW_PARSE_PLPGSQL_EXPR, RAW_PARSE_TYPE_NAME, ScanKeywords, ScanKeywordTokens, scanner_finish(), scanner_init(), str, and yyscanner.
Referenced by _SPI_prepare_oneshot_plan(), _SPI_prepare_plan(), ATPostAlterTypeParse(), pg_parse_query(), and typeStringToTypeName().
|
static |
Definition at line 372 of file parser.c.
References cancel_scanner_errposition_callback(), check_unicode_value(), ereport, errcode(), errhint(), errmsg(), ERROR, hexval(), is_utf16_surrogate_first(), is_utf16_surrogate_second(), MAX_UNICODE_EQUIVALENT_STRING, palloc(), pg_unicode_to_server(), repalloc(), scanner_errposition(), setup_scanner_errposition_callback(), str, surrogate_pair_to_codepoint(), and yyscanner.
Referenced by base_yylex().