ddc
Classes | Macros | Typedefs | Functions | Variables
yyQLexer.cpp File Reference
#include <iostream>
#include <errno.h>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <FlexLexer.h>
#include "QueryCompiler.h"
Include dependency graph for yyQLexer.cpp:

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   6
 
#define YY_FLEX_SUBMINOR_VERSION   4
 
#define FLEX_BETA
 
#define yyFlexLexer   yyqFlexLexer
 
#define yyalloc   yyqalloc
 
#define yyrealloc   yyqrealloc
 
#define yyfree   yyqfree
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define SIZE_MAX   (~(size_t)0)
 
#define yyconst   const
 
#define yynoreturn
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((YY_CHAR) (c))
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   yyrestart( yyin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define YY_LINENO_REWIND_TO(dst)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define yy_new_buffer   yy_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define FLEX_DEBUG
 
#define yytext_ptr   yytext
 
#define YY_INTERACTIVE
 
#define YY_DECL   int yyqLexer::yylex()
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   103
 
#define YY_END_OF_BUFFER   104
 
#define REJECT   reject_used_but_not_detected
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define YY_NO_UNISTD_H   1
 
#define YY_QUERY_LEXER
 
#define yyqDEBUG
 
#define DBG(code)   code;
 
#define DPRINTF2(a1, a2)   DBG(fprintf(stderr,a1,a2);)
 
#define DDC_WANT_LEXER_COMMENTS   1
 
#define DDC_LEXER_COMMENT(x)   x
 
#define YY_USER_ACTION   yybyteno += yyleng;
 
#define YYX_ADD(textIncr, lengIncr)   yytext+=(textIncr); yyleng+=(lengIncr); /*yybyteno-=(lengIncr);*/
 
#define INITIAL   0
 
#define S_NOID   1
 
#define Q_DATE   2
 
#define Q_REGOPT   3
 
#define Q_REGREP   4
 
#define Q_XPIPE   5
 
#define Q_COMMENT   6
 
#define Q_CORPORA   7
 
#define Q_MATCHID   8
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   LexerOutput( yytext, yyleng )
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   LexerError( msg )
 
#define YY_BREAK   /*LINTED*/break;
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

typedef signed char flex_int8_t
 
typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef unsigned char flex_uint8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef flex_uint8_t YY_CHAR
 

Functions

void * yyqalloc (yy_size_t)
 
void * yyqrealloc (void *, yy_size_t)
 
void yyqfree (void *)
 

Variables

int yyleng
 
static const flex_int16_t yy_accept [558]
 
static const YY_CHAR yy_ec [256]
 
static const YY_CHAR yy_meta [82]
 
static const flex_int16_t yy_base [612]
 
static const flex_int16_t yy_def [612]
 
static const flex_int16_t yy_nxt [2772]
 
static const flex_int16_t yy_chk [2772]
 
static const flex_int32_t yy_rule_can_match_eol [104]
 
static const flex_int16_t yy_rule_linenum [103]
 

Macro Definition Documentation

◆ YY_INT_ALIGNED

#define YY_INT_ALIGNED   short int

◆ FLEX_SCANNER

#define FLEX_SCANNER

◆ YY_FLEX_MAJOR_VERSION

#define YY_FLEX_MAJOR_VERSION   2

◆ YY_FLEX_MINOR_VERSION

#define YY_FLEX_MINOR_VERSION   6

◆ YY_FLEX_SUBMINOR_VERSION

#define YY_FLEX_SUBMINOR_VERSION   4

◆ FLEX_BETA

#define FLEX_BETA

◆ yyFlexLexer

#define yyFlexLexer   yyqFlexLexer

◆ yyalloc

#define yyalloc   yyqalloc

◆ yyrealloc

#define yyrealloc   yyqrealloc

◆ yyfree

#define yyfree   yyqfree

◆ FLEXINT_H

#define FLEXINT_H

◆ INT8_MIN

#define INT8_MIN   (-128)

◆ INT16_MIN

#define INT16_MIN   (-32767-1)

◆ INT32_MIN

#define INT32_MIN   (-2147483647-1)

◆ INT8_MAX

#define INT8_MAX   (127)

◆ INT16_MAX

#define INT16_MAX   (32767)

◆ INT32_MAX

#define INT32_MAX   (2147483647)

◆ UINT8_MAX

#define UINT8_MAX   (255U)

◆ UINT16_MAX

#define UINT16_MAX   (65535U)

◆ UINT32_MAX

#define UINT32_MAX   (4294967295U)

◆ SIZE_MAX

#define SIZE_MAX   (~(size_t)0)

◆ yyconst

#define yyconst   const

◆ yynoreturn

#define yynoreturn

◆ YY_NULL

#define YY_NULL   0

◆ YY_SC_TO_UI

#define YY_SC_TO_UI (   c)    ((YY_CHAR) (c))

◆ BEGIN

#define BEGIN   (yy_start) = 1 + 2 *

◆ YY_START

#define YY_START   (((yy_start) - 1) / 2)

◆ YYSTATE

#define YYSTATE   YY_START

◆ YY_STATE_EOF

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

◆ YY_NEW_FILE

#define YY_NEW_FILE   yyrestart( yyin )

◆ YY_END_OF_BUFFER_CHAR

#define YY_END_OF_BUFFER_CHAR   0

◆ YY_BUF_SIZE

#define YY_BUF_SIZE   16384

◆ YY_STATE_BUF_SIZE

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

◆ YY_TYPEDEF_YY_BUFFER_STATE

#define YY_TYPEDEF_YY_BUFFER_STATE

◆ YY_TYPEDEF_YY_SIZE_T

#define YY_TYPEDEF_YY_SIZE_T

◆ EOB_ACT_CONTINUE_SCAN

#define EOB_ACT_CONTINUE_SCAN   0

◆ EOB_ACT_END_OF_FILE

#define EOB_ACT_END_OF_FILE   1

◆ EOB_ACT_LAST_MATCH

#define EOB_ACT_LAST_MATCH   2

◆ YY_LESS_LINENO

#define YY_LESS_LINENO (   n)
Value:
do { \
int yyl;\
for ( yyl = n; yyl < yyleng; ++yyl )\
if ( yytext[yyl] == '\n' )\
--yylineno;\
}while(0)
int yyleng

◆ YY_LINENO_REWIND_TO

#define YY_LINENO_REWIND_TO (   dst)
Value:
do {\
const char *p;\
for ( p = yy_cp-1; p >= (dst); --p)\
if ( *p == '\n' )\
--yylineno;\
}while(0)

◆ yyless [1/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
*yy_cp = (yy_hold_char); \
YY_RESTORE_YY_MORE_OFFSET \
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define YY_MORE_ADJ
Definition: yyQLexer.cpp:1343

◆ unput

#define unput (   c)    yyunput( c, (yytext_ptr) )

◆ YY_STRUCT_YY_BUFFER_STATE

#define YY_STRUCT_YY_BUFFER_STATE

◆ YY_BUFFER_NEW

#define YY_BUFFER_NEW   0

◆ YY_BUFFER_NORMAL

#define YY_BUFFER_NORMAL   1

◆ YY_BUFFER_EOF_PENDING

#define YY_BUFFER_EOF_PENDING   2

◆ YY_CURRENT_BUFFER

#define YY_CURRENT_BUFFER
Value:
( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)

◆ YY_CURRENT_BUFFER_LVALUE

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]

◆ yy_new_buffer

#define yy_new_buffer   yy_create_buffer

◆ yy_set_interactive

#define yy_set_interactive (   is_interactive)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
#define YY_BUF_SIZE
Definition: yyQLexer.cpp:203
#define YY_CURRENT_BUFFER
Definition: yyQLexer.cpp:355

◆ yy_set_bol

#define yy_set_bol (   at_bol)
Value:
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
#define YY_BUF_SIZE
Definition: yyQLexer.cpp:203
#define YY_CURRENT_BUFFER
Definition: yyQLexer.cpp:355

◆ YY_AT_BOL

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

◆ FLEX_DEBUG

#define FLEX_DEBUG

◆ yytext_ptr

#define yytext_ptr   yytext

◆ YY_INTERACTIVE

#define YY_INTERACTIVE

◆ YY_DECL

#define YY_DECL   int yyqLexer::yylex()

◆ YY_DO_BEFORE_ACTION

#define YY_DO_BEFORE_ACTION
Value:
(yytext_ptr) = yy_bp; \
/* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
yyleng = (int) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
/* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
(yy_c_buf_p) = yy_cp;
#define yytext_ptr
Definition: yyQLexer.cpp:402

◆ YY_NUM_RULES

#define YY_NUM_RULES   103

◆ YY_END_OF_BUFFER

#define YY_END_OF_BUFFER   104

◆ REJECT

#define REJECT   reject_used_but_not_detected

◆ yymore

#define yymore ( )    yymore_used_but_not_detected

◆ YY_MORE_ADJ

#define YY_MORE_ADJ   0

◆ YY_RESTORE_YY_MORE_OFFSET

#define YY_RESTORE_YY_MORE_OFFSET

◆ YY_NO_UNISTD_H

#define YY_NO_UNISTD_H   1

◆ YY_QUERY_LEXER

#define YY_QUERY_LEXER

◆ yyqDEBUG

#define yyqDEBUG

◆ DBG

#define DBG (   code)    code;

◆ DPRINTF2

#define DPRINTF2 (   a1,
  a2 
)    DBG(fprintf(stderr,a1,a2);)

◆ DDC_WANT_LEXER_COMMENTS

#define DDC_WANT_LEXER_COMMENTS   1

◆ DDC_LEXER_COMMENT

#define DDC_LEXER_COMMENT (   x)    x

◆ YY_USER_ACTION

#define YY_USER_ACTION   yybyteno += yyleng;

◆ YYX_ADD

#define YYX_ADD (   textIncr,
  lengIncr 
)    yytext+=(textIncr); yyleng+=(lengIncr); /*yybyteno-=(lengIncr);*/

◆ INITIAL

#define INITIAL   0

Referenced by yyqparse().

◆ S_NOID

#define S_NOID   1

◆ Q_DATE

#define Q_DATE   2

◆ Q_REGOPT

#define Q_REGOPT   3

◆ Q_REGREP

#define Q_REGREP   4

◆ Q_XPIPE

#define Q_XPIPE   5

◆ Q_COMMENT

#define Q_COMMENT   6

◆ Q_CORPORA

#define Q_CORPORA   7

◆ Q_MATCHID

#define Q_MATCHID   8

Referenced by yyqparse().

◆ YY_EXTRA_TYPE

#define YY_EXTRA_TYPE   void *

◆ YY_READ_BUF_SIZE

#define YY_READ_BUF_SIZE   8192

◆ ECHO

#define ECHO   LexerOutput( yytext, yyleng )

◆ YY_INPUT

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
/* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
\
/* %if-c++-only C++ definition \ */\
if ( (int)(result = LexerInput( (char *) buf, max_size )) < 0 ) \
YY_FATAL_ERROR( "input in flex scanner failed" );

◆ yyterminate

#define yyterminate ( )    return YY_NULL

◆ YY_START_STACK_INCR

#define YY_START_STACK_INCR   25

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    LexerError( msg )

◆ YY_BREAK

#define YY_BREAK   /*LINTED*/break;

◆ YY_RULE_SETUP

#define YY_RULE_SETUP   YY_USER_ACTION

◆ YY_EXIT_FAILURE

#define YY_EXIT_FAILURE   2

◆ yyless [2/2]

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
yytext[yyleng] = (yy_hold_char); \
(yy_c_buf_p) = yytext + yyless_macro_arg; \
(yy_hold_char) = *(yy_c_buf_p); \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
int yyleng

◆ YYTABLES_NAME

#define YYTABLES_NAME   "yytables"

Typedef Documentation

◆ flex_int8_t

typedef signed char flex_int8_t

◆ flex_int16_t

typedef short int flex_int16_t

◆ flex_int32_t

typedef int flex_int32_t

◆ flex_uint8_t

typedef unsigned char flex_uint8_t

◆ flex_uint16_t

typedef unsigned short int flex_uint16_t

◆ flex_uint32_t

typedef unsigned int flex_uint32_t

◆ YY_BUFFER_STATE

◆ yy_size_t

typedef size_t yy_size_t

◆ YY_CHAR

Function Documentation

◆ yyqalloc()

void * yyqalloc ( yy_size_t  size)

◆ yyqrealloc()

void * yyqrealloc ( void *  ptr,
yy_size_t  size 
)

◆ yyqfree()

void yyqfree ( void *  ptr)

Variable Documentation

◆ yyleng

int yyleng

◆ yy_accept

const flex_int16_t yy_accept[558]
static

◆ yy_ec

const YY_CHAR yy_ec[256]
static

◆ yy_meta

const YY_CHAR yy_meta[82]
static
Initial value:
=
{ 0,
1, 2, 3, 2, 2, 2, 4, 2, 2, 5,
2, 6, 7, 2, 7, 8, 9, 1, 2, 2,
2, 2, 2, 4, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
1, 10, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 11, 2,
2
}

◆ yy_base

const flex_int16_t yy_base[612]
static

◆ yy_def

const flex_int16_t yy_def[612]
static

◆ yy_nxt

const flex_int16_t yy_nxt[2772]
static

◆ yy_chk

const flex_int16_t yy_chk[2772]
static

◆ yy_rule_can_match_eol

const flex_int32_t yy_rule_can_match_eol[104]
static
Initial value:
=
{ 0,
0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 1,
1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1,
0, 1, 0, 0, }

◆ yy_rule_linenum

const flex_int16_t yy_rule_linenum[103]
static
Initial value:
=
{ 0,
159, 160, 161, 164, 167, 168, 169, 170, 171, 172,
173, 174, 177, 178, 179, 180, 181, 182, 185, 186,
187, 188, 189, 190, 191, 192, 193, 194, 195, 196,
197, 198, 199, 200, 201, 202, 203, 204, 205, 206,
207, 208, 209, 210, 211, 212, 213, 214, 215, 216,
217, 218, 222, 223, 224, 225, 226, 227, 228, 229,
232, 233, 234, 235, 236, 237, 238, 239, 240, 241,
242, 245, 246, 247, 248, 249, 250, 253, 254, 255,
257, 258, 259, 263, 264, 265, 267, 268, 271, 274,
275, 276, 277, 278, 280, 283, 284, 285, 288, 289,
292, 293
}