ddc
Classes | Macros | Typedefs | Functions | Variables
yyQParser.cpp File Reference
#include "yyQLexer.h"
#include "QueryCompiler.h"
#include "../CommonLib/ddcString.h"
#include <sstream>
#include <stddef.h>
#include <stdlib.h>
Include dependency graph for yyQParser.cpp:

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 []
 

Macro Definition Documentation

◆ YYBISON

#define YYBISON   1

◆ YYBISON_VERSION

#define YYBISON_VERSION   "3.3.2"

◆ YYSKELETON_NAME

#define YYSKELETON_NAME   "yacc.c"

◆ YYPURE

#define YYPURE   1

◆ YYPUSH

#define YYPUSH   0

◆ YYPULL

#define YYPULL   1

◆ yyparse

#define yyparse   yyqparse

◆ yylex

#define yylex   yyqlex

Referenced by CQueryCompiler::yyqlex(), and yyqparse().

◆ yyerror

#define yyerror   yyqerror

Referenced by yyqparse().

◆ yydebug

#define yydebug   yyqdebug

◆ yynerrs

#define yynerrs   yyqnerrs

Referenced by yyqparse().

◆ YY_HEADER_EXPORT_START_CONDITIONS

#define YY_HEADER_EXPORT_START_CONDITIONS   1 /* export start conditions */

◆ yyqlex_ALREADY_DEFINED

#define yyqlex_ALREADY_DEFINED

◆ NOINT

#define NOINT   INT_MIN

Referenced by yyqparse().

◆ _qc

#define _qc   ((CQueryCompiler*)_qcompiler)

Referenced by yyqparse().

◆ _newFilter

#define _newFilter (   class,
  ftype 
)    new class ((ftype), _qc->m_FilterLB, _qc->m_FilterUB)

Referenced by yyqparse().

◆ _newBFilter

#define _newBFilter (   ftype,
  field 
)    new CQFBiblSort ((ftype), field, _qc->m_FilterLB, _qc->m_FilterUB)

Referenced by yyqparse().

◆ _newCFilter

#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().

◆ YYERROR_VERBOSE [1/2]

#define YYERROR_VERBOSE   1

◆ yyqerror

#define yyqerror (   qc,
  msg 
)    qc->yybarf(msg)

◆ YY_NULLPTR

#define YY_NULLPTR   0

Referenced by yysyntax_error().

◆ YYERROR_VERBOSE [2/2]

#define YYERROR_VERBOSE   1

◆ YY_YYQ_YYQPARSER_H_INCLUDED

#define YY_YYQ_YYQPARSER_H_INCLUDED

◆ YYSIZE_T

#define YYSIZE_T   size_t

◆ YYSIZE_MAXIMUM

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)

◆ YY_

#define YY_ (   Msgid)    Msgid

Referenced by yyqparse(), and yysyntax_error().

◆ YY_ATTRIBUTE

#define YY_ATTRIBUTE (   Spec)    /* empty */

◆ YY_ATTRIBUTE_PURE

#define YY_ATTRIBUTE_PURE   YY_ATTRIBUTE ((__pure__))

◆ YY_ATTRIBUTE_UNUSED

#define YY_ATTRIBUTE_UNUSED   YY_ATTRIBUTE ((__unused__))

◆ YYUSE

#define YYUSE (   E)    ((void) (E))

Referenced by yydestruct().

◆ YY_INITIAL_VALUE

#define YY_INITIAL_VALUE (   Value)    Value

Referenced by yyqparse().

◆ YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

#define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN

Referenced by yydestruct(), and yyqparse().

◆ YY_IGNORE_MAYBE_UNINITIALIZED_END

#define YY_IGNORE_MAYBE_UNINITIALIZED_END

Referenced by yydestruct(), and yyqparse().

◆ YYSTACK_ALLOC

#define YYSTACK_ALLOC   YYMALLOC

Referenced by yyqparse().

◆ YYSTACK_FREE

#define YYSTACK_FREE   YYFREE

Referenced by yyqparse().

◆ YYSTACK_ALLOC_MAXIMUM

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Referenced by yysyntax_error().

◆ EXIT_SUCCESS

#define EXIT_SUCCESS   0

◆ YYMALLOC

#define YYMALLOC   malloc

◆ YYFREE

#define YYFREE   free

◆ YYSTACK_GAP_MAXIMUM

#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)

◆ YYSTACK_BYTES

#define YYSTACK_BYTES (   N)
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
union YYSTYPE YYSTYPE
Definition: yyQParser.h:144
short yytype_int16
Definition: yyQParser.cpp:285
#define YYSTACK_GAP_MAXIMUM
Definition: yyQParser.cpp:440

Referenced by yyqparse().

◆ YYCOPY_NEEDED

#define YYCOPY_NEEDED   1

◆ YYSTACK_RELOCATE

#define YYSTACK_RELOCATE (   Stack_alloc,
  Stack 
)
Value:
do \
{ \
YYSIZE_T yynewbytes; \
YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \
Stack = &yyptr->Stack_alloc; \
yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
yyptr += yynewbytes / sizeof (*yyptr); \
} \
while (0)
#define YYSTACK_GAP_MAXIMUM
Definition: yyQParser.cpp:440

Referenced by yyqparse().

◆ YYCOPY

#define YYCOPY (   Dst,
  Src,
  Count 
)
Value:
do \
{ \
YYSIZE_T yyi; \
for (yyi = 0; yyi < (Count); yyi++) \
(Dst)[yyi] = (Src)[yyi]; \
} \
while (0)

◆ YYFINAL

#define YYFINAL   105

Referenced by yyqparse().

◆ YYLAST

#define YYLAST   807

Referenced by yyqparse(), and yysyntax_error().

◆ YYNTOKENS

#define YYNTOKENS   100

Referenced by yyqparse(), and yysyntax_error().

◆ YYNNTS

#define YYNNTS   110

◆ YYNRULES

#define YYNRULES   300

◆ YYNSTATES

#define YYNSTATES   496

◆ YYUNDEFTOK

#define YYUNDEFTOK   2

◆ YYMAXUTOK

#define YYMAXUTOK   331

◆ YYTRANSLATE

#define YYTRANSLATE (   YYX)    ((unsigned) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Referenced by yyqparse().

◆ YYPACT_NINF

#define YYPACT_NINF   -349

◆ yypact_value_is_default

#define yypact_value_is_default (   Yystate)    (!!((Yystate) == (-349)))

Referenced by yyqparse(), and yysyntax_error().

◆ YYTABLE_NINF

#define YYTABLE_NINF   -296

◆ yytable_value_is_error

#define yytable_value_is_error (   Yytable_value)    0

Referenced by yyqparse(), and yysyntax_error().

◆ yyerrok

#define yyerrok   (yyerrstatus = 0)

◆ yyclearin

#define yyclearin   (yychar = YYEMPTY)

◆ YYEMPTY

#define YYEMPTY   (-2)

Referenced by yyqparse(), and yysyntax_error().

◆ YYEOF

#define YYEOF   0

Referenced by yyqparse().

◆ YYACCEPT

#define YYACCEPT   goto yyacceptlab

Referenced by yyqparse().

◆ YYABORT

#define YYABORT   goto yyabortlab

Referenced by yyqparse().

◆ YYERROR

#define YYERROR   goto yyerrorlab

Referenced by yyqparse().

◆ YYRECOVERING

#define YYRECOVERING ( )    (!!yyerrstatus)

◆ YYBACKUP

#define YYBACKUP (   Token,
  Value 
)
Value:
do \
if (yychar == YYEMPTY) \
{ \
yychar = (Token); \
yylval = (Value); \
YYPOPSTACK (yylen); \
yystate = *yyssp; \
goto yybackup; \
} \
else \
{ \
yyerror (_qcompiler, YY_("syntax error: cannot back up")); \
YYERROR; \
} \
while (0)
#define YY_(Msgid)
Definition: yyQParser.cpp:311
#define YYEMPTY
Definition: yyQParser.cpp:1114

◆ YYTERROR

#define YYTERROR   1

Referenced by yyqparse(), and yysyntax_error().

◆ YYERRCODE

#define YYERRCODE   256

◆ YYDPRINTF

#define YYDPRINTF (   Args)

Referenced by yyqparse().

◆ YY_SYMBOL_PRINT

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)

Referenced by yydestruct(), and yyqparse().

◆ YY_STACK_PRINT

#define YY_STACK_PRINT (   Bottom,
  Top 
)

Referenced by yyqparse().

◆ YY_REDUCE_PRINT

#define YY_REDUCE_PRINT (   Rule)

Referenced by yyqparse().

◆ YYINITDEPTH

#define YYINITDEPTH   200

Referenced by yyqparse().

◆ YYMAXDEPTH

#define YYMAXDEPTH   10000

Referenced by yyqparse().

◆ YYCASE_

#define YYCASE_ (   N,
 
)
Value:
case N: \
yyformat = S; \
break

Referenced by yysyntax_error().

◆ YYPOPSTACK

#define YYPOPSTACK (   N)    (yyvsp -= (N), yyssp -= (N))

Referenced by yyqparse().

◆ YYSYNTAX_ERROR

#define YYSYNTAX_ERROR
Value:
yysyntax_error (&yymsg_alloc, &yymsg, \
yyssp, yytoken)
static int yysyntax_error(size_t *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken)
Definition: yyQParser.cpp:1393

Referenced by yyqparse().

Typedef Documentation

◆ yytype_uint8

typedef unsigned char yytype_uint8

◆ yytype_int8

typedef signed char yytype_int8

◆ yytype_uint16

typedef unsigned short yytype_uint16

◆ yytype_int16

typedef short yytype_int16

Function Documentation

◆ yyqlex()

int yyqlex ( void *  ,
CQueryCompiler  
)

References CQueryCompiler::yyqlex().

Here is the call graph for this function:

◆ yyqparse()

int yyqparse ( CQueryCompiler _qcompiler)

◆ yystrlen()

static size_t yystrlen ( const char *  yystr)
static

References YYSIZE_T.

Referenced by yysyntax_error(), and yytnamerr().

Here is the caller graph for this function:

◆ yystpcpy()

static char* yystpcpy ( char *  yydest,
const char *  yysrc 
)
static

References YYSIZE_T.

Referenced by yytnamerr().

Here is the caller graph for this function:

◆ yytnamerr()

static size_t yytnamerr ( char *  yyres,
const char *  yystr 
)
static

References YYSIZE_T, yystpcpy(), and yystrlen().

Referenced by yysyntax_error().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ yysyntax_error()

static int yysyntax_error ( size_t *  yymsg_alloc,
char **  yymsg,
yytype_int16 yyssp,
int  yytoken 
)
static

◆ yydestruct()

static void yydestruct ( const char *  yymsg,
int  yytype,
YYSTYPE yyvaluep,
CQueryCompiler _qcompiler 
)
static

References YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN, YY_IGNORE_MAYBE_UNINITIALIZED_END, YY_SYMBOL_PRINT, and YYUSE.

Referenced by yyqparse().

Here is the caller graph for this function:

Variable Documentation

◆ yytranslate

const yytype_uint8 yytranslate[]
static

◆ yytname

const char* const yytname[]
static

Referenced by yysyntax_error().

◆ yypact

const yytype_int16 yypact[]
static

Referenced by yyqparse(), and yysyntax_error().

◆ yydefact

const yytype_uint16 yydefact[]
static

Referenced by yyqparse().

◆ yypgoto

const yytype_int16 yypgoto[]
static
Initial value:
=
{
-349, -349, 592, -113, -349, -349, -349, -349, -349, -349,
-349, 30, -349, 480, -349, -349, 487, -349, -349, -349,
-349, -349, -349, -349, 419, 417, 4, 275, 267, -349,
276, 213, 581, -349, 29, 590, 594, 595, 167, 21,
-79, 2, 5, -349, -349, -349, -349, -349, -349, -349,
-349, -349, -349, -349, -349, -349, -349, -349, -349, -349,
-349, -349, -349, -349, -349, -349, 333, -349, -9, 397,
-349, -145, 265, 283, -349, -349, -349, -292, -348, -308,
-305, -349, -349, -349, -78, 383, -19, 412, 413, 418,
424, -349, 321, 114, -349, -11, -349, -349, -119, -117,
-108, -349, -102, -101, 187, -41, -142, -241, -23, -349
}

Referenced by yyqparse().

◆ yydefgoto

const yytype_int16 yydefgoto[]
static
Initial value:
=
{
-1, 28, 135, 234, 301, 302, 303, 304, 305, 306,
370, 136, 111, 307, 199, 200, 281, 202, 203, 204,
205, 206, 207, 208, 259, 263, 386, 387, 269, 334,
335, 395, 106, 166, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 43, 44, 45, 46,
47, 48, 49, 50, 51, 52, 53, 54, 55, 56,
57, 58, 59, 60, 61, 62, 137, 63, 75, 100,
104, 124, 357, 400, 141, 315, 246, 358, 401, 359,
360, 361, 413, 459, 64, 143, 65, 76, 91, 89,
85, 154, 247, 363, 255, 66, 67, 336, 68, 69,
70, 232, 71, 72, 456, 241, 396, 327, 121, 169
}

Referenced by yyqparse().

◆ yytable

const yytype_int16 yytable[]
static

Referenced by yyqparse(), and yysyntax_error().

◆ yycheck

const yytype_int16 yycheck[]
static

Referenced by yyqparse(), and yysyntax_error().

◆ yystos

const yytype_uint8 yystos[]
static

Referenced by yyqparse().

◆ yyr1

const yytype_uint8 yyr1[]
static

Referenced by yyqparse().

◆ yyr2

const yytype_uint8 yyr2[]
static

Referenced by yyqparse().