PostgreSQL Source Code  git master
scanner.h File Reference
#include "common/keywords.h"
Include dependency graph for scanner.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

union  core_YYSTYPE
 
struct  core_yy_extra_type
 
struct  ScannerCallbackState
 

Macros

#define YYLTYPE   int
 

Typedefs

typedef union core_YYSTYPE core_YYSTYPE
 
typedef struct core_yy_extra_type core_yy_extra_type
 
typedef void * core_yyscan_t
 
typedef struct ScannerCallbackState ScannerCallbackState
 

Functions

core_yyscan_t scanner_init (const char *str, core_yy_extra_type *yyext, const ScanKeywordList *keywordlist, const uint16 *keyword_tokens)
 
void scanner_finish (core_yyscan_t yyscanner)
 
int core_yylex (core_YYSTYPE *yylval_param, YYLTYPE *yylloc_param, core_yyscan_t yyscanner)
 
int scanner_errposition (int location, core_yyscan_t yyscanner)
 
void setup_scanner_errposition_callback (ScannerCallbackState *scbstate, core_yyscan_t yyscanner, int location)
 
void cancel_scanner_errposition_callback (ScannerCallbackState *scbstate)
 
void scanner_yyerror (const char *message, core_yyscan_t yyscanner) pg_attribute_noreturn()
 

Variables

PGDLLIMPORT const uint16 ScanKeywordTokens []
 

Macro Definition Documentation

◆ YYLTYPE

#define YYLTYPE   int

Definition at line 44 of file scanner.h.

Typedef Documentation

◆ core_yy_extra_type

◆ core_yyscan_t

typedef void* core_yyscan_t

Definition at line 121 of file scanner.h.

◆ core_YYSTYPE

typedef union core_YYSTYPE core_YYSTYPE

◆ ScannerCallbackState

Function Documentation

◆ cancel_scanner_errposition_callback()

void cancel_scanner_errposition_callback ( ScannerCallbackState scbstate)

Referenced by str_udeescape().

◆ core_yylex()

int core_yylex ( core_YYSTYPE yylval_param,
YYLTYPE yylloc_param,
core_yyscan_t  yyscanner 
)

◆ scanner_errposition()

int scanner_errposition ( int  location,
core_yyscan_t  yyscanner 
)

Referenced by str_udeescape().

◆ scanner_finish()

void scanner_finish ( core_yyscan_t  yyscanner)

◆ scanner_init()

core_yyscan_t scanner_init ( const char *  str,
core_yy_extra_type yyext,
const ScanKeywordList keywordlist,
const uint16 keyword_tokens 
)

◆ scanner_yyerror()

void scanner_yyerror ( const char *  message,
core_yyscan_t  yyscanner 
)

Referenced by base_yylex().

◆ setup_scanner_errposition_callback()

void setup_scanner_errposition_callback ( ScannerCallbackState scbstate,
core_yyscan_t  yyscanner,
int  location 
)

Referenced by str_udeescape().

Variable Documentation

◆ ScanKeywordTokens

PGDLLIMPORT const uint16 ScanKeywordTokens[]
extern