#include "sal/config.h"
#include <cstdarg>
#include <string.h>
#include <connectivity/internalnode.hxx>
#include "sqlbison.hxx"
#include <osl/diagnose.h>
#include <rtl/strbuf.hxx>
#include <connectivity/sqlparse.hxx>
#include <connectivity/sqlscan.hxx>
Go to the source code of this file.
|
#define | YY_EXIT 1 |
|
#define | INCLUDED_CONNECTIVITY_SOURCE_PARSE_SQLFLEX_L |
|
#define | SQLYYDEBUG 1 |
|
#define | YY_NO_UNISTD_H |
|
#define | SQL_NEW_NODE(text, token) SQLyylval.pParseNode = new OSQLInternalNode(text, token); |
|
#define | SQL_NEW_KEYWORD(token) SQLyylval.pParseNode = new OSQLInternalNode("", SQLNodeType::Keyword, (token)); return token; |
|
#define | SQL_NEW_INTNUM SQL_NEW_NODE(OUString(SQLyytext,strlen(SQLyytext),RTL_TEXTENCODING_UTF8), SQLNodeType::IntNum); return SQL_TOKEN_INTNUM; |
|
#define | SQL_NEW_APPROXNUM SQL_NEW_NODE(OUString(SQLyytext,strlen(SQLyytext),RTL_TEXTENCODING_UTF8), SQLNodeType::ApproxNum); return SQL_TOKEN_APPROXNUM; |
|
#define | SQL_NEW_DATE SQL_NEW_NODE(OUString(SQLyytext,strlen(SQLyytext),RTL_TEXTENCODING_UTF8), SQLNodeType::AccessDate); return SQL_TOKEN_ACCESS_DATE; |
|
#define | YY_INPUT(buf, result, max_size) |
|
#define | YY_FATAL_ERROR(msg) |
|
◆ INCLUDED_CONNECTIVITY_SOURCE_PARSE_SQLFLEX_L
#define INCLUDED_CONNECTIVITY_SOURCE_PARSE_SQLFLEX_L |
◆ SQL_NEW_APPROXNUM
#define SQL_NEW_APPROXNUM SQL_NEW_NODE(OUString(SQLyytext,strlen(SQLyytext),RTL_TEXTENCODING_UTF8), SQLNodeType::ApproxNum); return SQL_TOKEN_APPROXNUM; |
◆ SQL_NEW_DATE
#define SQL_NEW_DATE SQL_NEW_NODE(OUString(SQLyytext,strlen(SQLyytext),RTL_TEXTENCODING_UTF8), SQLNodeType::AccessDate); return SQL_TOKEN_ACCESS_DATE; |
◆ SQL_NEW_INTNUM
#define SQL_NEW_INTNUM SQL_NEW_NODE(OUString(SQLyytext,strlen(SQLyytext),RTL_TEXTENCODING_UTF8), SQLNodeType::IntNum); return SQL_TOKEN_INTNUM; |
◆ SQL_NEW_KEYWORD
#define SQL_NEW_KEYWORD |
( |
|
token | ) |
SQLyylval.pParseNode = new OSQLInternalNode("", SQLNodeType::Keyword, (token)); return token; |
◆ SQL_NEW_NODE
◆ SQLYYDEBUG
◆ YY_EXIT
◆ YY_FATAL_ERROR
#define YY_FATAL_ERROR |
( |
|
msg | ) |
|
Value:{ \
do_fatal_error(msg); \
}
Definition at line 104 of file sqlflex.l.
◆ YY_INPUT
#define YY_INPUT |
( |
|
buf, |
|
|
|
result, |
|
|
|
max_size |
|
) |
| |
Value:{ \
result = (c == EOF) ? YY_NULL : (buf[0] = c, 1);\
}
OSQLScanner * xxx_pGLOBAL_SQLSCAN
Definition at line 90 of file sqlflex.l.
◆ YY_NO_UNISTD_H
◆ checkeof()
◆ do_fatal_error()
static void do_fatal_error |
( |
const char * |
msg | ) |
|
|
static |
◆ gatherName()
sal_Int32 gatherName |
( |
const char * |
text | ) |
|
|
static |
◆ gatherNamePre()
sal_Int32 gatherNamePre |
( |
const char * |
text | ) |
|
|
static |
Read SQL Name literal for predicate check Valid Names or international keywords: As we have international keywords, we test first on them.
Definition at line 653 of file sqlflex.l.
References connectivity::OSQLScanner::GetCurrentPos(), connectivity::OSQLScanner::getInternationalTokenID(), connectivity::OSQLScanner::getStatement(), mapEnumToToken(), nLength, nPos, nToken, SQL_NEW_KEYWORD, SQL_NEW_NODE, text(), and xxx_pGLOBAL_SQLSCAN.
◆ gatherString()
sal_Int32 gatherString |
( |
int |
delim, |
|
|
sal_Int32 |
nTyp |
|
) |
| |
|
static |
◆ mapEnumToToken()
◆ yylex()
◆ IN_SQLyyerror
◆ xxx_pGLOBAL_SQLSCAN