1
0
Fork 0

removed debug flag

This commit is contained in:
Jan Steemann 2012-09-28 08:58:30 +02:00
parent c7b2c506af
commit fe8ba2357c
2 changed files with 6 additions and 341 deletions

View File

@ -43,14 +43,6 @@
/* A lexical scanner generated by flex */ /* A lexical scanner generated by flex */
/* %not-for-header */
/* %if-c-only */
/* %if-not-reentrant */
/* %endif */
/* %endif */
/* %ok-for-header */
#define FLEX_SCANNER #define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 5 #define YY_FLEX_MINOR_VERSION 5
@ -59,32 +51,16 @@
#define FLEX_BETA #define FLEX_BETA
#endif #endif
/* %if-c++-only */
/* %endif */
/* %if-c-only */
/* %endif */
/* %if-c-only */
/* %endif */
/* First, we deal with platform-specific or compiler-specific issues. */ /* First, we deal with platform-specific or compiler-specific issues. */
/* begin standard C headers. */ /* begin standard C headers. */
/* %if-c-only */
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
/* %endif */
/* %if-tables-serialization */
/* %endif */
/* end standard C headers. */ /* end standard C headers. */
/* %if-c-or-c++ */
/* flex integer type definitions */ /* flex integer type definitions */
#ifndef FLEXINT_H #ifndef FLEXINT_H
@ -115,6 +91,7 @@ typedef int flex_int32_t;
typedef unsigned char flex_uint8_t; typedef unsigned char flex_uint8_t;
typedef unsigned short int flex_uint16_t; typedef unsigned short int flex_uint16_t;
typedef unsigned int flex_uint32_t; typedef unsigned int flex_uint32_t;
#endif /* ! C99 */
/* Limits of integral types. */ /* Limits of integral types. */
#ifndef INT8_MIN #ifndef INT8_MIN
@ -145,15 +122,8 @@ typedef unsigned int flex_uint32_t;
#define UINT32_MAX (4294967295U) #define UINT32_MAX (4294967295U)
#endif #endif
#endif /* ! C99 */
#endif /* ! FLEXINT_H */ #endif /* ! FLEXINT_H */
/* %endif */
/* %if-c++-only */
/* %endif */
#ifdef __cplusplus #ifdef __cplusplus
/* The "const" storage-class-modifier is valid. */ /* The "const" storage-class-modifier is valid. */
@ -175,13 +145,8 @@ typedef unsigned int flex_uint32_t;
#define yyconst #define yyconst
#endif #endif
/* %not-for-header */
/* Returned upon end-of-file. */ /* Returned upon end-of-file. */
#define YY_NULL 0 #define YY_NULL 0
/* %ok-for-header */
/* %not-for-header */
/* Promotes a possibly negative, possibly signed char to an unsigned /* Promotes a possibly negative, possibly signed char to an unsigned
* integer for use as an array index. If the signed char is negative, * integer for use as an array index. If the signed char is negative,
@ -189,9 +154,6 @@ typedef unsigned int flex_uint32_t;
* double cast. * double cast.
*/ */
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
/* %ok-for-header */
/* %if-reentrant */
/* An opaque pointer. */ /* An opaque pointer. */
#ifndef YY_TYPEDEF_YY_SCANNER_T #ifndef YY_TYPEDEF_YY_SCANNER_T
@ -210,11 +172,6 @@ typedef void* yyscan_t;
#define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
#define yy_flex_debug yyg->yy_flex_debug_r #define yy_flex_debug yyg->yy_flex_debug_r
/* %endif */
/* %if-not-reentrant */
/* %endif */
/* Enter a start condition. This macro really ought to take a parameter, /* 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 * but we do it the disgusting crufty way forced on us by the ()-less
* definition of BEGIN. * definition of BEGIN.
@ -238,15 +195,7 @@ typedef void* yyscan_t;
/* Size of default input buffer. */ /* Size of default input buffer. */
#ifndef YY_BUF_SIZE #ifndef YY_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k.
* Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
* Ditto for the __ia64__ case accordingly.
*/
#define YY_BUF_SIZE 32768
#else
#define YY_BUF_SIZE 16384 #define YY_BUF_SIZE 16384
#endif /* __ia64__ */
#endif #endif
/* The state buf must be large enough to hold one state per character in the main buffer. /* The state buf must be large enough to hold one state per character in the main buffer.
@ -258,14 +207,6 @@ typedef void* yyscan_t;
typedef struct yy_buffer_state *YY_BUFFER_STATE; typedef struct yy_buffer_state *YY_BUFFER_STATE;
#endif #endif
/* %if-not-reentrant */
/* %endif */
/* %if-c-only */
/* %if-not-reentrant */
/* %endif */
/* %endif */
#define EOB_ACT_CONTINUE_SCAN 0 #define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1 #define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2 #define EOB_ACT_LAST_MATCH 2
@ -297,12 +238,7 @@ typedef size_t yy_size_t;
#define YY_STRUCT_YY_BUFFER_STATE #define YY_STRUCT_YY_BUFFER_STATE
struct yy_buffer_state struct yy_buffer_state
{ {
/* %if-c-only */
FILE *yy_input_file; FILE *yy_input_file;
/* %endif */
/* %if-c++-only */
/* %endif */
char *yy_ch_buf; /* input buffer */ char *yy_ch_buf; /* input buffer */
char *yy_buf_pos; /* current position in input buffer */ char *yy_buf_pos; /* current position in input buffer */
@ -363,15 +299,6 @@ struct yy_buffer_state
}; };
#endif /* !YY_STRUCT_YY_BUFFER_STATE */ #endif /* !YY_STRUCT_YY_BUFFER_STATE */
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
/* %if-not-reentrant */
/* %endif */
/* %ok-for-header */
/* %endif */
/* We provide macros for accessing buffer states in case in the /* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general * future we want to put the buffer states in a more general
* "scanner state". * "scanner state".
@ -387,15 +314,6 @@ struct yy_buffer_state
*/ */
#define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
/* %if-c-only Standard (non-C++) definition */
/* %if-not-reentrant */
/* %not-for-header */
/* %ok-for-header */
/* %endif */
void tri_v8_restart (FILE *input_file ,yyscan_t yyscanner ); void tri_v8_restart (FILE *input_file ,yyscan_t yyscanner );
void tri_v8__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner ); void tri_v8__switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
YY_BUFFER_STATE tri_v8__create_buffer (FILE *file,int size ,yyscan_t yyscanner ); YY_BUFFER_STATE tri_v8__create_buffer (FILE *file,int size ,yyscan_t yyscanner );
@ -414,8 +332,6 @@ YY_BUFFER_STATE tri_v8__scan_buffer (char *base,yy_size_t size ,yyscan_t yyscann
YY_BUFFER_STATE tri_v8__scan_string (yyconst char *yy_str ,yyscan_t yyscanner ); YY_BUFFER_STATE tri_v8__scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
YY_BUFFER_STATE tri_v8__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner ); YY_BUFFER_STATE tri_v8__scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
/* %endif */
void *tri_v8_alloc (yy_size_t ,yyscan_t yyscanner ); void *tri_v8_alloc (yy_size_t ,yyscan_t yyscanner );
void *tri_v8_realloc (void *,yy_size_t ,yyscan_t yyscanner ); void *tri_v8_realloc (void *,yy_size_t ,yyscan_t yyscanner );
void tri_v8_free (void * ,yyscan_t yyscanner ); void tri_v8_free (void * ,yyscan_t yyscanner );
@ -444,42 +360,32 @@ void tri_v8_free (void * ,yyscan_t yyscanner );
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
/* Begin user sect3 */ /* Begin user sect3 */
#define tri_v8_wrap(n) 1 #define tri_v8_wrap(n) 1
#define YY_SKIP_YYWRAP #define YY_SKIP_YYWRAP
#define FLEX_DEBUG
typedef unsigned char YY_CHAR; typedef unsigned char YY_CHAR;
typedef int yy_state_type; typedef int yy_state_type;
#define yytext_ptr yytext_r #define yytext_ptr yytext_r
/* %if-c-only Standard (non-C++) definition */
static yy_state_type yy_get_previous_state (yyscan_t yyscanner ); static yy_state_type yy_get_previous_state (yyscan_t yyscanner );
static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner); static yy_state_type yy_try_NUL_trans (yy_state_type current_state ,yyscan_t yyscanner);
static int yy_get_next_buffer (yyscan_t yyscanner ); static int yy_get_next_buffer (yyscan_t yyscanner );
static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner ); static void yy_fatal_error (yyconst char msg[] ,yyscan_t yyscanner );
/* %endif */
/* Done after the current pattern has been matched and before the /* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext. * corresponding action - sets up yytext.
*/ */
#define YY_DO_BEFORE_ACTION \ #define YY_DO_BEFORE_ACTION \
yyg->yytext_ptr = yy_bp; \ yyg->yytext_ptr = yy_bp; \
/* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\
yyleng = (size_t) (yy_cp - yy_bp); \ yyleng = (size_t) (yy_cp - yy_bp); \
yyg->yy_hold_char = *yy_cp; \ yyg->yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \ *yy_cp = '\0'; \
/* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\
yyg->yy_c_buf_p = yy_cp; yyg->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 14 #define YY_NUM_RULES 14
#define YY_END_OF_BUFFER 15 #define YY_END_OF_BUFFER 15
/* This struct is not used in this scanner, /* This struct is not used in this scanner,
@ -592,12 +498,6 @@ static yyconst flex_int16_t yy_chk[130] =
42, 42, 42, 42, 42, 42, 42, 42, 42 42, 42, 42, 42, 42, 42, 42, 42, 42
} ; } ;
static yyconst flex_int16_t yy_rule_linenum[14] =
{ 0,
81, 85, 89, 97, 105, 113, 117, 121, 125, 129,
133, 142, 145
} ;
/* The intent behind this definition is that it'll catch /* The intent behind this definition is that it'll catch
* any uses of REJECT which flex missed. * any uses of REJECT which flex missed.
*/ */
@ -635,18 +535,11 @@ struct jsonData {
* down here because we want the user's section 1 to have been scanned first. * 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. * The user has a chance to override it with an option.
*/ */
/* %if-c-only */
#include <unistd.h> #include <unistd.h>
/* %endif */
/* %if-c++-only */
/* %endif */
#endif #endif
#define YY_EXTRA_TYPE struct jsonData #define YY_EXTRA_TYPE struct jsonData
/* %if-c-only Reentrant structure and macros (non-C++). */
/* %if-reentrant */
/* Holds the entire state of the reentrant scanner. */ /* Holds the entire state of the reentrant scanner. */
struct yyguts_t struct yyguts_t
{ {
@ -681,22 +574,12 @@ struct yyguts_t
}; /* end struct yyguts_t */ }; /* end struct yyguts_t */
/* %if-c-only */
static int yy_init_globals (yyscan_t yyscanner ); static int yy_init_globals (yyscan_t yyscanner );
/* %endif */
/* %if-reentrant */
int tri_v8_lex_init (yyscan_t* scanner); int tri_v8_lex_init (yyscan_t* scanner);
int tri_v8_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner); int tri_v8_lex_init_extra (YY_EXTRA_TYPE user_defined,yyscan_t* scanner);
/* %endif */
/* %endif End reentrant structures and macros. */
/* Accessor methods to globals. /* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */ These are made visible to non-reentrant scanners for convenience. */
@ -726,9 +609,6 @@ int tri_v8_get_lineno (yyscan_t yyscanner );
void tri_v8_set_lineno (int line_number ,yyscan_t yyscanner ); void tri_v8_set_lineno (int line_number ,yyscan_t yyscanner );
/* %if-bison-bridge */
/* %endif */
/* Macros after this point can all be overridden by user definitions in /* Macros after this point can all be overridden by user definitions in
* section 1. * section 1.
*/ */
@ -741,12 +621,6 @@ extern int tri_v8_wrap (yyscan_t yyscanner );
#endif #endif
#endif #endif
/* %not-for-header */
/* %ok-for-header */
/* %endif */
#ifndef yytext_ptr #ifndef yytext_ptr
static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner); static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
#endif #endif
@ -756,43 +630,26 @@ static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
#endif #endif
#ifndef YY_NO_INPUT #ifndef YY_NO_INPUT
/* %if-c-only Standard (non-C++) definition */
/* %not-for-header */
#ifdef __cplusplus #ifdef __cplusplus
static int yyinput (yyscan_t yyscanner ); static int yyinput (yyscan_t yyscanner );
#else #else
static int input (yyscan_t yyscanner ); static int input (yyscan_t yyscanner );
#endif #endif
/* %ok-for-header */
/* %endif */
#endif #endif
/* %if-c-only */
/* %endif */
/* Amount of stuff to slurp up with each read. */ /* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE #ifndef YY_READ_BUF_SIZE
#ifdef __ia64__
/* On IA-64, the buffer size is 16k, not 8k */
#define YY_READ_BUF_SIZE 16384
#else
#define YY_READ_BUF_SIZE 8192 #define YY_READ_BUF_SIZE 8192
#endif /* __ia64__ */
#endif #endif
/* Copy whatever the last rule matched to the standard output. */ /* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO #ifndef ECHO
/* %if-c-only Standard (non-C++) definition */
/* This used to be an fputs(), but since the string might contain NUL's, /* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite(). * we now use fwrite().
*/ */
#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) #define ECHO fwrite( yytext, yyleng, 1, yyout )
/* %endif */
/* %if-c++-only C++ definition */
/* %endif */
#endif #endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@ -800,11 +657,10 @@ static int input (yyscan_t yyscanner );
*/ */
#ifndef YY_INPUT #ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \ #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 ) \ if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \ { \
int c = '*'; \ int c = '*'; \
size_t n; \ int n; \
for ( n = 0; n < max_size && \ for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \ (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \ buf[n] = (char) c; \
@ -829,8 +685,6 @@ static int input (yyscan_t yyscanner );
} \ } \
}\ }\
\ \
/* %if-c++-only C++ definition \ */\
/* %endif */
#endif #endif
@ -849,39 +703,20 @@ static int input (yyscan_t yyscanner );
/* Report a fatal error. */ /* Report a fatal error. */
#ifndef YY_FATAL_ERROR #ifndef YY_FATAL_ERROR
/* %if-c-only */
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
#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 */ /* end tables serialization structures and prototypes */
/* %ok-for-header */
/* Default declaration of generated scanner - a define so the user can /* Default declaration of generated scanner - a define so the user can
* easily add parameters. * easily add parameters.
*/ */
#ifndef YY_DECL #ifndef YY_DECL
#define YY_DECL_IS_OURS 1 #define YY_DECL_IS_OURS 1
/* %if-c-only Standard (non-C++) definition */
extern int tri_v8_lex (yyscan_t yyscanner); extern int tri_v8_lex (yyscan_t yyscanner);
#define YY_DECL int tri_v8_lex (yyscan_t yyscanner) #define YY_DECL int tri_v8_lex (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only C++ definition */
/* %endif */
#endif /* !YY_DECL */ #endif /* !YY_DECL */
/* Code executed at the beginning of each rule, after yytext and yyleng /* Code executed at the beginning of each rule, after yytext and yyleng
@ -896,12 +731,9 @@ extern int tri_v8_lex (yyscan_t yyscanner);
#define YY_BREAK break; #define YY_BREAK break;
#endif #endif
/* %% [6.0] YY_RULE_SETUP definition goes here */
#define YY_RULE_SETUP \ #define YY_RULE_SETUP \
YY_USER_ACTION YY_USER_ACTION
/* %not-for-header */
/** The main scanner function which does all the work. /** The main scanner function which does all the work.
*/ */
YY_DECL YY_DECL
@ -911,8 +743,6 @@ YY_DECL
register int yy_act; register int yy_act;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
/* %% [7.0] user's declarations go here */
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* keywords * keywords
* ----------------------------------------------------------------------------- */ * ----------------------------------------------------------------------------- */
@ -929,18 +759,10 @@ YY_DECL
yyg->yy_start = 1; /* first start state */ yyg->yy_start = 1; /* first start state */
if ( ! yyin ) if ( ! yyin )
/* %if-c-only */
yyin = stdin; yyin = stdin;
/* %endif */
/* %if-c++-only */
/* %endif */
if ( ! yyout ) if ( ! yyout )
/* %if-c-only */
yyout = stdout; yyout = stdout;
/* %endif */
/* %if-c++-only */
/* %endif */
if ( ! YY_CURRENT_BUFFER ) { if ( ! YY_CURRENT_BUFFER ) {
tri_v8_ensure_buffer_stack (yyscanner); tri_v8_ensure_buffer_stack (yyscanner);
@ -953,7 +775,6 @@ YY_DECL
while ( 1 ) /* loops until end-of-file is reached */ while ( 1 ) /* loops until end-of-file is reached */
{ {
/* %% [8.0] yymore()-related code goes here */
yy_cp = yyg->yy_c_buf_p; yy_cp = yyg->yy_c_buf_p;
/* Support of yytext. */ /* Support of yytext. */
@ -964,7 +785,6 @@ YY_DECL
*/ */
yy_bp = yy_cp; yy_bp = yy_cp;
/* %% [9.0] code to set up and find next match goes here */
yy_current_state = yyg->yy_start; yy_current_state = yyg->yy_start;
yy_match: yy_match:
do do
@ -989,35 +809,14 @@ yy_match:
yy_current_state = yyg->yy_last_accepting_state; yy_current_state = yyg->yy_last_accepting_state;
yy_find_action: yy_find_action:
/* %% [10.0] code to find the action number goes here */
yy_act = yy_accept[yy_current_state]; yy_act = yy_accept[yy_current_state];
YY_DO_BEFORE_ACTION; YY_DO_BEFORE_ACTION;
/* %% [11.0] code for yylineno update goes here */
do_action: /* This label is used only to access EOF actions. */ do_action: /* This label is used only to access EOF actions. */
/* %% [12.0] debug code goes here */
if ( yy_flex_debug )
{
if ( yy_act == 0 )
fprintf( stderr, "--scanner backing up\n" );
else if ( yy_act < 14 )
fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n",
(long)yy_rule_linenum[yy_act], yytext );
else if ( yy_act == 14 )
fprintf( stderr, "--accepting default rule (\"%s\")\n",
yytext );
else if ( yy_act == 15 )
fprintf( stderr, "--(end of buffer or a NUL)\n" );
else
fprintf( stderr, "--EOF (start condition %d)\n", YY_START );
}
switch ( yy_act ) switch ( yy_act )
{ /* beginning of action switch */ { /* beginning of action switch */
/* %% [13.0] actions go here */
case 0: /* must back up */ case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */ /* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = yyg->yy_hold_char; *yy_cp = yyg->yy_hold_char;
@ -1187,7 +986,6 @@ case YY_STATE_EOF(INITIAL):
else else
{ {
/* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */
yy_cp = yyg->yy_last_accepting_cpos; yy_cp = yyg->yy_last_accepting_cpos;
yy_current_state = yyg->yy_last_accepting_state; yy_current_state = yyg->yy_last_accepting_state;
goto yy_find_action; goto yy_find_action;
@ -1254,14 +1052,6 @@ case YY_STATE_EOF(INITIAL):
} /* end of action switch */ } /* end of action switch */
} /* end of scanning one token */ } /* end of scanning one token */
} /* end of tri_v8_lex */ } /* end of tri_v8_lex */
/* %ok-for-header */
/* %if-c++-only */
/* %not-for-header */
/* %ok-for-header */
/* %endif */
/* yy_get_next_buffer - try to read in a new buffer /* yy_get_next_buffer - try to read in a new buffer
* *
@ -1270,11 +1060,7 @@ case YY_STATE_EOF(INITIAL):
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file * EOB_ACT_END_OF_FILE - end of file
*/ */
/* %if-c-only */
static int yy_get_next_buffer (yyscan_t yyscanner) static int yy_get_next_buffer (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
@ -1409,24 +1195,16 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
/* yy_get_previous_state - get the state just before the EOB char was reached */ /* 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 (yyscan_t yyscanner) static yy_state_type yy_get_previous_state (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
register yy_state_type yy_current_state; register yy_state_type yy_current_state;
register char *yy_cp; register char *yy_cp;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
/* %% [15.0] code to get the start state into yy_current_state goes here */
yy_current_state = yyg->yy_start; yy_current_state = yyg->yy_start;
for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp ) for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->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); register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
if ( yy_accept[yy_current_state] ) if ( yy_accept[yy_current_state] )
{ {
@ -1450,15 +1228,10 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
* synopsis * synopsis
* next_state = yy_try_NUL_trans( current_state ); * 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 , yyscan_t yyscanner) static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
register int yy_is_jam; register int yy_is_jam;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */ struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
/* %% [17.0] code to find the next state, and perhaps do backing up, goes here */
register char *yy_cp = yyg->yy_c_buf_p; register char *yy_cp = yyg->yy_c_buf_p;
register YY_CHAR yy_c = 1; register YY_CHAR yy_c = 1;
@ -1479,11 +1252,6 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
return yy_is_jam ? 0 : yy_current_state; return yy_is_jam ? 0 : yy_current_state;
} }
/* %if-c-only */
/* %endif */
/* %if-c-only */
#ifndef YY_NO_INPUT #ifndef YY_NO_INPUT
#ifdef __cplusplus #ifdef __cplusplus
static int yyinput (yyscan_t yyscanner) static int yyinput (yyscan_t yyscanner)
@ -1491,9 +1259,6 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
static int input (yyscan_t yyscanner) static int input (yyscan_t yyscanner)
#endif #endif
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
int c; int c;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
@ -1558,24 +1323,16 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
*yyg->yy_c_buf_p = '\0'; /* preserve yytext */ *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
yyg->yy_hold_char = *++yyg->yy_c_buf_p; yyg->yy_hold_char = *++yyg->yy_c_buf_p;
/* %% [19.0] update BOL and yylineno */
return c; return c;
} }
/* %if-c-only */
#endif /* ifndef YY_NO_INPUT */ #endif /* ifndef YY_NO_INPUT */
/* %endif */
/** Immediately switch to a different input stream. /** Immediately switch to a different input stream.
* @param input_file A readable stream. * @param input_file A readable stream.
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
* @note This function does not reset the start condition to @c INITIAL . * @note This function does not reset the start condition to @c INITIAL .
*/ */
/* %if-c-only */
void tri_v8_restart (FILE * input_file , yyscan_t yyscanner) void tri_v8_restart (FILE * input_file , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
@ -1593,11 +1350,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
* @param new_buffer The new input buffer. * @param new_buffer The new input buffer.
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
*/ */
/* %if-c-only */
void tri_v8__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) void tri_v8__switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
@ -1629,11 +1382,7 @@ static int yy_get_next_buffer (yyscan_t yyscanner)
yyg->yy_did_buffer_switch_on_eof = 1; yyg->yy_did_buffer_switch_on_eof = 1;
} }
/* %if-c-only */
static void tri_v8__load_buffer_state (yyscan_t yyscanner) static void tri_v8__load_buffer_state (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
@ -1648,11 +1397,7 @@ static void tri_v8__load_buffer_state (yyscan_t yyscanner)
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
* @return the allocated buffer state. * @return the allocated buffer state.
*/ */
/* %if-c-only */
YY_BUFFER_STATE tri_v8__create_buffer (FILE * file, int size , yyscan_t yyscanner) YY_BUFFER_STATE tri_v8__create_buffer (FILE * file, int size , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
YY_BUFFER_STATE b; YY_BUFFER_STATE b;
@ -1680,11 +1425,7 @@ static void tri_v8__load_buffer_state (yyscan_t yyscanner)
* @param b a buffer created with tri_v8__create_buffer() * @param b a buffer created with tri_v8__create_buffer()
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
*/ */
/* %if-c-only */
void tri_v8__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) void tri_v8__delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
@ -1700,26 +1441,15 @@ static void tri_v8__load_buffer_state (yyscan_t yyscanner)
tri_v8_free((void *) b ,yyscanner ); tri_v8_free((void *) b ,yyscanner );
} }
/* %if-c-only */
#ifndef __cplusplus #ifndef __cplusplus
extern int isatty (int ); extern int isatty (int );
#endif /* __cplusplus */ #endif /* __cplusplus */
/* %endif */
/* %if-c++-only */
/* %endif */
/* Initializes or reinitializes a buffer. /* Initializes or reinitializes a buffer.
* This function is sometimes called more than once on the same buffer, * This function is sometimes called more than once on the same buffer,
* such as during a tri_v8_restart() or at EOF. * such as during a tri_v8_restart() or at EOF.
*/ */
/* %if-c-only */
static void tri_v8__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) static void tri_v8__init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
int oerrno = errno; int oerrno = errno;
@ -1739,13 +1469,8 @@ extern int isatty (int );
b->yy_bs_column = 0; b->yy_bs_column = 0;
} }
/* %if-c-only */
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
/* %endif */
/* %if-c++-only */
/* %endif */
errno = oerrno; errno = oerrno;
} }
@ -1753,11 +1478,7 @@ extern int isatty (int );
* @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
*/ */
/* %if-c-only */
void tri_v8__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) void tri_v8__flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
if ( ! b ) if ( ! b )
@ -1781,18 +1502,13 @@ extern int isatty (int );
tri_v8__load_buffer_state(yyscanner ); tri_v8__load_buffer_state(yyscanner );
} }
/* %if-c-or-c++ */
/** Pushes the new state onto the stack. The new state becomes /** Pushes the new state onto the stack. The new state becomes
* the current state. This function will allocate the stack * the current state. This function will allocate the stack
* if necessary. * if necessary.
* @param new_buffer The new state. * @param new_buffer The new state.
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
*/ */
/* %if-c-only */
void tri_v8_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) void tri_v8_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
if (new_buffer == NULL) if (new_buffer == NULL)
@ -1818,18 +1534,12 @@ void tri_v8_push_buffer_state (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner)
tri_v8__load_buffer_state(yyscanner ); tri_v8__load_buffer_state(yyscanner );
yyg->yy_did_buffer_switch_on_eof = 1; yyg->yy_did_buffer_switch_on_eof = 1;
} }
/* %endif */
/* %if-c-or-c++ */
/** Removes and deletes the top of the stack, if present. /** Removes and deletes the top of the stack, if present.
* The next element becomes the new top. * The next element becomes the new top.
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
*/ */
/* %if-c-only */
void tri_v8_pop_buffer_state (yyscan_t yyscanner) void tri_v8_pop_buffer_state (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
if (!YY_CURRENT_BUFFER) if (!YY_CURRENT_BUFFER)
@ -1845,17 +1555,11 @@ void tri_v8_pop_buffer_state (yyscan_t yyscanner)
yyg->yy_did_buffer_switch_on_eof = 1; yyg->yy_did_buffer_switch_on_eof = 1;
} }
} }
/* %endif */
/* %if-c-or-c++ */
/* Allocates the stack if it does not exist. /* Allocates the stack if it does not exist.
* Guarantees space for at least one push. * Guarantees space for at least one push.
*/ */
/* %if-c-only */
static void tri_v8_ensure_buffer_stack (yyscan_t yyscanner) static void tri_v8_ensure_buffer_stack (yyscan_t yyscanner)
/* %endif */
/* %if-c++-only */
/* %endif */
{ {
int num_to_alloc; int num_to_alloc;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
@ -1898,9 +1602,7 @@ static void tri_v8_ensure_buffer_stack (yyscan_t yyscanner)
yyg->yy_buffer_stack_max = num_to_alloc; yyg->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. /** Setup the input buffer state to scan directly from a user-specified character buffer.
* @param base the character buffer * @param base the character buffer
* @param size the size in bytes of the character buffer * @param size the size in bytes of the character buffer
@ -1935,9 +1637,7 @@ YY_BUFFER_STATE tri_v8__scan_buffer (char * base, yy_size_t size , yyscan_t yy
return b; return b;
} }
/* %endif */
/* %if-c-only */
/** Setup the input buffer state to scan a string. The next call to tri_v8_lex() will /** Setup the input buffer state to scan a string. The next call to tri_v8_lex() will
* scan from a @e copy of @a str. * scan from a @e copy of @a str.
* @param yystr a NUL-terminated string to scan * @param yystr a NUL-terminated string to scan
@ -1951,13 +1651,11 @@ YY_BUFFER_STATE tri_v8__scan_string (yyconst char * yystr , yyscan_t yyscanner)
return tri_v8__scan_bytes(yystr,strlen(yystr) ,yyscanner); return tri_v8__scan_bytes(yystr,strlen(yystr) ,yyscanner);
} }
/* %endif */
/* %if-c-only */
/** Setup the input buffer state to scan the given bytes. The next call to tri_v8_lex() will /** Setup the input buffer state to scan the given bytes. The next call to tri_v8_lex() will
* scan from a @e copy of @a bytes. * scan from a @e copy of @a bytes.
* @param yybytes the byte buffer to scan * @param bytes the byte buffer to scan
* @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. * @param len the number of bytes in the buffer pointed to by @a bytes.
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
* @return the newly allocated buffer state object. * @return the newly allocated buffer state object.
*/ */
@ -1990,21 +1688,16 @@ YY_BUFFER_STATE tri_v8__scan_bytes (yyconst char * yybytes, int _yybytes_len ,
return b; return b;
} }
/* %endif */
#ifndef YY_EXIT_FAILURE #ifndef YY_EXIT_FAILURE
#define YY_EXIT_FAILURE 2 #define YY_EXIT_FAILURE 2
#endif #endif
/* %if-c-only */
static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner) static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
{ {
(void) fprintf( stderr, "%s\n", msg ); (void) fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE ); exit( YY_EXIT_FAILURE );
} }
/* %endif */
/* %if-c++-only */
/* %endif */
/* Redefine yyless() so it works in section 3 code. */ /* Redefine yyless() so it works in section 3 code. */
@ -2025,9 +1718,6 @@ static void yy_fatal_error (yyconst char* msg , yyscan_t yyscanner)
/* Accessor methods (get/set functions) to struct members. */ /* Accessor methods (get/set functions) to struct members. */
/* %if-c-only */
/* %if-reentrant */
/** Get the user-defined data for this scanner. /** Get the user-defined data for this scanner.
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
*/ */
@ -2037,8 +1727,6 @@ YY_EXTRA_TYPE tri_v8_get_extra (yyscan_t yyscanner)
return yyextra; return yyextra;
} }
/* %endif */
/** Get the current line number. /** Get the current line number.
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
*/ */
@ -2102,8 +1790,6 @@ char *tri_v8_get_text (yyscan_t yyscanner)
return yytext; return yytext;
} }
/* %if-reentrant */
/** Set the user-defined data. This data is never touched by the scanner. /** Set the user-defined data. This data is never touched by the scanner.
* @param user_defined The data to be associated with this scanner. * @param user_defined The data to be associated with this scanner.
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
@ -2114,8 +1800,6 @@ void tri_v8_set_extra (YY_EXTRA_TYPE user_defined , yyscan_t yyscanner)
yyextra = user_defined ; yyextra = user_defined ;
} }
/* %endif */
/** Set the current line number. /** Set the current line number.
* @param line_number * @param line_number
* @param yyscanner The scanner object. * @param yyscanner The scanner object.
@ -2176,14 +1860,8 @@ void tri_v8_set_debug (int bdebug , yyscan_t yyscanner)
yy_flex_debug = bdebug ; yy_flex_debug = bdebug ;
} }
/* %endif */
/* %if-reentrant */
/* Accessor methods for yylval and yylloc */ /* Accessor methods for yylval and yylloc */
/* %if-bison-bridge */
/* %endif */
/* User-visible API */ /* User-visible API */
/* tri_v8_lex_init is special because it creates the scanner itself, so it is /* tri_v8_lex_init is special because it creates the scanner itself, so it is
@ -2248,9 +1926,6 @@ int tri_v8_lex_init_extra(YY_EXTRA_TYPE yy_user_defined,yyscan_t* ptr_yy_globals
return yy_init_globals ( *ptr_yy_globals ); return yy_init_globals ( *ptr_yy_globals );
} }
/* %endif if-c-only */
/* %if-c-only */
static int yy_init_globals (yyscan_t yyscanner) static int yy_init_globals (yyscan_t yyscanner)
{ {
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
@ -2283,9 +1958,7 @@ static int yy_init_globals (yyscan_t yyscanner)
*/ */
return 0; return 0;
} }
/* %endif */
/* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */
/* tri_v8_lex_destroy is for both reentrant and non-reentrant scanners. */ /* tri_v8_lex_destroy is for both reentrant and non-reentrant scanners. */
int tri_v8_lex_destroy (yyscan_t yyscanner) int tri_v8_lex_destroy (yyscan_t yyscanner)
{ {
@ -2310,14 +1983,11 @@ int tri_v8_lex_destroy (yyscan_t yyscanner)
* tri_v8_lex() is called, initialization will occur. */ * tri_v8_lex() is called, initialization will occur. */
yy_init_globals( yyscanner); yy_init_globals( yyscanner);
/* %if-reentrant */
/* Destroy the main struct (reentrant only). */ /* Destroy the main struct (reentrant only). */
tri_v8_free ( yyscanner , yyscanner ); tri_v8_free ( yyscanner , yyscanner );
yyscanner = NULL; yyscanner = NULL;
/* %endif */
return 0; return 0;
} }
/* %endif */
/* /*
* Internal utility routines. * Internal utility routines.
@ -2365,12 +2035,7 @@ void tri_v8_free (void * ptr , yyscan_t yyscanner)
free( (char *) ptr ); /* see tri_v8_realloc() for (char *) cast */ free( (char *) ptr ); /* see tri_v8_realloc() for (char *) cast */
} }
/* %if-tables-serialization definitions */
/* %define-yytables The name for this specific scanner's tables. */
#define YYTABLES_NAME "yytables" #define YYTABLES_NAME "yytables"
/* %endif */
/* %ok-for-header */
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
// --SECTION-- forward declarations // --SECTION-- forward declarations

View File

@ -36,7 +36,7 @@
#define YY_NO_INPUT #define YY_NO_INPUT
} }
%option noyywrap nounput batch debug %option noyywrap nounput batch
%option 8bit %option 8bit
%option reentrant %option reentrant
%option extra-type="struct jsonData" %option extra-type="struct jsonData"