Classes | Defines | Typedefs | Enumerations | Functions | Variables

yyQParser.cpp File Reference

#include "QueryParser.h"
#include "../common/ddcString.h"
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for yyQParser.cpp:

Classes

Defines

Typedefs

Enumerations

Functions

Variables


Define Documentation

#define YYBISON   1
#define YYBISON_VERSION   "2.4.1"
#define YYSKELETON_NAME   "yacc.c"
#define YYPURE   1
#define YYPUSH   0
#define YYPULL   1
#define YYLSP_NEEDED   0
#define yyparse   yyqparse
#define yylex   yyqlex

Referenced by CQueryParser::yyqlex().

#define yyerror   yyqerror

Referenced by yyqparse().

#define yylval   yyqlval
#define yychar   yyqchar
#define yydebug   yyqdebug
#define yynerrs   yyqnerrs
#define YYDEBUG   1
#define YYPARSE_PARAM   _parser
#define YYLEX_PARAM   _parser
#define _prs   ((class CQueryParser*) _parser)

Referenced by yyqlex(), and yyqparse().

#define YYERROR_VERBOSE   0
#define YYTOKEN_TABLE   0
#define YYTOKENTYPE
#define YYSIZE_T   size_t

Referenced by yyqparse().

#define YYSIZE_MAXIMUM   ((YYSIZE_T) -1)
#define YY_ (   msgid  )     msgid

Referenced by yyqparse().

#define YYUSE (   e  )     ((void) (e))
#define YYID (   n  )     (n)

Referenced by yyqparse().

#define YYSTACK_ALLOC   YYMALLOC

Referenced by yyqparse().

#define YYSTACK_FREE   YYFREE

Referenced by yyqparse().

#define YYSTACK_ALLOC_MAXIMUM   YYSIZE_MAXIMUM

Referenced by yyqparse().

#define _STDLIB_H   1
#define YYMALLOC   malloc
#define YYFREE   free
#define YYSTACK_GAP_MAXIMUM   (sizeof (union yyalloc) - 1)
#define YYSTACK_BYTES (   N  ) 
Value:
((N) * (sizeof (yytype_int16) + sizeof (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

Referenced by yyqparse().

#define YYCOPY (   To,
  From,
  Count 
)
Value:
do                                      \
        {                                       \
          YYSIZE_T yyi;                         \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (To)[yyi] = (From)[yyi];            \
        }                                       \
      while (YYID (0))
#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 (YYID (0))

Referenced by yyqparse().

#define YYFINAL   38

Referenced by yyqparse().

#define YYLAST   128

Referenced by yyqparse().

#define YYNTOKENS   25
#define YYNNTS   14
#define YYNRULES   34
#define YYNSTATES   71
#define YYUNDEFTOK   2
#define YYMAXUTOK   264
#define YYTRANSLATE (   YYX  )     ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)

Referenced by yyqparse().

#define YYPACT_NINF   -25

Referenced by yyqparse().

#define YYTABLE_NINF   -1

Referenced by yyqparse().

#define yyerrok   (yyerrstatus = 0)
#define yyclearin   (yychar = YYEMPTY)
#define YYEMPTY   (-2)

Referenced by yyqparse().

#define YYEOF   0

Referenced by yyqparse().

#define YYACCEPT   goto yyacceptlab
#define YYABORT   goto yyabortlab

Referenced by yyqparse().

#define YYERROR   goto yyerrorlab
#define YYFAIL   goto yyerrlab
#define YYRECOVERING (  )     (!!yyerrstatus)
#define YYBACKUP (   Token,
  Value 
)
Value:
do                                                              \
  if (yychar == YYEMPTY && yylen == 1)                          \
    {                                                           \
      yychar = (Token);                                         \
      yylval = (Value);                                         \
      yytoken = YYTRANSLATE (yychar);                           \
      YYPOPSTACK (1);                                           \
      goto yybackup;                                            \
    }                                                           \
  else                                                          \
    {                                                           \
      yyerror (YY_("syntax error: cannot back up")); \
      YYERROR;                                                  \
    }                                                           \
while (YYID (0))
#define YYTERROR   1

Referenced by yyqparse().

#define YYERRCODE   256
#define YYRHSLOC (   Rhs,
  K 
)    ((Rhs)[K])
#define YYLLOC_DEFAULT (   Current,
  Rhs,
  N 
)
Value:
do                                                                      \
      if (YYID (N))                                                    \
        {                                                               \
          (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;        \
          (Current).first_column = YYRHSLOC (Rhs, 1).first_column;      \
          (Current).last_line    = YYRHSLOC (Rhs, N).last_line;         \
          (Current).last_column  = YYRHSLOC (Rhs, N).last_column;       \
        }                                                               \
      else                                                              \
        {                                                               \
          (Current).first_line   = (Current).last_line   =              \
            YYRHSLOC (Rhs, 0).last_line;                                \
          (Current).first_column = (Current).last_column =              \
            YYRHSLOC (Rhs, 0).last_column;                              \
        }                                                               \
    while (YYID (0))
#define YY_LOCATION_PRINT (   File,
  Loc 
)    ((void) 0)
#define YYLEX   yylex (&yylval, YYLEX_PARAM)
#define YYFPRINTF   fprintf
#define YYDPRINTF (   Args  ) 
Value:
do {                                            \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
} while (YYID (0))

Referenced by yyqparse().

#define YY_SYMBOL_PRINT (   Title,
  Type,
  Value,
  Location 
)
Value:
do {                                                                      \
  if (yydebug)                                                            \
    {                                                                     \
      YYFPRINTF (stderr, "%s ", Title);                                   \
      yy_symbol_print (stderr,                                            \
                  Type, Value); \
      YYFPRINTF (stderr, "\n");                                           \
    }                                                                     \
} while (YYID (0))

Referenced by yydestruct(), and yyqparse().

#define YY_STACK_PRINT (   Bottom,
  Top 
)
Value:
do {                                                            \
  if (yydebug)                                                  \
    yy_stack_print ((Bottom), (Top));                           \
} while (YYID (0))

Referenced by yyqparse().

#define YY_REDUCE_PRINT (   Rule  ) 
Value:
do {                                    \
  if (yydebug)                          \
    yy_reduce_print (yyvsp, Rule); \
} while (YYID (0))

Referenced by yyqparse().

#define YYINITDEPTH   200
#define YYMAXDEPTH   10000

Referenced by yyqparse().

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

Referenced by yyqparse().


Typedef Documentation

typedef unsigned char yytype_uint8
typedef signed char yytype_int8
typedef unsigned short int yytype_uint16
typedef short int yytype_int16

Enumeration Type Documentation

Enumerator:
SYMBOL 
REGEX 
OP_OR 
OP_AND 
OP_NEAR 
OP_WITH 
SIM_PRECISE 
SYMBOL 
REGEX 
OP_OR 
OP_AND 
OP_NEAR 
OP_WITH 
SIM_PRECISE 

Function Documentation

void yyqerror ( const char *  error  ) 
int yyqlex ( void *  ,
void *   
)

References _prs, and CQueryParser::yyqlex().

Here is the call graph for this function:

static void yy_symbol_value_print ( FILE *  yyoutput,
int  yytype,
YYSTYPE const *const   yyvaluep 
) [static]

References YYNTOKENS, and YYUSE.

Referenced by yy_symbol_print().

Here is the caller graph for this function:

static void yy_symbol_print ( FILE *  yyoutput,
int  yytype,
YYSTYPE const *const   yyvaluep 
) [static]

References yy_symbol_value_print(), YYFPRINTF, and YYNTOKENS.

Referenced by yy_reduce_print().

Here is the call graph for this function:

Here is the caller graph for this function:

static void yy_stack_print ( yytype_int16 yybottom,
yytype_int16 yytop 
) [static]

References YYFPRINTF.

static void yy_reduce_print ( YYSTYPE yyvsp,
int  yyrule 
) [static]

References yy_symbol_print(), and YYFPRINTF.

Here is the call graph for this function:

static void yydestruct ( const char *  yymsg,
int  yytype,
YYSTYPE yyvaluep 
) [static]

References YY_SYMBOL_PRINT, and YYUSE.

Referenced by yyqparse().

Here is the caller graph for this function:

int yyqparse ( void *  _parser  ) 

Variable Documentation

const yytype_uint8 yytranslate[] [static]
Initial value:
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,    18,    19,    20,    12,    15,     2,     2,
      16,    17,     2,     2,     8,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,    11,     2,     2,    13,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,    21,     2,    22,    14,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,    23,     2,    24,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     9,    10
}
const yytype_uint8 yyprhs[] [static]
Initial value:
{
       0,     0,     3,     5,     9,    13,    17,    19,    28,    39,
      42,    44,    46,    48,    52,    55,    58,    62,    67,    72,
      75,    78,    81,    84,    86,    88,    90,    94,    96,   100,
     104,   108,   110,   114,   116
}
const yytype_int8 yyrhs[] [static]
Initial value:
{
      26,     0,    -1,    27,    -1,    26,     6,    26,    -1,    26,
       5,    26,    -1,    16,    26,    17,    -1,    28,    -1,     7,
      16,    28,     8,    28,     8,     3,    17,    -1,     7,    16,
      28,     8,    28,     8,    28,     8,     3,    17,    -1,    18,
      27,    -1,    38,    -1,    29,    -1,    31,    -1,    19,    30,
      19,    -1,    30,    38,    -1,    38,    38,    -1,    19,    32,
      19,    -1,    32,    20,     3,    38,    -1,    38,    20,     3,
      38,    -1,    12,    37,    -1,    14,    37,    -1,    13,    37,
      -1,    15,    37,    -1,     3,    -1,    37,    -1,    35,    -1,
      33,    11,    37,    -1,     4,    -1,    33,    11,     4,    -1,
      21,     3,    22,    -1,    23,     3,    24,    -1,    34,    -1,
      38,     9,    38,    -1,    36,    -1,    11,    37,    -1
}
const yytype_uint16 yyrline[] [static]
Initial value:
{
       0,    83,    83,    87,    94,   108,   114,   118,   130,   143,
     150,   154,   158,   163,   182,   188,   197,   217,   223,   231,
     236,   241,   246,   251,   258,   269,   280,   292,   304,   317,
     338,   359,   380,   391,   402
}
const char* const yytname[] [static]
Initial value:
{
  "$end", "error", "$undefined", "SYMBOL", "REGEX", "OP_OR", "OP_AND",
  "OP_NEAR", "','", "OP_WITH", "SIM_PRECISE", "'='", "'$'", "'@'", "'^'",
  "'%'", "'('", "')'", "'!'", "'\"'", "'#'", "'['", "']'", "'{'", "'}'",
  "$accept", "exp", "exp_neg", "seq_or_word", "seq_descr",
  "seq_descr_tail", "seq_descr_with_distance",
  "seq_descr_tail_with_distance", "index_name", "chunk_name", "word_exact",
  "word_lemma", "word_symbol", "word_descr", 0
}
const yytype_uint8 yyr1[] [static]
Initial value:
{
       0,    25,    26,    26,    26,    26,    27,    27,    27,    27,
      28,    28,    28,    29,    30,    30,    31,    32,    32,    33,
      34,    35,    36,    37,    38,    38,    38,    38,    38,    38,
      38,    38,    38,    38,    38
}
const yytype_uint8 yyr2[] [static]
Initial value:
{
       0,     2,     1,     3,     3,     3,     1,     8,    10,     2,
       1,     1,     1,     3,     2,     2,     3,     4,     4,     2,
       2,     2,     2,     1,     1,     1,     3,     1,     3,     3,
       3,     1,     3,     1,     2
}
const yytype_uint8 yydefact[] [static]
Initial value:
{
       0,    23,    27,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     2,     6,    11,    12,     0,
      31,    25,    33,    24,    10,     0,    34,    19,    21,    20,
      22,     0,     9,     0,     0,     0,     0,     0,     1,     0,
       0,     0,     0,     0,     5,    13,    14,    16,     0,     0,
      15,    29,    30,     4,     3,    28,    26,    32,     0,     0,
       0,     0,    17,    18,     0,    23,     0,     7,     0,     0,
       8
}
const yytype_int8 yydefgoto[] [static]
Initial value:
{
      -1,    14,    15,    16,    17,    33,    18,    34,    19,    20,
      21,    22,    23,    24
}
const yytype_int8 yypact[] [static]
Initial value:
{
      14,   -25,   -25,    -6,    13,    13,    13,    13,    13,    14,
      40,   105,    16,    20,     7,   -25,   -25,   -25,   -25,    25,
     -25,   -25,   -25,   -25,    29,    66,   -25,   -25,   -25,   -25,
     -25,     3,   -25,    79,    -5,    53,    28,    36,   -25,    14,
      14,    42,   105,    63,   -25,   -25,    29,   -25,    69,    72,
      29,   -25,   -25,   -25,   -25,   -25,   -25,   -25,    66,   105,
     105,    76,    29,    29,    92,    71,    78,   -25,    94,    82,
     -25
}
const yytype_int8 yypgoto[] [static]
Initial value:
{
     -25,     2,    91,   -24,   -25,   -25,   -25,   -25,   -25,   -25,
     -25,   -25,    -2,   -11
}
const yytype_uint8 yytable[] [static]
Initial value:
{
      35,    43,    26,    27,    28,    29,    30,    38,    39,    40,
      25,    31,    39,    40,    47,    48,     1,     1,     2,    36,
      44,     3,    46,    37,    50,     4,     5,     6,     7,     8,
       9,    57,    10,    11,    61,    12,    41,    13,    42,    56,
      66,    53,    54,     1,     2,     1,    55,     3,    62,    63,
      51,     4,     5,     6,     7,     8,     1,     2,    10,    11,
      52,    12,    42,    13,     4,     5,     6,     7,     8,     1,
       2,    58,    59,    49,    12,    60,    13,     4,     5,     6,
       7,     8,     1,     2,    64,    11,    68,    12,    67,    13,
       4,     5,     6,     7,     8,    65,     2,    69,    45,    70,
      12,    32,    13,     4,     5,     6,     7,     8,     1,     2,
       0,    11,     0,    12,     0,    13,     4,     5,     6,     7,
       8,     0,     0,     0,     0,     0,    12,     0,    13
}
const yytype_int8 yycheck[] [static]
Initial value:
{
      11,    25,     4,     5,     6,     7,     8,     0,     5,     6,
      16,     9,     5,     6,    19,    20,     3,     3,     4,     3,
      17,     7,    33,     3,    35,    11,    12,    13,    14,    15,
      16,    42,    18,    19,    58,    21,    11,    23,     9,    41,
      64,    39,    40,     3,     4,     3,     4,     7,    59,    60,
      22,    11,    12,    13,    14,    15,     3,     4,    18,    19,
      24,    21,     9,    23,    11,    12,    13,    14,    15,     3,
       4,     8,     3,    20,    21,     3,    23,    11,    12,    13,
      14,    15,     3,     4,     8,    19,     8,    21,    17,    23,
      11,    12,    13,    14,    15,     3,     4,     3,    19,    17,
      21,    10,    23,    11,    12,    13,    14,    15,     3,     4,
      -1,    19,    -1,    21,    -1,    23,    11,    12,    13,    14,
      15,    -1,    -1,    -1,    -1,    -1,    21,    -1,    23
}
const yytype_uint8 yystos[] [static]
Initial value:
{
       0,     3,     4,     7,    11,    12,    13,    14,    15,    16,
      18,    19,    21,    23,    26,    27,    28,    29,    31,    33,
      34,    35,    36,    37,    38,    16,    37,    37,    37,    37,
      37,    26,    27,    30,    32,    38,     3,     3,     0,     5,
       6,    11,     9,    28,    17,    19,    38,    19,    20,    20,
      38,    22,    24,    26,    26,     4,    37,    38,     8,     3,
       3,    28,    38,    38,     8,     3,    28,    17,     8,     3,
      17
}
int yyqdebug