#include "stdint.h"
#endif
-
-
#define YY_INT_ALIGNED short int
/* A lexical scanner generated by flex */
-
-
-
-
-
-
-
-
-
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
#define FLEX_BETA
#endif
-
-
-
-
-
-
-
-
-
-
-
-
/* The c++ scanner is a mess. The FlexLexer.h header file relies on the
* following macro. This is required in order to pass the c++-multiple-scanners
* test in the regression suite. We get reports that it breaks inheritance.
*/
#define yyFlexLexer stepFlexLexer
-
-
-
-
-
-
#ifdef yyalloc
#define stepalloc_ALREADY_DEFINED
#else
#define yyalloc stepalloc
#endif
-
#ifdef yyrealloc
#define steprealloc_ALREADY_DEFINED
#else
#define yyrealloc steprealloc
#endif
-
#ifdef yyfree
#define stepfree_ALREADY_DEFINED
#else
#define yyfree stepfree
#endif
-
-
-
-
-
-
/* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */
#endif /* ! FLEXINT_H */
-
/* begin standard C++ headers. */
#include <iostream>
#include <errno.h>
/* Returned upon end-of-file. */
#define YY_NULL 0
-
/* Promotes a possibly negative, possibly signed char to an
* integer in range [0..255] for use as an array index.
*/
#define YY_SC_TO_UI(c) ((YY_CHAR) (c))
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
/* 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
* definition of BEGIN.
#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
-
/* Size of default input buffer. */
#ifndef YY_BUF_SIZE
#ifdef __ia64__
#endif /* __ia64__ */
#endif
-
/* The state buf must be large enough to hold one state per character in the main buffer.
*/
#define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
-
-
#ifndef YY_TYPEDEF_YY_BUFFER_STATE
#define YY_TYPEDEF_YY_BUFFER_STATE
typedef struct yy_buffer_state *YY_BUFFER_STATE;
extern int yyleng;
-
-
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
while ( 0 )
#define unput(c) yyunput( c, (yytext_ptr) )
-
#ifndef YY_STRUCT_YY_BUFFER_STATE
#define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state
std::streambuf* yy_input_file;
-
char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */
int yy_bs_lineno; /**< The line count. */
int yy_bs_column; /**< The column count. */
-
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
};
#endif /* !YY_STRUCT_YY_BUFFER_STATE */
-
-
-
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
* "scanner state".
*/
#define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
-
-
-
void *yyalloc ( yy_size_t );
void *yyrealloc ( void *, yy_size_t );
void yyfree ( void * );
-
#define yy_new_buffer yy_create_buffer
#define yy_set_interactive(is_interactive) \
{ \
}
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
-
/* Begin user sect3 */
#define YY_SKIP_YYWRAP
typedef flex_uint8_t YY_CHAR;
#define yytext_ptr yytext
#define YY_INTERACTIVE
-
#include <FlexLexer.h>
-int yyFlexLexer::yywrap() { return 1; }
+inline int yyFlexLexer::yywrap() { return 1; }
int yyFlexLexer::yylex()
{
LexerError( "yyFlexLexer::yylex invoked but %option yyclass used" );
#define YY_DECL int step::scanner::yylex()
-
-
-
-
-
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
156, 156
} ;
-
#define YY_TRAILING_MASK 0x2000
#define YY_TRAILING_HEAD_MASK 0x4000
#define REJECT \
goto find_rule; \
}
-
#define yymore() ((yy_more_flag) = 1)
#define YY_MORE_ADJ (yy_more_len)
#define YY_RESTORE_YY_MORE_OFFSET
// disable GCC warnings in flex code
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wunused-function"
-#if (__GNUC__ > 5)
-#pragma GCC diagnostic ignored "-Wmisleading-indentation"
-#endif
#endif
-
-
-
#define INITIAL 0
#define Com 1
#define End 2
#define Text 3
-
-
-
-
#ifndef YY_NO_UNISTD_H
/* Special case for "unistd.h", since it is non-ANSI. We include it way
* down here because we want the user's section 1 to have been scanned first.
#include <unistd.h>
#endif
-
-
-
#ifndef YY_EXTRA_TYPE
#define YY_EXTRA_TYPE void *
#endif
-
-
-
-
#ifndef yytext_ptr
static void yy_flex_strncpy ( char *, const char *, int );
#endif
#endif
-
-
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
#endif /* __ia64__ */
#endif
-
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
#define ECHO LexerOutput( yytext, yyleng )
#endif
-
-
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#endif
-
-
/* No semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
#define yyterminate() return YY_NULL
#endif
-
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
-
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) LexerError( msg )
#endif
-
-
/* end tables serialization structures and prototypes */
-
-
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#define YY_DECL int yyFlexLexer::yylex()
#endif /* !YY_DECL */
-
/* Code executed at the beginning of each rule, after yytext and yyleng
* have been set up.
*/
#define YY_USER_ACTION
#endif
-
-
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK /*LINTED*/break;
#endif
-
-
#define YY_RULE_SETUP \
YY_USER_ACTION
-
/** The main scanner function which does all the work.
*/
YY_DECL
char *yy_cp, *yy_bp;
int yy_act;
-
-
-
-
-
-
-
-
-
if ( !(yy_init) )
{
(yy_init) = 1;
YY_USER_INIT;
#endif
-
/* Create the reject buffer large enough to save one state per allowed character. */
if ( ! (yy_state_buf) )
(yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
- if ( ! (yy_state_buf) )
- YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
-
+ if ( ! (yy_state_buf) )
+ YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
if ( ! (yy_start) )
(yy_start) = 1; /* first start state */
{
-
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
(yy_more_len) = 0;
YY_DO_BEFORE_ACTION;
-
-
do_action: /* This label is used only to access EOF actions. */
-
switch ( yy_act )
{ /* beginning of action switch */
case 1:
} /* end of user's declarations */
} /* end of yylex */
-
/* The contents of this function are C++ specific, so the () macro is not used.
* This constructor simply maintains backward compatibility.
* DEPRECATED
yy_buffer_stack_top = 0;
yy_buffer_stack_max = 0;
-
-
yy_state_buf = new yy_state_type[YY_STATE_BUF_SIZE];
}
(void) yyout.write( buf, size );
}
-
-
/* yy_get_next_buffer - try to read in a new buffer
*
* Returns a code representing an action:
return ret_val;
}
-
/* yy_get_previous_state - get the state just before the EOB char was reached */
yy_state_type yyFlexLexer::yy_get_previous_state()
(yy_state_ptr) = (yy_state_buf);
*(yy_state_ptr)++ = yy_current_state;
-
for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
{
YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 50);
return yy_current_state;
}
-
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
if ( ! yy_is_jam )
*(yy_state_ptr)++ = yy_current_state;
- return yy_is_jam ? 0 : yy_current_state;
+ return yy_is_jam ? 0 : yy_current_state;
}
-
#ifndef YY_NO_UNPUT
void yyFlexLexer::yyunput( int c, char* yy_bp)
{
*--yy_cp = (char) c;
-
-
(yytext_ptr) = yy_bp;
(yy_hold_char) = *yy_cp;
(yy_c_buf_p) = yy_cp;
*(yy_c_buf_p) = '\0'; /* preserve yytext */
(yy_hold_char) = *++(yy_c_buf_p);
-
return c;
}
(yy_did_buffer_switch_on_eof) = 1;
}
-
void yyFlexLexer::yy_load_buffer_state()
{
(yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
yyfree( (void *) b );
}
-
/* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer,
* such as during a yyrestart() or at EOF.
(yy_did_buffer_switch_on_eof) = 1;
}
-
/** Removes and deletes the top of the stack, if present.
* The next element becomes the new top.
*
}
}
-
/* Allocates the stack if it does not exist.
* Guarantees space for at least one push.
*/
if ( ! (yy_buffer_stack) )
YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
-
memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
(yy_buffer_stack_max) = num_to_alloc;
}
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
void yyFlexLexer::yy_push_state( int _new_state )
{
if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) )
BEGIN(_new_state);
}
-
-
-
void yyFlexLexer::yy_pop_state()
{
if ( --(yy_start_stack_ptr) < 0 )
BEGIN((yy_start_stack)[(yy_start_stack_ptr)]);
}
-
-
-
int yyFlexLexer::yy_top_state()
{
return (yy_start_stack)[(yy_start_stack_ptr) - 1];
}
-
#ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2
#endif
} \
while ( 0 )
-
-
/* Accessor methods (get/set functions) to struct members. */
-
-
-
-
-
-
-
/*
* Internal utility routines.
*/
-
-
#ifndef yytext_ptr
static void yy_flex_strncpy (char* s1, const char * s2, int n )
{
}
#endif
-
-
#ifdef YY_NEED_STRLEN
static int yy_flex_strlen (const char * s )
{
}
#endif
-
-
void *yyalloc (yy_size_t size )
{
return malloc(size);
}
-
-
void *yyrealloc (void * ptr, yy_size_t size )
{
return realloc(ptr, size);
}
-
-
void yyfree (void * ptr )
{
free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
}
-
#define YYTABLES_NAME "yytables"
-
-
-
-
-
-
-
step::scanner::scanner(StepFile_ReadData* theDataModel, std::istream* in, std::ostream* out)
: stepFlexLexer(in, out), myDataModel(theDataModel)
{