ddc
|
#include "yyQLexer.h"
#include "QueryCompiler.h"
#include "../CommonLib/ddcString.h"
#include <sstream>
#include <stddef.h>
#include <stdlib.h>
Classes | |
union | yyalloc |
Macros | |
#define | YYBISON 1 |
#define | YYBISON_VERSION "3.3.2" |
#define | YYSKELETON_NAME "yacc.c" |
#define | YYPURE 1 |
#define | YYPUSH 0 |
#define | YYPULL 1 |
#define | yyparse yyqparse |
#define | yylex yyqlex |
#define | yyerror yyqerror |
#define | yydebug yyqdebug |
#define | yynerrs yyqnerrs |
#define | YY_HEADER_EXPORT_START_CONDITIONS 1 /* export start conditions */ |
#define | yyqlex_ALREADY_DEFINED |
#define | NOINT INT_MIN |
#define | _qc ((CQueryCompiler*)_qcompiler) |
#define | _newFilter(class, ftype) new class ((ftype), _qc->m_FilterLB, _qc->m_FilterUB) |
#define | _newBFilter(ftype, field) new CQFBiblSort ((ftype), field, _qc->m_FilterLB, _qc->m_FilterUB) |
#define | _newCFilter(ftype, DefaultOffset) new CQFContextSort ((ftype), _qc->m_FilterField, _qc->m_FilterMatchId, (_qc->m_FilterOffset==NOINT ? (DefaultOffset) : _qc->m_FilterOffset), _qc->m_FilterLB, _qc->m_FilterUB) |
#define | YYERROR_VERBOSE 1 |
#define | yyqerror(qc, msg) qc->yybarf(msg) |
#define | YY_NULLPTR 0 |
#define | YYERROR_VERBOSE 1 |
#define | YY_YYQ_YYQPARSER_H_INCLUDED |
#define | YYSIZE_T size_t |
#define | YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define | YY_(Msgid) Msgid |
#define | YY_ATTRIBUTE(Spec) /* empty */ |
#define | YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
#define | YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
#define | YYUSE(E) ((void) (E)) |
#define | YY_INITIAL_VALUE(Value) Value |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
#define | YY_IGNORE_MAYBE_UNINITIALIZED_END |
#define | YYSTACK_ALLOC YYMALLOC |
#define | YYSTACK_FREE YYFREE |
#define | YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
#define | EXIT_SUCCESS 0 |
#define | YYMALLOC malloc |
#define | YYFREE free |
#define | YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define | YYSTACK_BYTES(N) |
#define | YYCOPY_NEEDED 1 |
#define | YYSTACK_RELOCATE(Stack_alloc, Stack) |
#define | YYCOPY(Dst, Src, Count) |
#define | YYFINAL 105 |
#define | YYLAST 807 |
#define | YYNTOKENS 100 |
#define | YYNNTS 110 |
#define | YYNRULES 300 |
#define | YYNSTATES 496 |
#define | YYUNDEFTOK 2 |
#define | YYMAXUTOK 331 |
#define | YYTRANSLATE(YYX) ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
#define | YYPACT_NINF -349 |
#define | yypact_value_is_default(Yystate) (!!((Yystate) == (-349))) |
#define | YYTABLE_NINF -296 |
#define | yytable_value_is_error(Yytable_value) 0 |
#define | yyerrok (yyerrstatus = 0) |
#define | yyclearin (yychar = YYEMPTY) |
#define | YYEMPTY (-2) |
#define | YYEOF 0 |
#define | YYACCEPT goto yyacceptlab |
#define | YYABORT goto yyabortlab |
#define | YYERROR goto yyerrorlab |
#define | YYRECOVERING() (!!yyerrstatus) |
#define | YYBACKUP(Token, Value) |
#define | YYTERROR 1 |
#define | YYERRCODE 256 |
#define | YYDPRINTF(Args) |
#define | YY_SYMBOL_PRINT(Title, Type, Value, Location) |
#define | YY_STACK_PRINT(Bottom, Top) |
#define | YY_REDUCE_PRINT(Rule) |
#define | YYINITDEPTH 200 |
#define | YYMAXDEPTH 10000 |
#define | YYCASE_(N, S) |
#define | YYPOPSTACK(N) (yyvsp -= (N), yyssp -= (N)) |
#define | YYSYNTAX_ERROR |
Typedefs | |
typedef unsigned char | yytype_uint8 |
typedef signed char | yytype_int8 |
typedef unsigned short | yytype_uint16 |
typedef short | yytype_int16 |
Functions | |
int | yyqlex (void *, CQueryCompiler *) |
int | yyqparse (CQueryCompiler *_qcompiler) |
static size_t | yystrlen (const char *yystr) |
static char * | yystpcpy (char *yydest, const char *yysrc) |
static size_t | yytnamerr (char *yyres, const char *yystr) |
static int | yysyntax_error (size_t *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) |
static void | yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep, CQueryCompiler *_qcompiler) |
Variables | |
static const yytype_uint8 | yytranslate [] |
static const char *const | yytname [] |
static const yytype_int16 | yypact [] |
static const yytype_uint16 | yydefact [] |
static const yytype_int16 | yypgoto [] |
static const yytype_int16 | yydefgoto [] |
static const yytype_int16 | yytable [] |
static const yytype_int16 | yycheck [] |
static const yytype_uint8 | yystos [] |
static const yytype_uint8 | yyr1 [] |
static const yytype_uint8 | yyr2 [] |
#define YYBISON 1 |
#define YYBISON_VERSION "3.3.2" |
#define YYSKELETON_NAME "yacc.c" |
#define YYPURE 1 |
#define YYPUSH 0 |
#define YYPULL 1 |
#define yyparse yyqparse |
#define yylex yyqlex |
Referenced by CQueryCompiler::yyqlex(), and yyqparse().
#define yyerror yyqerror |
Referenced by yyqparse().
#define yydebug yyqdebug |
#define yynerrs yyqnerrs |
Referenced by yyqparse().
#define YY_HEADER_EXPORT_START_CONDITIONS 1 /* export start conditions */ |
#define yyqlex_ALREADY_DEFINED |
#define NOINT INT_MIN |
Referenced by yyqparse().
#define _qc ((CQueryCompiler*)_qcompiler) |
Referenced by yyqparse().
Referenced by yyqparse().
#define _newBFilter | ( | ftype, | |
field | |||
) | new CQFBiblSort ((ftype), field, _qc->m_FilterLB, _qc->m_FilterUB) |
Referenced by yyqparse().
#define _newCFilter | ( | ftype, | |
DefaultOffset | |||
) | new CQFContextSort ((ftype), _qc->m_FilterField, _qc->m_FilterMatchId, (_qc->m_FilterOffset==NOINT ? (DefaultOffset) : _qc->m_FilterOffset), _qc->m_FilterLB, _qc->m_FilterUB) |
Referenced by yyqparse().
#define YYERROR_VERBOSE 1 |
#define yyqerror | ( | qc, | |
msg | |||
) | qc->yybarf(msg) |
#define YY_NULLPTR 0 |
Referenced by yysyntax_error().
#define YYERROR_VERBOSE 1 |
#define YY_YYQ_YYQPARSER_H_INCLUDED |
#define YYSIZE_T size_t |
Referenced by yyqparse(), yystpcpy(), yystrlen(), yysyntax_error(), and yytnamerr().
#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
#define YY_ | ( | Msgid | ) | Msgid |
Referenced by yyqparse(), and yysyntax_error().
#define YY_ATTRIBUTE | ( | Spec | ) | /* empty */ |
#define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
#define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
#define YYUSE | ( | E | ) | ((void) (E)) |
Referenced by yydestruct().
#define YY_INITIAL_VALUE | ( | Value | ) | Value |
Referenced by yyqparse().
#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
Referenced by yydestruct(), and yyqparse().
#define YY_IGNORE_MAYBE_UNINITIALIZED_END |
Referenced by yydestruct(), and yyqparse().
#define YYSTACK_ALLOC YYMALLOC |
Referenced by yyqparse().
#define YYSTACK_FREE YYFREE |
Referenced by yyqparse().
#define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM |
Referenced by yysyntax_error().
#define EXIT_SUCCESS 0 |
#define YYMALLOC malloc |
#define YYFREE free |
#define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1) |
#define YYSTACK_BYTES | ( | N | ) |
Referenced by yyqparse().
#define YYCOPY_NEEDED 1 |
#define YYSTACK_RELOCATE | ( | Stack_alloc, | |
Stack | |||
) |
Referenced by yyqparse().
#define YYCOPY | ( | Dst, | |
Src, | |||
Count | |||
) |
#define YYFINAL 105 |
Referenced by yyqparse().
#define YYLAST 807 |
Referenced by yyqparse(), and yysyntax_error().
#define YYNTOKENS 100 |
Referenced by yyqparse(), and yysyntax_error().
#define YYNNTS 110 |
#define YYNRULES 300 |
#define YYNSTATES 496 |
#define YYUNDEFTOK 2 |
#define YYMAXUTOK 331 |
#define YYTRANSLATE | ( | YYX | ) | ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
Referenced by yyqparse().
#define YYPACT_NINF -349 |
#define yypact_value_is_default | ( | Yystate | ) | (!!((Yystate) == (-349))) |
Referenced by yyqparse(), and yysyntax_error().
#define YYTABLE_NINF -296 |
#define yytable_value_is_error | ( | Yytable_value | ) | 0 |
Referenced by yyqparse(), and yysyntax_error().
#define yyerrok (yyerrstatus = 0) |
#define yyclearin (yychar = YYEMPTY) |
#define YYEMPTY (-2) |
Referenced by yyqparse(), and yysyntax_error().
#define YYEOF 0 |
Referenced by yyqparse().
#define YYACCEPT goto yyacceptlab |
Referenced by yyqparse().
#define YYABORT goto yyabortlab |
Referenced by yyqparse().
#define YYERROR goto yyerrorlab |
Referenced by yyqparse().
#define YYRECOVERING | ( | ) | (!!yyerrstatus) |
#define YYBACKUP | ( | Token, | |
Value | |||
) |
#define YYTERROR 1 |
Referenced by yyqparse(), and yysyntax_error().
#define YYERRCODE 256 |
#define YYDPRINTF | ( | Args | ) |
Referenced by yyqparse().
#define YY_SYMBOL_PRINT | ( | Title, | |
Type, | |||
Value, | |||
Location | |||
) |
Referenced by yydestruct(), and yyqparse().
#define YY_STACK_PRINT | ( | Bottom, | |
Top | |||
) |
Referenced by yyqparse().
#define YY_REDUCE_PRINT | ( | Rule | ) |
Referenced by yyqparse().
#define YYINITDEPTH 200 |
Referenced by yyqparse().
#define YYMAXDEPTH 10000 |
Referenced by yyqparse().
#define YYCASE_ | ( | N, | |
S | |||
) |
Referenced by yysyntax_error().
#define YYPOPSTACK | ( | N | ) | (yyvsp -= (N), yyssp -= (N)) |
Referenced by yyqparse().
#define YYSYNTAX_ERROR |
Referenced by yyqparse().
typedef unsigned char yytype_uint8 |
typedef signed char yytype_int8 |
typedef unsigned short yytype_uint16 |
typedef short yytype_int16 |
int yyqlex | ( | void * | , |
CQueryCompiler * | |||
) |
int yyqparse | ( | CQueryCompiler * | _qcompiler | ) |
References _newBFilter, _newCFilter, _newFilter, _qc, GreaterByCountKey, GreaterByCountValue, GreaterByDate, GreaterByFreeBiblField, GreaterByLeftContext, GreaterByMiddleContext, GreaterByPruneKey, GreaterByRank, GreaterByRightContext, GreaterBySize, INITIAL, LessByCountKey, LessByCountValue, LessByDate, LessByFreeBiblField, LessByLeftContext, LessByMiddleContext, LessByPruneKey, LessByRank, LessByRightContext, LessBySize, YYSTYPE::m_int, YYSTYPE::m_pfilt, YYSTYPE::m_pnode, YYSTYPE::m_str, NOINT, Q_MATCHID, unescapeCString(), YY_, YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_INITIAL_VALUE, YY_REDUCE_PRINT, YY_STACK_PRINT, YY_SYMBOL_PRINT, YYABORT, YYACCEPT, yycheck, yydefact, yydefgoto, yydestruct(), YYDPRINTF, YYEMPTY, YYEOF, yyerror, YYERROR, YYFINAL, YYINITDEPTH, YYLAST, yylex, YYMAXDEPTH, yynerrs, YYNTOKENS, yypact, yypact_value_is_default, yypgoto, YYPOPSTACK, yyr1, yyr2, YYSIZE_T, yyalloc::yyss_alloc, YYSTACK_ALLOC, YYSTACK_BYTES, YYSTACK_FREE, YYSTACK_RELOCATE, yystos, YYSYNTAX_ERROR, yytable, yytable_value_is_error, YYTERROR, YYTRANSLATE, and yyalloc::yyvs_alloc.
Referenced by CQueryCompiler::ParseQuery().
|
static |
References YYSIZE_T.
Referenced by yysyntax_error(), and yytnamerr().
|
static |
|
static |
References YYSIZE_T, yystpcpy(), and yystrlen().
Referenced by yysyntax_error().
|
static |
References YY_, YY_NULLPTR, YYCASE_, yycheck, YYEMPTY, YYLAST, YYNTOKENS, yypact, yypact_value_is_default, YYSIZE_T, YYSTACK_ALLOC_MAXIMUM, yystrlen(), yytable, yytable_value_is_error, YYTERROR, yytname, and yytnamerr().
|
static |
References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.
Referenced by yyqparse().
|
static |
|
static |
Referenced by yysyntax_error().
|
static |
Referenced by yyqparse(), and yysyntax_error().
|
static |
Referenced by yyqparse().
|
static |
Referenced by yyqparse().
|
static |
Referenced by yyqparse().
|
static |
Referenced by yyqparse(), and yysyntax_error().
|
static |
Referenced by yyqparse(), and yysyntax_error().
|
static |
Referenced by yyqparse().
|
static |
Referenced by yyqparse().
|
static |
Referenced by yyqparse().