Expressions: Turned off debug output/tracing for expression parser.

This commit is contained in:
Eivind Kvedalen 2016-02-27 21:52:12 +01:00 committed by wmayer
parent e940274146
commit 34135e5d2e
3 changed files with 628 additions and 1207 deletions

View File

@ -1397,8 +1397,6 @@ Expression * App::ExpressionParser::parse(const App::DocumentObject *owner, cons
initParser(owner);
yydebug = 0;
// run the parser
int result = ExpressionParser::ExpressionParser_yyparse ();

File diff suppressed because it is too large Load Diff

View File

@ -5,10 +5,6 @@
/* A lexical scanner generated by flex */
/* %not-for-header */
/* %if-c-only */
/* %if-not-reentrant */
#define yy_create_buffer ExpressionParser_create_buffer
#define yy_delete_buffer ExpressionParser_delete_buffer
#define yy_flex_debug ExpressionParser_flex_debug
@ -28,10 +24,6 @@
#define yyrealloc ExpressionParserrealloc
#define yyfree ExpressionParserfree
/* %endif */
/* %endif */
/* %ok-for-header */
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5
@ -40,32 +32,16 @@
#define FLEX_BETA
#endif
/* %if-c++-only */
/* %endif */
/* %if-c-only */
/* %endif */
/* %if-c-only */
/* %endif */
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
/* %if-c-only */
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
/* %endif */
/* %if-tables-serialization */
/* %endif */
/* end standard C headers. */
/* %if-c-or-c++ */
/* flex integer type definitions */
#ifndef FLEXINT_H
@ -130,11 +106,6 @@ typedef unsigned int flex_uint32_t;
#endif /* ! FLEXINT_H */
/* %endif */
/* %if-c++-only */
/* %endif */
#ifdef __cplusplus
/* The "const" storage-class-modifier is valid. */
@ -156,13 +127,8 @@ typedef unsigned int flex_uint32_t;
#define yyconst
#endif
/* %not-for-header */
/* Returned upon end-of-file. */
#define YY_NULL 0
/* %ok-for-header */
/* %not-for-header */
/* Promotes a possibly negative, possibly signed char to an unsigned
* integer for use as an array index. If the signed char is negative,
@ -170,14 +136,6 @@ typedef unsigned int flex_uint32_t;
* double cast.
*/
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
/* %ok-for-header */
/* %if-reentrant */
/* %endif */
/* %if-not-reentrant */
/* %endif */
/* Enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
@ -222,15 +180,9 @@ typedef unsigned int flex_uint32_t;
typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif
/* %if-not-reentrant */
extern int ExpressionParserleng;
/* %endif */
/* %if-c-only */
/* %if-not-reentrant */
extern FILE *ExpressionParserin, *ExpressionParserout;
/* %endif */
/* %endif */
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
@ -263,12 +215,7 @@ typedef size_t yy_size_t;
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
{
/* %if-c-only */
FILE *yy_input_file;
/* %endif */
/* %if-c++-only */
/* %endif */
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
@ -329,19 +276,10 @@ struct yy_buffer_state
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
/* %if-not-reentrant */
/* Stack of input buffers. */
static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
/* %endif */
/* %ok-for-header */
/* %endif */
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
@ -358,11 +296,6 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
*/
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
/* %if-c-only Standard (non-C++) definition */
/* %if-not-reentrant */
/* %not-for-header */
/* yy_hold_char holds the character lost when ExpressionParsertext is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
@ -377,9 +310,6 @@ static int yy_start = 0; /* start state number */
* instead of setting up a fresh ExpressionParserin. A bit of a hack ...
*/
static int yy_did_buffer_switch_on_eof;
/* %ok-for-header */
/* %endif */
void ExpressionParserrestart (FILE *input_file );
void ExpressionParser_switch_to_buffer (YY_BUFFER_STATE new_buffer );
@ -399,8 +329,6 @@ YY_BUFFER_STATE ExpressionParser_scan_buffer (char *base,yy_size_t size );
YY_BUFFER_STATE ExpressionParser_scan_string (yyconst char *yy_str );
YY_BUFFER_STATE ExpressionParser_scan_bytes (yyconst char *bytes,int len );
/* %endif */
void *ExpressionParseralloc (yy_size_t );
void *ExpressionParserrealloc (void *,yy_size_t );
void ExpressionParserfree (void * );
@ -429,13 +357,9 @@ void ExpressionParserfree (void * );
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* %% [1.0] ExpressionParsertext/ExpressionParserin/ExpressionParserout/yy_state_type/ExpressionParserlineno etc. def's & init go here */
#define ExpressionParserwrap(n) 1
#define YY_SKIP_YYWRAP
#define FLEX_DEBUG
typedef unsigned char YY_CHAR;
FILE *ExpressionParserin = (FILE *) 0, *ExpressionParserout = (FILE *) 0;
@ -449,28 +373,21 @@ int ExpressionParserlineno = 1;
extern char *ExpressionParsertext;
#define yytext_ptr ExpressionParsertext
/* %if-c-only Standard (non-C++) definition */
static yy_state_type yy_get_previous_state (void );
static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
static int yy_get_next_buffer (void );
static void yy_fatal_error (yyconst char msg[] );
/* %endif */
/* Done after the current pattern has been matched and before the
* corresponding action - sets up ExpressionParsertext.
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
/* %% [2.0] code to fiddle ExpressionParsertext and ExpressionParserleng for yymore() goes here \ */\
ExpressionParserleng = (size_t) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
/* %% [3.0] code to copy yytext_ptr to ExpressionParsertext[] goes here, if %array \ */\
(yy_c_buf_p) = yy_cp;
/* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */
#define YY_NUM_RULES 91
#define YY_END_OF_BUFFER 92
/* This struct is not used in this scanner,
@ -5669,20 +5586,7 @@ static yy_state_type yy_last_accepting_state;
static char *yy_last_accepting_cpos;
extern int ExpressionParser_flex_debug;
int ExpressionParser_flex_debug = 1;
static yyconst flex_int16_t yy_rule_linenum[91] =
{ 0,
144, 145, 147, 149, 151, 152, 153, 154, 155, 156,
158, 159, 161, 162, 163, 164, 165, 166, 167, 168,
170, 172, 173, 174, 175, 176, 177, 179, 180, 181,
183, 184, 185, 186, 188, 189, 190, 191, 193, 195,
197, 198, 199, 200, 201, 202, 203, 204, 208, 209,
210, 211, 212, 214, 216, 217, 218, 219, 221, 222,
223, 224, 226, 227, 228, 229, 231, 232, 234, 235,
237, 238, 239, 240, 241, 243, 244, 245, 246, 248,
249, 250, 251, 253, 254, 256, 257, 258, 260, 275
} ;
int ExpressionParser_flex_debug = 0;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed.
@ -5718,7 +5622,7 @@ extern int column;
/* the manual says "somewhat more optimized" */
/* no support for include files is planned */
/* UTF-8 unicode regular expressions. */
#line 5722 "lex.ExpressionParser.c"
#line 5626 "lex.ExpressionParser.c"
#define INITIAL 0
@ -5727,28 +5631,15 @@ extern int column;
* down here because we want the user's section 1 to have been scanned first.
* The user has a chance to override it with an option.
*/
/* %if-c-only */
#include <unistd.h>
/* %endif */
/* %if-c++-only */
/* %endif */
#endif
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
/* %if-c-only Reentrant structure and macros (non-C++). */
/* %if-reentrant */
/* %if-c-only */
static int yy_init_globals (void );
/* %endif */
/* %if-reentrant */
/* %endif */
/* %endif End reentrant structures and macros. */
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
@ -5778,9 +5669,6 @@ int ExpressionParserget_lineno (void );
void ExpressionParserset_lineno (int line_number );
/* %if-bison-bridge */
/* %endif */
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
@ -5793,12 +5681,6 @@ extern int ExpressionParserwrap (void );
#endif
#endif
/* %not-for-header */
/* %ok-for-header */
/* %endif */
#ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int );
#endif
@ -5808,23 +5690,15 @@ static int yy_flex_strlen (yyconst char * );
#endif
#ifndef YY_NO_INPUT
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
#ifdef __cplusplus
static int yyinput (void );
#else
static int input (void );
#endif
/* %ok-for-header */
/* %endif */
#endif
/* %if-c-only */
/* %endif */
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
@ -5837,14 +5711,10 @@ static int input (void );
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
/* %if-c-only Standard (non-C++) definition */
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO do { if (fwrite( ExpressionParsertext, ExpressionParserleng, 1, ExpressionParserout )) {} } while (0)
/* %endif */
/* %if-c++-only C++ definition */
/* %endif */
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@ -5852,7 +5722,6 @@ static int input (void );
*/
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
/* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
@ -5881,8 +5750,6 @@ static int input (void );
} \
}\
\
/* %if-c++-only C++ definition \ */\
/* %endif */
#endif
@ -5901,39 +5768,20 @@ static int input (void );
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
/* %if-c-only */
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
/* %endif */
/* %if-c++-only */
/* %endif */
#endif
/* %if-tables-serialization structures and prototypes */
/* %not-for-header */
/* %ok-for-header */
/* %not-for-header */
/* %tables-yydmap generated elements */
/* %endif */
/* end tables serialization structures and prototypes */
/* %ok-for-header */
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL_IS_OURS 1
/* %if-c-only Standard (non-C++) definition */
extern int ExpressionParserlex (void);
#define YY_DECL int ExpressionParserlex (void)
/* %endif */
/* %if-c++-only C++ definition */
/* %endif */
#endif /* !YY_DECL */
/* Code executed at the beginning of each rule, after ExpressionParsertext and ExpressionParserleng
@ -5948,12 +5796,9 @@ extern int ExpressionParserlex (void);
#define YY_BREAK break;
#endif
/* %% [6.0] YY_RULE_SETUP definition goes here */
#define YY_RULE_SETUP \
YY_USER_ACTION
/* %not-for-header */
/** The main scanner function which does all the work.
*/
YY_DECL
@ -5962,11 +5807,10 @@ YY_DECL
register char *yy_cp, *yy_bp;
register int yy_act;
/* %% [7.0] user's declarations go here */
#line 142 "ExpressionParser.l"
#line 5970 "lex.ExpressionParser.c"
#line 5814 "lex.ExpressionParser.c"
if ( !(yy_init) )
{
@ -5980,18 +5824,10 @@ YY_DECL
(yy_start) = 1; /* first start state */
if ( ! ExpressionParserin )
/* %if-c-only */
ExpressionParserin = stdin;
/* %endif */
/* %if-c++-only */
/* %endif */
if ( ! ExpressionParserout )
/* %if-c-only */
ExpressionParserout = stdout;
/* %endif */
/* %if-c++-only */
/* %endif */
if ( ! YY_CURRENT_BUFFER ) {
ExpressionParserensure_buffer_stack ();
@ -6004,7 +5840,6 @@ YY_DECL
while ( 1 ) /* loops until end-of-file is reached */
{
/* %% [8.0] yymore()-related code goes here */
yy_cp = (yy_c_buf_p);
/* Support of ExpressionParsertext. */
@ -6015,7 +5850,6 @@ YY_DECL
*/
yy_bp = yy_cp;
/* %% [9.0] code to set up and find next match goes here */
yy_current_state = (yy_start);
yy_match:
do
@ -6040,35 +5874,14 @@ yy_match:
yy_current_state = (yy_last_accepting_state);
yy_find_action:
/* %% [10.0] code to find the action number goes here */
yy_act = yy_accept[yy_current_state];
YY_DO_BEFORE_ACTION;
/* %% [11.0] code for ExpressionParserlineno update goes here */
do_action: /* This label is used only to access EOF actions. */
/* %% [12.0] debug code goes here */
if ( ExpressionParser_flex_debug )
{
if ( yy_act == 0 )
fprintf( stderr, "--scanner backing up\n" );
else if ( yy_act < 91 )
fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
(long)yy_rule_linenum[yy_act], ExpressionParsertext );
else if ( yy_act == 91 )
fprintf( stderr, "--accepting default rule (\"%s\")\n",
ExpressionParsertext );
else if ( yy_act == 92 )
fprintf( stderr, "--(end of buffer or a NUL)\n" );
else
fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
}
switch ( yy_act )
{ /* beginning of action switch */
/* %% [13.0] actions go here */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = (yy_hold_char);
@ -6546,7 +6359,7 @@ YY_RULE_SETUP
#line 276 "ExpressionParser.l"
ECHO;
YY_BREAK
#line 6550 "lex.ExpressionParser.c"
#line 6363 "lex.ExpressionParser.c"
case YY_STATE_EOF(INITIAL):
yyterminate();
@ -6613,7 +6426,6 @@ case YY_STATE_EOF(INITIAL):
else
{
/* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
yy_cp = (yy_last_accepting_cpos);
yy_current_state = (yy_last_accepting_state);
goto yy_find_action;
@ -6680,14 +6492,6 @@ case YY_STATE_EOF(INITIAL):
} /* end of action switch */
} /* end of scanning one token */
} /* end of ExpressionParserlex */
/* %ok-for-header */
/* %if-c++-only */
/* %not-for-header */
/* %ok-for-header */
/* %endif */
/* yy_get_next_buffer - try to read in a new buffer
*
@ -6696,11 +6500,7 @@ case YY_STATE_EOF(INITIAL):
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
*/
/* %if-c-only */
static int yy_get_next_buffer (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
register char *source = (yytext_ptr);
@ -6834,23 +6634,15 @@ static int yy_get_next_buffer (void)
/* yy_get_previous_state - get the state just before the EOB char was reached */
/* %if-c-only */
/* %not-for-header */
static yy_state_type yy_get_previous_state (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
register yy_state_type yy_current_state;
register char *yy_cp;
/* %% [15.0] code to get the start state into yy_current_state goes here */
yy_current_state = (yy_start);
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
/* %% [16.0] code to find the next state goes here */
register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] )
{
@ -6874,15 +6666,10 @@ static int yy_get_next_buffer (void)
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
/* %if-c-only */
static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
/* %endif */
/* %if-c++-only */
/* %endif */
{
register int yy_is_jam;
/* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
register char *yy_cp = (yy_c_buf_p);
register char *yy_cp = (yy_c_buf_p);
register YY_CHAR yy_c = 1;
if ( yy_accept[yy_current_state] )
@ -6902,11 +6689,6 @@ static int yy_get_next_buffer (void)
return yy_is_jam ? 0 : yy_current_state;
}
/* %if-c-only */
/* %endif */
/* %if-c-only */
#ifndef YY_NO_INPUT
#ifdef __cplusplus
static int yyinput (void)
@ -6914,9 +6696,6 @@ static int yy_get_next_buffer (void)
static int input (void)
#endif
/* %endif */
/* %if-c++-only */
/* %endif */
{
int c;
@ -6980,24 +6759,16 @@ static int yy_get_next_buffer (void)
*(yy_c_buf_p) = '\0'; /* preserve ExpressionParsertext */
(yy_hold_char) = *++(yy_c_buf_p);
/* %% [19.0] update BOL and ExpressionParserlineno */
return c;
}
/* %if-c-only */
#endif /* ifndef YY_NO_INPUT */
/* %endif */
/** Immediately switch to a different input stream.
* @param input_file A readable stream.
*
* @note This function does not reset the start condition to @c INITIAL .
*/
/* %if-c-only */
void ExpressionParserrestart (FILE * input_file )
/* %endif */
/* %if-c++-only */
/* %endif */
{
if ( ! YY_CURRENT_BUFFER ){
@ -7014,11 +6785,7 @@ static int yy_get_next_buffer (void)
* @param new_buffer The new input buffer.
*
*/
/* %if-c-only */
void ExpressionParser_switch_to_buffer (YY_BUFFER_STATE new_buffer )
/* %endif */
/* %if-c++-only */
/* %endif */
{
/* TODO. We should be able to replace this entire function body
@ -7049,11 +6816,7 @@ static int yy_get_next_buffer (void)
(yy_did_buffer_switch_on_eof) = 1;
}
/* %if-c-only */
static void ExpressionParser_load_buffer_state (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
(yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
@ -7067,11 +6830,7 @@ static void ExpressionParser_load_buffer_state (void)
*
* @return the allocated buffer state.
*/
/* %if-c-only */
YY_BUFFER_STATE ExpressionParser_create_buffer (FILE * file, int size )
/* %endif */
/* %if-c++-only */
/* %endif */
{
YY_BUFFER_STATE b;
@ -7099,11 +6858,7 @@ static void ExpressionParser_load_buffer_state (void)
* @param b a buffer created with ExpressionParser_create_buffer()
*
*/
/* %if-c-only */
void ExpressionParser_delete_buffer (YY_BUFFER_STATE b )
/* %endif */
/* %if-c++-only */
/* %endif */
{
if ( ! b )
@ -7118,22 +6873,11 @@ static void ExpressionParser_load_buffer_state (void)
ExpressionParserfree((void *) b );
}
/* %if-c-only */
/* %endif */
/* %if-c++-only */
/* %endif */
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a ExpressionParserrestart() or at EOF.
*/
/* %if-c-only */
static void ExpressionParser_init_buffer (YY_BUFFER_STATE b, FILE * file )
/* %endif */
/* %if-c++-only */
/* %endif */
{
int oerrno = errno;
@ -7152,13 +6896,8 @@ static void ExpressionParser_load_buffer_state (void)
b->yy_bs_column = 0;
}
/* %if-c-only */
b->yy_is_interactive = 0;
/* %endif */
/* %if-c++-only */
/* %endif */
errno = oerrno;
}
@ -7166,11 +6905,7 @@ static void ExpressionParser_load_buffer_state (void)
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
*
*/
/* %if-c-only */
void ExpressionParser_flush_buffer (YY_BUFFER_STATE b )
/* %endif */
/* %if-c++-only */
/* %endif */
{
if ( ! b )
return;
@ -7193,18 +6928,13 @@ static void ExpressionParser_load_buffer_state (void)
ExpressionParser_load_buffer_state( );
}
/* %if-c-or-c++ */
/** Pushes the new state onto the stack. The new state becomes
* the current state. This function will allocate the stack
* if necessary.
* @param new_buffer The new state.
*
*/
/* %if-c-only */
void ExpressionParserpush_buffer_state (YY_BUFFER_STATE new_buffer )
/* %endif */
/* %if-c++-only */
/* %endif */
{
if (new_buffer == NULL)
return;
@ -7229,18 +6959,12 @@ void ExpressionParserpush_buffer_state (YY_BUFFER_STATE new_buffer )
ExpressionParser_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
/* %endif */
/* %if-c-or-c++ */
/** Removes and deletes the top of the stack, if present.
* The next element becomes the new top.
*
*/
/* %if-c-only */
void ExpressionParserpop_buffer_state (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
if (!YY_CURRENT_BUFFER)
return;
@ -7255,17 +6979,11 @@ void ExpressionParserpop_buffer_state (void)
(yy_did_buffer_switch_on_eof) = 1;
}
}
/* %endif */
/* %if-c-or-c++ */
/* Allocates the stack if it does not exist.
* Guarantees space for at least one push.
*/
/* %if-c-only */
static void ExpressionParserensure_buffer_stack (void)
/* %endif */
/* %if-c++-only */
/* %endif */
{
int num_to_alloc;
@ -7307,9 +7025,7 @@ static void ExpressionParserensure_buffer_stack (void)
(yy_buffer_stack_max) = num_to_alloc;
}
}
/* %endif */
/* %if-c-only */
/** Setup the input buffer state to scan directly from a user-specified character buffer.
* @param base the character buffer
* @param size the size in bytes of the character buffer
@ -7344,9 +7060,7 @@ YY_BUFFER_STATE ExpressionParser_scan_buffer (char * base, yy_size_t size )
return b;
}
/* %endif */
/* %if-c-only */
/** Setup the input buffer state to scan a string. The next call to ExpressionParserlex() will
* scan from a @e copy of @a str.
* @param yystr a NUL-terminated string to scan
@ -7360,9 +7074,7 @@ YY_BUFFER_STATE ExpressionParser_scan_string (yyconst char * yystr )
return ExpressionParser_scan_bytes(yystr,strlen(yystr) );
}
/* %endif */
/* %if-c-only */
/** Setup the input buffer state to scan the given bytes. The next call to ExpressionParserlex() will
* scan from a @e copy of @a bytes.
* @param yybytes the byte buffer to scan
@ -7399,21 +7111,16 @@ YY_BUFFER_STATE ExpressionParser_scan_bytes (yyconst char * yybytes, int _yyby
return b;
}
/* %endif */
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
/* %if-c-only */
static void yy_fatal_error (yyconst char* msg )
{
(void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
/* %endif */
/* %if-c++-only */
/* %endif */
/* Redefine yyless() so it works in section 3 code. */
@ -7434,10 +7141,6 @@ static void yy_fatal_error (yyconst char* msg )
/* Accessor methods (get/set functions) to struct members. */
/* %if-c-only */
/* %if-reentrant */
/* %endif */
/** Get the current line number.
*
*/
@ -7480,9 +7183,6 @@ char *ExpressionParserget_text (void)
return ExpressionParsertext;
}
/* %if-reentrant */
/* %endif */
/** Set the current line number.
* @param line_number
*
@ -7519,14 +7219,6 @@ void ExpressionParserset_debug (int bdebug )
ExpressionParser_flex_debug = bdebug ;
}
/* %endif */
/* %if-reentrant */
/* %if-bison-bridge */
/* %endif */
/* %endif if-c-only */
/* %if-c-only */
static int yy_init_globals (void)
{
/* Initialization is the same as for the non-reentrant scanner.
@ -7554,9 +7246,7 @@ static int yy_init_globals (void)
*/
return 0;
}
/* %endif */
/* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
/* ExpressionParserlex_destroy is for both reentrant and non-reentrant scanners. */
int ExpressionParserlex_destroy (void)
{
@ -7576,11 +7266,8 @@ int ExpressionParserlex_destroy (void)
* ExpressionParserlex() is called, initialization will occur. */
yy_init_globals( );
/* %if-reentrant */
/* %endif */
return 0;
}
/* %endif */
/*
* Internal utility routines.
@ -7628,11 +7315,6 @@ void ExpressionParserfree (void * ptr )
free( (char *) ptr ); /* see ExpressionParserrealloc() for (char *) cast */
}
/* %if-tables-serialization definitions */
/* %define-yytables The name for this specific scanner's tables. */
#define YYTABLES_NAME "yytables"
/* %endif */
/* %ok-for-header */
#line 276 "ExpressionParser.l"