aboutsummaryrefslogtreecommitdiff
path: root/Source/Parser/wp_parser.lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Parser/wp_parser.lex.c')
-rw-r--r--Source/Parser/wp_parser.lex.c673
1 files changed, 344 insertions, 329 deletions
diff --git a/Source/Parser/wp_parser.lex.c b/Source/Parser/wp_parser.lex.c
index d47d2b247..0a9c58ee9 100644
--- a/Source/Parser/wp_parser.lex.c
+++ b/Source/Parser/wp_parser.lex.c
@@ -9,7 +9,7 @@
#define FLEX_SCANNER
#define YY_FLEX_MAJOR_VERSION 2
#define YY_FLEX_MINOR_VERSION 6
-#define YY_FLEX_SUBMINOR_VERSION 0
+#define YY_FLEX_SUBMINOR_VERSION 4
#if YY_FLEX_SUBMINOR_VERSION > 0
#define FLEX_BETA
#endif
@@ -84,60 +84,48 @@ typedef unsigned int flex_uint32_t;
#define UINT32_MAX (4294967295U)
#endif
+#ifndef SIZE_MAX
+#define SIZE_MAX (~(size_t)0)
+#endif
+
#endif /* ! C99 */
#endif /* ! FLEXINT_H */
-#ifdef __cplusplus
-
-/* The "const" storage-class-modifier is valid. */
-#define YY_USE_CONST
-
-#else /* ! __cplusplus */
+/* begin standard C++ headers. */
-/* C99 requires __STDC__ to be defined as 1. */
-#if defined (__STDC__)
-
-#define YY_USE_CONST
-
-#endif /* defined (__STDC__) */
-#endif /* ! __cplusplus */
-
-#ifdef YY_USE_CONST
+/* TODO: this is always defined, so inline it */
#define yyconst const
+
+#if defined(__GNUC__) && __GNUC__ >= 3
+#define yynoreturn __attribute__((__noreturn__))
#else
-#define yyconst
+#define yynoreturn
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
-/* Promotes a possibly negative, possibly signed char to an unsigned
- * integer for use as an array index. If the signed char is negative,
- * we want to instead treat it as an 8-bit unsigned char, hence the
- * double cast.
+/* 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) ((unsigned int) (unsigned char) c)
+#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 BEGIN (yy_start) = 1 + 2 *
-
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state. The YYSTATE alias is for lex
* compatibility.
*/
#define YY_START (((yy_start) - 1) / 2)
#define YYSTATE YY_START
-
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
-
/* Special action meaning "start processing a new file". */
-#define YY_NEW_FILE yyrestart(yyin )
-
+#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
@@ -167,14 +155,14 @@ typedef struct yy_buffer_state *YY_BUFFER_STATE;
typedef size_t yy_size_t;
#endif
-extern yy_size_t yyleng;
+extern int yyleng;
extern FILE *yyin, *yyout;
#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(ptr)
@@ -191,7 +179,6 @@ extern FILE *yyin, *yyout;
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
-
#define unput(c) yyunput( c, (yytext_ptr) )
#ifndef YY_STRUCT_YY_BUFFER_STATE
@@ -206,7 +193,7 @@ struct yy_buffer_state
/* Size of input buffer in bytes, not including room for EOB
* characters.
*/
- yy_size_t yy_buf_size;
+ int yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
@@ -234,7 +221,7 @@ struct yy_buffer_state
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.
*/
@@ -262,7 +249,7 @@ struct yy_buffer_state
/* 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. */
+static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
@@ -273,7 +260,6 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
#define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
? (yy_buffer_stack)[(yy_buffer_stack_top)] \
: NULL)
-
/* Same as previous macro, but useful when we know that the buffer stack is not
* NULL or when we need an lvalue. For internal use only.
*/
@@ -282,10 +268,10 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char;
static int yy_n_chars; /* number of characters read into yy_ch_buf */
-yy_size_t yyleng;
+int yyleng;
/* Points to current character in buffer. */
-static char *yy_c_buf_p = (char *) 0;
+static char *yy_c_buf_p = NULL;
static int yy_init = 0; /* whether we need to initialize */
static int yy_start = 0; /* start state number */
@@ -294,65 +280,59 @@ static int yy_start = 0; /* start state number */
*/
static int yy_did_buffer_switch_on_eof;
-void yyrestart (FILE *input_file );
-void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
-YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
-void yy_delete_buffer (YY_BUFFER_STATE b );
-void yy_flush_buffer (YY_BUFFER_STATE b );
-void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
-void yypop_buffer_state (void );
-
-static void yyensure_buffer_stack (void );
-static void yy_load_buffer_state (void );
-static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
+void yyrestart ( FILE *input_file );
+void yy_switch_to_buffer ( YY_BUFFER_STATE new_buffer );
+YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
+void yy_delete_buffer ( YY_BUFFER_STATE b );
+void yy_flush_buffer ( YY_BUFFER_STATE b );
+void yypush_buffer_state ( YY_BUFFER_STATE new_buffer );
+void yypop_buffer_state ( void );
-#define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
+static void yyensure_buffer_stack ( void );
+static void yy_load_buffer_state ( void );
+static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
+#define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
-YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
-YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
-YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
+YY_BUFFER_STATE yy_scan_buffer ( char *base, yy_size_t size );
+YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
+YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
-void *yyalloc (yy_size_t );
-void *yyrealloc (void *,yy_size_t );
-void yyfree (void * );
+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) \
{ \
if ( ! YY_CURRENT_BUFFER ){ \
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer(yyin,YY_BUF_SIZE ); \
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
-
#define yy_set_bol(at_bol) \
{ \
if ( ! YY_CURRENT_BUFFER ){\
yyensure_buffer_stack (); \
YY_CURRENT_BUFFER_LVALUE = \
- yy_create_buffer(yyin,YY_BUF_SIZE ); \
+ yy_create_buffer( yyin, YY_BUF_SIZE ); \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
-
#define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
/* Begin user sect3 */
#define yywrap() (/*CONSTCOND*/1)
#define YY_SKIP_YYWRAP
+typedef flex_uint8_t YY_CHAR;
-typedef unsigned char YY_CHAR;
-
-FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
+FILE *yyin = NULL, *yyout = NULL;
typedef int yy_state_type;
extern int yylineno;
-
int yylineno = 1;
extern char *yytext;
@@ -361,26 +341,22 @@ extern char *yytext;
#endif
#define yytext_ptr yytext
-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 );
-#if defined(__GNUC__) && __GNUC__ >= 3
-__attribute__((__noreturn__))
-#endif
-static void yy_fatal_error (yyconst char msg[] );
+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 yynoreturn yy_fatal_error ( const char* msg );
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
*/
#define YY_DO_BEFORE_ACTION \
(yytext_ptr) = yy_bp; \
- yyleng = (size_t) (yy_cp - yy_bp); \
+ yyleng = (int) (yy_cp - yy_bp); \
(yy_hold_char) = *yy_cp; \
*yy_cp = '\0'; \
(yy_c_buf_p) = yy_cp;
-
-#define YY_NUM_RULES 41
-#define YY_END_OF_BUFFER 42
+#define YY_NUM_RULES 47
+#define YY_END_OF_BUFFER 48
/* This struct is not used in this scanner,
but its presence is necessary. */
struct yy_trans_info
@@ -388,37 +364,38 @@ struct yy_trans_info
flex_int32_t yy_verify;
flex_int32_t yy_nxt;
};
-static yyconst flex_int16_t yy_accept[95] =
+static const flex_int16_t yy_accept[104] =
{ 0,
- 0, 0, 42, 40, 37, 39, 10, 11, 3, 1,
- 7, 2, 40, 4, 35, 8, 5, 9, 33, 40,
- 28, 33, 33, 33, 33, 33, 33, 33, 33, 33,
- 33, 6, 27, 35, 36, 34, 35, 0, 33, 38,
- 33, 33, 33, 33, 33, 33, 33, 33, 33, 33,
- 33, 33, 33, 33, 33, 36, 34, 0, 0, 35,
- 25, 33, 33, 33, 17, 13, 33, 33, 14, 32,
- 31, 29, 16, 33, 18, 0, 34, 20, 19, 21,
- 23, 26, 33, 33, 22, 12, 24, 33, 15, 33,
- 33, 33, 30, 0
-
+ 0, 0, 48, 46, 43, 45, 46, 10, 11, 3,
+ 1, 7, 2, 46, 4, 41, 8, 5, 9, 39,
+ 46, 28, 39, 39, 39, 39, 39, 39, 39, 39,
+ 39, 39, 39, 6, 32, 27, 41, 42, 40, 41,
+ 0, 30, 31, 29, 39, 44, 39, 39, 39, 39,
+ 39, 39, 39, 39, 39, 39, 39, 39, 34, 39,
+ 39, 39, 39, 42, 40, 0, 0, 41, 25, 39,
+ 33, 39, 39, 17, 13, 39, 39, 14, 38, 37,
+ 35, 16, 39, 18, 0, 40, 20, 19, 21, 23,
+ 26, 39, 39, 22, 12, 24, 39, 15, 39, 39,
+
+ 39, 36, 0
} ;
-static yyconst YY_CHAR yy_ec[256] =
+static const YY_CHAR yy_ec[256] =
{ 0,
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 2, 1, 1, 1, 1, 1, 1, 1, 4,
- 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
- 14, 14, 14, 14, 14, 14, 14, 1, 1, 15,
- 16, 17, 1, 1, 18, 18, 18, 18, 19, 18,
- 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
- 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
- 1, 20, 1, 21, 18, 1, 22, 23, 24, 25,
-
- 26, 27, 28, 29, 30, 18, 18, 31, 32, 33,
- 34, 35, 36, 37, 38, 39, 18, 40, 41, 42,
- 18, 18, 1, 43, 1, 1, 1, 1, 1, 1,
+ 1, 2, 4, 1, 1, 1, 1, 1, 1, 5,
+ 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 15, 15, 15, 15, 15, 15, 15, 1, 1, 16,
+ 17, 18, 1, 1, 19, 19, 19, 19, 20, 19,
+ 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
+ 19, 19, 19, 19, 19, 19, 19, 19, 19, 19,
+ 1, 21, 1, 22, 19, 1, 23, 24, 25, 26,
+
+ 27, 28, 29, 30, 31, 19, 19, 32, 33, 34,
+ 35, 36, 37, 38, 39, 40, 19, 41, 42, 43,
+ 19, 19, 1, 44, 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,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
@@ -435,95 +412,99 @@ static yyconst YY_CHAR yy_ec[256] =
1, 1, 1, 1, 1
} ;
-static yyconst YY_CHAR yy_meta[44] =
+static const YY_CHAR yy_meta[45] =
{ 0,
1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
- 1, 3, 3, 3, 1, 1, 1, 3, 3, 1,
- 1, 3, 3, 3, 3, 3, 3, 3, 3, 3,
+ 1, 1, 3, 3, 3, 1, 1, 1, 3, 3,
+ 1, 1, 3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- 3, 3, 1
+ 3, 3, 3, 1
} ;
-static yyconst flex_uint16_t yy_base[97] =
+static const flex_int16_t yy_base[106] =
{ 0,
- 0, 0, 148, 149, 149, 149, 149, 149, 141, 149,
- 149, 149, 32, 135, 37, 149, 149, 149, 0, 142,
- 149, 29, 110, 101, 120, 115, 106, 32, 105, 25,
- 116, 149, 149, 45, 0, 60, 68, 76, 0, 149,
- 99, 102, 105, 112, 95, 97, 108, 108, 101, 86,
- 94, 85, 92, 87, 90, 0, 79, 88, 63, 94,
- 0, 84, 88, 87, 90, 0, 80, 76, 91, 0,
- 0, 0, 74, 60, 67, 97, 100, 0, 0, 0,
- 0, 0, 54, 58, 0, 0, 0, 31, 0, 36,
- 40, 34, 0, 149, 45, 114
-
+ 0, 0, 156, 157, 157, 157, 138, 157, 157, 147,
+ 157, 157, 157, 32, 141, 37, 135, 134, 133, 0,
+ 146, 157, 29, 113, 104, 123, 118, 109, 35, 105,
+ 107, 18, 118, 157, 157, 157, 47, 0, 57, 65,
+ 73, 157, 157, 157, 0, 157, 101, 104, 112, 106,
+ 113, 96, 98, 109, 109, 102, 87, 95, 0, 86,
+ 93, 88, 91, 0, 76, 85, 91, 94, 0, 85,
+ 0, 89, 88, 91, 0, 81, 78, 103, 0, 0,
+ 0, 72, 61, 67, 97, 100, 0, 0, 0, 0,
+ 0, 63, 69, 0, 0, 0, 36, 0, 42, 39,
+
+ 32, 0, 157, 53, 115
} ;
-static yyconst flex_int16_t yy_def[97] =
+static const flex_int16_t yy_def[106] =
{ 0,
- 94, 1, 94, 94, 94, 94, 94, 94, 94, 94,
- 94, 94, 94, 94, 94, 94, 94, 94, 95, 94,
- 94, 95, 95, 95, 95, 95, 95, 95, 95, 95,
- 95, 94, 94, 94, 96, 94, 94, 94, 95, 94,
- 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
- 95, 95, 95, 95, 95, 96, 94, 94, 94, 94,
- 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
- 95, 95, 95, 95, 95, 94, 94, 95, 95, 95,
- 95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
- 95, 95, 95, 0, 94, 94
-
+ 103, 1, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 104,
+ 103, 103, 104, 104, 104, 104, 104, 104, 104, 104,
+ 104, 104, 104, 103, 103, 103, 103, 105, 103, 103,
+ 103, 103, 103, 103, 104, 103, 104, 104, 104, 104,
+ 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
+ 104, 104, 104, 105, 103, 103, 103, 103, 104, 104,
+ 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
+ 104, 104, 104, 104, 103, 103, 104, 104, 104, 104,
+ 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
+
+ 104, 104, 0, 103, 103
} ;
-static yyconst flex_uint16_t yy_nxt[193] =
+static const flex_int16_t yy_nxt[202] =
{ 0,
4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
- 14, 15, 15, 15, 16, 17, 18, 19, 19, 20,
- 21, 22, 19, 23, 19, 24, 25, 19, 26, 19,
- 27, 28, 19, 19, 29, 19, 19, 30, 31, 19,
- 19, 19, 32, 34, 34, 34, 36, 39, 37, 37,
- 37, 41, 42, 50, 53, 38, 34, 34, 34, 93,
- 54, 51, 38, 38, 92, 91, 43, 44, 90, 89,
- 38, 57, 57, 57, 60, 60, 60, 36, 58, 37,
- 37, 37, 59, 88, 59, 58, 38, 60, 60, 60,
- 57, 57, 57, 38, 76, 87, 76, 58, 86, 77,
-
- 77, 77, 85, 84, 58, 60, 60, 60, 77, 77,
- 77, 77, 77, 77, 56, 83, 56, 82, 81, 80,
- 79, 78, 75, 74, 73, 72, 71, 70, 69, 68,
- 67, 66, 65, 64, 63, 62, 61, 55, 52, 49,
- 48, 47, 46, 45, 40, 35, 33, 94, 3, 94,
- 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
- 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
- 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
- 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
- 94, 94
-
+ 14, 15, 16, 16, 16, 17, 18, 19, 20, 20,
+ 21, 22, 23, 20, 24, 20, 25, 26, 20, 27,
+ 20, 28, 29, 20, 30, 31, 20, 20, 32, 33,
+ 20, 20, 20, 34, 37, 37, 37, 39, 61, 40,
+ 40, 40, 47, 48, 62, 45, 41, 57, 102, 37,
+ 37, 37, 49, 41, 101, 58, 41, 50, 51, 65,
+ 65, 65, 100, 41, 99, 39, 66, 40, 40, 40,
+ 67, 98, 67, 66, 41, 68, 68, 68, 65, 65,
+ 65, 41, 85, 97, 85, 66, 96, 86, 86, 86,
+
+ 95, 94, 66, 68, 68, 68, 68, 68, 68, 86,
+ 86, 86, 86, 86, 86, 64, 93, 64, 92, 91,
+ 90, 89, 88, 87, 84, 83, 82, 81, 80, 79,
+ 78, 77, 76, 75, 74, 73, 72, 71, 70, 69,
+ 63, 60, 59, 56, 55, 54, 53, 52, 46, 44,
+ 43, 42, 38, 36, 35, 103, 3, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+
+ 103
} ;
-static yyconst flex_int16_t yy_chk[193] =
+static const flex_int16_t yy_chk[202] =
{ 0,
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, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 13, 13, 13, 15, 95, 15, 15,
- 15, 22, 22, 28, 30, 15, 34, 34, 34, 92,
- 30, 28, 15, 34, 91, 90, 22, 22, 88, 84,
- 34, 36, 36, 36, 59, 59, 59, 37, 36, 37,
- 37, 37, 38, 83, 38, 36, 37, 38, 38, 38,
- 57, 57, 57, 37, 58, 75, 58, 57, 74, 58,
-
- 58, 58, 73, 69, 57, 60, 60, 60, 76, 76,
- 76, 77, 77, 77, 96, 68, 96, 67, 65, 64,
- 63, 62, 55, 54, 53, 52, 51, 50, 49, 48,
- 47, 46, 45, 44, 43, 42, 41, 31, 29, 27,
- 26, 25, 24, 23, 20, 14, 9, 3, 94, 94,
- 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
- 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
- 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
- 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
- 94, 94
-
+ 1, 1, 1, 1, 14, 14, 14, 16, 32, 16,
+ 16, 16, 23, 23, 32, 104, 16, 29, 101, 37,
+ 37, 37, 23, 16, 100, 29, 37, 23, 23, 39,
+ 39, 39, 99, 37, 97, 40, 39, 40, 40, 40,
+ 41, 93, 41, 39, 40, 41, 41, 41, 65, 65,
+ 65, 40, 66, 92, 66, 65, 84, 66, 66, 66,
+
+ 83, 82, 65, 67, 67, 67, 68, 68, 68, 85,
+ 85, 85, 86, 86, 86, 105, 78, 105, 77, 76,
+ 74, 73, 72, 70, 63, 62, 61, 60, 58, 57,
+ 56, 55, 54, 53, 52, 51, 50, 49, 48, 47,
+ 33, 31, 30, 28, 27, 26, 25, 24, 21, 19,
+ 18, 17, 15, 10, 7, 3, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+ 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
+
+ 103
} ;
static yy_state_type yy_last_accepting_state;
@@ -544,10 +525,12 @@ char *yytext;
#line 3 "wp_parser.l"
#include "wp_parser_y.h"
#include "wp_parser.tab.h"
-/* Tokens NUMBER, SYMBOL, F1, POW, F2, etc. are defined in wp_parser.y. */
-/* Types WP_SQRT, WP_SQRT, etc. are defined in wp_parser_y.h. */
-/* Used leater to define NUMBER */
-#line 551 "wp_parser.lex.c"
+#line 529 "wp_parser.lex.c"
+#line 8 "wp_parser.l"
+ /* Tokens NUMBER, SYMBOL, F1, POW, F2, etc. are defined in wp_parser.y. */
+ /* Types WP_SQRT, WP_SQRT, etc. are defined in wp_parser_y.h. */
+ /* Used leater to define NUMBER */
+#line 534 "wp_parser.lex.c"
#define INITIAL 0
@@ -563,36 +546,36 @@ char *yytext;
#define YY_EXTRA_TYPE void *
#endif
-static int yy_init_globals (void );
+static int yy_init_globals ( void );
/* Accessor methods to globals.
These are made visible to non-reentrant scanners for convenience. */
-int yylex_destroy (void );
+int yylex_destroy ( void );
-int yyget_debug (void );
+int yyget_debug ( void );
-void yyset_debug (int debug_flag );
+void yyset_debug ( int debug_flag );
-YY_EXTRA_TYPE yyget_extra (void );
+YY_EXTRA_TYPE yyget_extra ( void );
-void yyset_extra (YY_EXTRA_TYPE user_defined );
+void yyset_extra ( YY_EXTRA_TYPE user_defined );
-FILE *yyget_in (void );
+FILE *yyget_in ( void );
-void yyset_in (FILE * _in_str );
+void yyset_in ( FILE * _in_str );
-FILE *yyget_out (void );
+FILE *yyget_out ( void );
-void yyset_out (FILE * _out_str );
+void yyset_out ( FILE * _out_str );
-yy_size_t yyget_leng (void );
+ int yyget_leng ( void );
-char *yyget_text (void );
+char *yyget_text ( void );
-int yyget_lineno (void );
+int yyget_lineno ( void );
-void yyset_lineno (int _line_number );
+void yyset_lineno ( int _line_number );
/* Macros after this point can all be overridden by user definitions in
* section 1.
@@ -600,32 +583,31 @@ void yyset_lineno (int _line_number );
#ifndef YY_SKIP_YYWRAP
#ifdef __cplusplus
-extern "C" int yywrap (void );
+extern "C" int yywrap ( void );
#else
-extern int yywrap (void );
+extern int yywrap ( void );
#endif
#endif
#ifndef YY_NO_UNPUT
- static void yyunput (int c,char *buf_ptr );
+ static void yyunput ( int c, char *buf_ptr );
#endif
#ifndef yytext_ptr
-static void yy_flex_strncpy (char *,yyconst char *,int );
+static void yy_flex_strncpy ( char *, const char *, int );
#endif
#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * );
+static int yy_flex_strlen ( const char * );
#endif
#ifndef YY_NO_INPUT
-
#ifdef __cplusplus
-static int yyinput (void );
+static int yyinput ( void );
#else
-static int input (void );
+static int input ( void );
#endif
#endif
@@ -645,7 +627,7 @@ static int input (void );
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
-#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
+#define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
@@ -656,7 +638,7 @@ static int input (void );
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
- size_t n; \
+ int n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
@@ -669,7 +651,7 @@ static int input (void );
else \
{ \
errno=0; \
- while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
+ while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
@@ -758,17 +740,17 @@ YY_DECL
if ( ! YY_CURRENT_BUFFER ) {
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer(yyin,YY_BUF_SIZE );
+ yy_create_buffer( yyin, YY_BUF_SIZE );
}
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
}
{
-#line 13 "wp_parser.l"
+#line 14 "wp_parser.l"
-#line 772 "wp_parser.lex.c"
+#line 754 "wp_parser.lex.c"
while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
@@ -795,13 +777,13 @@ yy_match:
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 95 )
- yy_c = yy_meta[(unsigned int) yy_c];
+ if ( yy_current_state >= 104 )
+ yy_c = yy_meta[yy_c];
}
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
++yy_cp;
}
- while ( yy_base[yy_current_state] != 149 );
+ while ( yy_base[yy_current_state] != 157 );
yy_find_action:
yy_act = yy_accept[yy_current_state];
@@ -826,186 +808,216 @@ do_action: /* This label is used only to access EOF actions. */
goto yy_find_action;
case 1:
-#line 16 "wp_parser.l"
-case 2:
#line 17 "wp_parser.l"
-case 3:
+case 2:
#line 18 "wp_parser.l"
-case 4:
+case 3:
#line 19 "wp_parser.l"
-case 5:
+case 4:
#line 20 "wp_parser.l"
-case 6:
+case 5:
#line 21 "wp_parser.l"
-case 7:
+case 6:
#line 22 "wp_parser.l"
-case 8:
+case 7:
#line 23 "wp_parser.l"
-case 9:
+case 8:
#line 24 "wp_parser.l"
-case 10:
+case 9:
#line 25 "wp_parser.l"
+case 10:
+#line 26 "wp_parser.l"
case 11:
YY_RULE_SETUP
-#line 25 "wp_parser.l"
+#line 26 "wp_parser.l"
{ return yytext[0]; } /* simply pass through */
YY_BREAK
/* yylval is union type defined in wp_parser.tab.h that is generated
* by bison with wp_parser.y */
case 12:
YY_RULE_SETUP
-#line 30 "wp_parser.l"
+#line 31 "wp_parser.l"
{ yylval.f1 = WP_SQRT; return F1; }
YY_BREAK
case 13:
YY_RULE_SETUP
-#line 31 "wp_parser.l"
+#line 32 "wp_parser.l"
{ yylval.f1 = WP_EXP; return F1; }
YY_BREAK
case 14:
YY_RULE_SETUP
-#line 32 "wp_parser.l"
+#line 33 "wp_parser.l"
{ yylval.f1 = WP_LOG; return F1; }
YY_BREAK
case 15:
YY_RULE_SETUP
-#line 33 "wp_parser.l"
+#line 34 "wp_parser.l"
{ yylval.f1 = WP_LOG10; return F1; }
YY_BREAK
case 16:
YY_RULE_SETUP
-#line 34 "wp_parser.l"
+#line 35 "wp_parser.l"
{ yylval.f1 = WP_SIN; return F1; }
YY_BREAK
case 17:
YY_RULE_SETUP
-#line 35 "wp_parser.l"
+#line 36 "wp_parser.l"
{ yylval.f1 = WP_COS; return F1; }
YY_BREAK
case 18:
YY_RULE_SETUP
-#line 36 "wp_parser.l"
+#line 37 "wp_parser.l"
{ yylval.f1 = WP_TAN; return F1; }
YY_BREAK
case 19:
YY_RULE_SETUP
-#line 37 "wp_parser.l"
+#line 38 "wp_parser.l"
{ yylval.f1 = WP_ASIN; return F1; }
YY_BREAK
case 20:
YY_RULE_SETUP
-#line 38 "wp_parser.l"
+#line 39 "wp_parser.l"
{ yylval.f1 = WP_ACOS; return F1; }
YY_BREAK
case 21:
YY_RULE_SETUP
-#line 39 "wp_parser.l"
+#line 40 "wp_parser.l"
{ yylval.f1 = WP_ATAN; return F1; }
YY_BREAK
case 22:
YY_RULE_SETUP
-#line 40 "wp_parser.l"
+#line 41 "wp_parser.l"
{ yylval.f1 = WP_SINH; return F1; }
YY_BREAK
case 23:
YY_RULE_SETUP
-#line 41 "wp_parser.l"
+#line 42 "wp_parser.l"
{ yylval.f1 = WP_COSH; return F1; }
YY_BREAK
case 24:
YY_RULE_SETUP
-#line 42 "wp_parser.l"
+#line 43 "wp_parser.l"
{ yylval.f1 = WP_TANH; return F1; }
YY_BREAK
case 25:
YY_RULE_SETUP
-#line 43 "wp_parser.l"
+#line 44 "wp_parser.l"
{ yylval.f1 = WP_ABS; return F1; }
YY_BREAK
case 26:
YY_RULE_SETUP
-#line 44 "wp_parser.l"
+#line 45 "wp_parser.l"
{ yylval.f1 = WP_ABS; return F1; }
YY_BREAK
case 27:
YY_RULE_SETUP
-#line 45 "wp_parser.l"
+#line 46 "wp_parser.l"
{ yylval.f2 = WP_POW; return POW;}
YY_BREAK
case 28:
YY_RULE_SETUP
-#line 46 "wp_parser.l"
+#line 47 "wp_parser.l"
{ yylval.f2 = WP_POW; return POW;}
YY_BREAK
case 29:
YY_RULE_SETUP
-#line 47 "wp_parser.l"
-{ yylval.f2 = WP_POW; return F2; }
+#line 48 "wp_parser.l"
+{ yylval.f2 = WP_GEQ; return GEQ;}
YY_BREAK
case 30:
YY_RULE_SETUP
-#line 48 "wp_parser.l"
-{ yylval.f2 = WP_HEAVISIDE; return F2; }
+#line 49 "wp_parser.l"
+{ yylval.f2 = WP_LEQ; return LEQ;}
YY_BREAK
case 31:
YY_RULE_SETUP
-#line 49 "wp_parser.l"
-{ yylval.f2 = WP_MIN; return F2; }
+#line 50 "wp_parser.l"
+{ yylval.f2 = WP_EQ; return EQ;}
YY_BREAK
case 32:
YY_RULE_SETUP
-#line 50 "wp_parser.l"
-{ yylval.f2 = WP_MAX; return F2; }
+#line 51 "wp_parser.l"
+{ yylval.f2 = WP_NEQ; return NEQ;}
YY_BREAK
-/* We use SYMBOL to hold variables and constants */
case 33:
YY_RULE_SETUP
-#line 53 "wp_parser.l"
-{ yylval.s = wp_makesymbol(yytext); return SYMBOL; }
+#line 52 "wp_parser.l"
+{ yylval.f2 = WP_AND; return AND;}
YY_BREAK
-/* Number */
case 34:
-#line 57 "wp_parser.l"
+YY_RULE_SETUP
+#line 53 "wp_parser.l"
+{ yylval.f2 = WP_OR; return OR;}
+ YY_BREAK
case 35:
YY_RULE_SETUP
+#line 54 "wp_parser.l"
+{ yylval.f2 = WP_POW; return F2; }
+ YY_BREAK
+case 36:
+YY_RULE_SETUP
+#line 55 "wp_parser.l"
+{ yylval.f2 = WP_HEAVISIDE; return F2; }
+ YY_BREAK
+case 37:
+YY_RULE_SETUP
+#line 56 "wp_parser.l"
+{ yylval.f2 = WP_MIN; return F2; }
+ YY_BREAK
+case 38:
+YY_RULE_SETUP
#line 57 "wp_parser.l"
+{ yylval.f2 = WP_MAX; return F2; }
+ YY_BREAK
+/* We use SYMBOL to hold variables and constants */
+case 39:
+YY_RULE_SETUP
+#line 60 "wp_parser.l"
+{ yylval.s = wp_makesymbol(yytext); return SYMBOL; }
+ YY_BREAK
+/* Number */
+case 40:
+#line 64 "wp_parser.l"
+case 41:
+YY_RULE_SETUP
+#line 64 "wp_parser.l"
{ yylval.d = atof(yytext); return NUMBER; }
YY_BREAK
/* Special characters */
-case 36:
+case 42:
YY_RULE_SETUP
-#line 60 "wp_parser.l"
+#line 67 "wp_parser.l"
YY_BREAK
-case 37:
+case 43:
YY_RULE_SETUP
-#line 61 "wp_parser.l"
-/* ignore white space */
+#line 68 "wp_parser.l"
+/* ignore white space */
YY_BREAK
-case 38:
-/* rule 38 can match eol */
+case 44:
+/* rule 44 can match eol */
YY_RULE_SETUP
-#line 62 "wp_parser.l"
+#line 69 "wp_parser.l"
/* ignore line continuation */
YY_BREAK
-case 39:
-/* rule 39 can match eol */
+case 45:
+/* rule 45 can match eol */
YY_RULE_SETUP
-#line 63 "wp_parser.l"
+#line 70 "wp_parser.l"
{ return EOL; }
YY_BREAK
/* everything else */
-case 40:
+case 46:
YY_RULE_SETUP
-#line 66 "wp_parser.l"
+#line 73 "wp_parser.l"
{ yyerror("Unknow character %c\n", *yytext); }
YY_BREAK
-case 41:
+case 47:
YY_RULE_SETUP
-#line 68 "wp_parser.l"
+#line 75 "wp_parser.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
-#line 1009 "wp_parser.lex.c"
+#line 1021 "wp_parser.lex.c"
case YY_STATE_EOF(INITIAL):
yyterminate();
@@ -1083,7 +1095,7 @@ case YY_STATE_EOF(INITIAL):
{
(yy_did_buffer_switch_on_eof) = 0;
- if ( yywrap( ) )
+ if ( yywrap( ) )
{
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
@@ -1150,7 +1162,7 @@ static int yy_get_next_buffer (void)
{
char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
char *source = (yytext_ptr);
- yy_size_t number_to_move, i;
+ int number_to_move, i;
int ret_val;
if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
@@ -1179,7 +1191,7 @@ static int yy_get_next_buffer (void)
/* Try to read more data. */
/* First move last chars to start of buffer. */
- number_to_move = (yy_size_t) ((yy_c_buf_p) - (yytext_ptr)) - 1;
+ number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
for ( i = 0; i < number_to_move; ++i )
*(dest++) = *(source++);
@@ -1192,7 +1204,7 @@ static int yy_get_next_buffer (void)
else
{
- yy_size_t num_to_read =
+ int num_to_read =
YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
@@ -1206,7 +1218,7 @@ static int yy_get_next_buffer (void)
if ( b->yy_is_our_buffer )
{
- yy_size_t new_size = b->yy_buf_size * 2;
+ int new_size = b->yy_buf_size * 2;
if ( new_size <= 0 )
b->yy_buf_size += b->yy_buf_size / 8;
@@ -1215,11 +1227,12 @@ static int yy_get_next_buffer (void)
b->yy_ch_buf = (char *)
/* Include room in for 2 EOB chars. */
- yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
+ yyrealloc( (void *) b->yy_ch_buf,
+ (yy_size_t) (b->yy_buf_size + 2) );
}
else
/* Can't grow it, we don't own it. */
- b->yy_ch_buf = 0;
+ b->yy_ch_buf = NULL;
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
@@ -1247,7 +1260,7 @@ static int yy_get_next_buffer (void)
if ( number_to_move == YY_MORE_ADJ )
{
ret_val = EOB_ACT_END_OF_FILE;
- yyrestart(yyin );
+ yyrestart( yyin );
}
else
@@ -1261,12 +1274,15 @@ static int yy_get_next_buffer (void)
else
ret_val = EOB_ACT_CONTINUE_SCAN;
- if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
+ if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
/* Extend the array by 50%, plus the number we really need. */
int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
+ YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
+ (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
+ /* "- 2" to take care of EOB's */
+ YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
}
(yy_n_chars) += number_to_move;
@@ -1298,10 +1314,10 @@ static int yy_get_next_buffer (void)
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 95 )
- yy_c = yy_meta[(unsigned int) yy_c];
+ if ( yy_current_state >= 104 )
+ yy_c = yy_meta[yy_c];
}
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
}
return yy_current_state;
@@ -1326,11 +1342,11 @@ static int yy_get_next_buffer (void)
while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
{
yy_current_state = (int) yy_def[yy_current_state];
- if ( yy_current_state >= 95 )
- yy_c = yy_meta[(unsigned int) yy_c];
+ if ( yy_current_state >= 104 )
+ yy_c = yy_meta[yy_c];
}
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
- yy_is_jam = (yy_current_state == 94);
+ yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
+ yy_is_jam = (yy_current_state == 103);
return yy_is_jam ? 0 : yy_current_state;
}
@@ -1349,7 +1365,7 @@ static int yy_get_next_buffer (void)
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
- yy_size_t number_to_move = (yy_n_chars) + 2;
+ int number_to_move = (yy_n_chars) + 2;
char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
char *source =
@@ -1361,7 +1377,7 @@ static int yy_get_next_buffer (void)
yy_cp += (int) (dest - source);
yy_bp += (int) (dest - source);
YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
+ (yy_n_chars) = (int) YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
YY_FATAL_ERROR( "flex scanner push-back overflow" );
@@ -1400,7 +1416,7 @@ static int yy_get_next_buffer (void)
else
{ /* need more input */
- yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
+ int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
++(yy_c_buf_p);
switch ( yy_get_next_buffer( ) )
@@ -1417,14 +1433,14 @@ static int yy_get_next_buffer (void)
*/
/* Reset buffer status. */
- yyrestart(yyin );
+ yyrestart( yyin );
/*FALLTHROUGH*/
case EOB_ACT_END_OF_FILE:
{
- if ( yywrap( ) )
- return EOF;
+ if ( yywrap( ) )
+ return 0;
if ( ! (yy_did_buffer_switch_on_eof) )
YY_NEW_FILE;
@@ -1461,11 +1477,11 @@ static int yy_get_next_buffer (void)
if ( ! YY_CURRENT_BUFFER ){
yyensure_buffer_stack ();
YY_CURRENT_BUFFER_LVALUE =
- yy_create_buffer(yyin,YY_BUF_SIZE );
+ yy_create_buffer( yyin, YY_BUF_SIZE );
}
- yy_init_buffer(YY_CURRENT_BUFFER,input_file );
- yy_load_buffer_state( );
+ yy_init_buffer( YY_CURRENT_BUFFER, input_file );
+ yy_load_buffer_state( );
}
/** Switch to a different input buffer.
@@ -1493,7 +1509,7 @@ static int yy_get_next_buffer (void)
}
YY_CURRENT_BUFFER_LVALUE = new_buffer;
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
/* We don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
@@ -1521,22 +1537,22 @@ static void yy_load_buffer_state (void)
{
YY_BUFFER_STATE b;
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
- b->yy_buf_size = (yy_size_t)size;
+ b->yy_buf_size = size;
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
*/
- b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
+ b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_is_our_buffer = 1;
- yy_init_buffer(b,file );
+ yy_init_buffer( b, file );
return b;
}
@@ -1555,9 +1571,9 @@ static void yy_load_buffer_state (void)
YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
if ( b->yy_is_our_buffer )
- yyfree((void *) b->yy_ch_buf );
+ yyfree( (void *) b->yy_ch_buf );
- yyfree((void *) b );
+ yyfree( (void *) b );
}
/* Initializes or reinitializes a buffer.
@@ -1569,7 +1585,7 @@ static void yy_load_buffer_state (void)
{
int oerrno = errno;
- yy_flush_buffer(b );
+ yy_flush_buffer( b );
b->yy_input_file = file;
b->yy_fill_buffer = 1;
@@ -1612,7 +1628,7 @@ static void yy_load_buffer_state (void)
b->yy_buffer_status = YY_BUFFER_NEW;
if ( b == YY_CURRENT_BUFFER )
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
}
/** Pushes the new state onto the stack. The new state becomes
@@ -1643,7 +1659,7 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
YY_CURRENT_BUFFER_LVALUE = new_buffer;
/* copied from yy_switch_to_buffer. */
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
@@ -1662,7 +1678,7 @@ void yypop_buffer_state (void)
--(yy_buffer_stack_top);
if (YY_CURRENT_BUFFER) {
- yy_load_buffer_state( );
+ yy_load_buffer_state( );
(yy_did_buffer_switch_on_eof) = 1;
}
}
@@ -1680,15 +1696,15 @@ static void yyensure_buffer_stack (void)
* scanner will even need a stack. We use 2 instead of 1 to avoid an
* immediate realloc on the next call.
*/
- num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
+ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
(num_to_alloc * sizeof(struct yy_buffer_state*)
);
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;
(yy_buffer_stack_top) = 0;
return;
@@ -1717,7 +1733,7 @@ static void yyensure_buffer_stack (void)
* @param base the character buffer
* @param size the size in bytes of the character buffer
*
- * @return the newly allocated buffer state object.
+ * @return the newly allocated buffer state object.
*/
YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
{
@@ -1727,23 +1743,23 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
base[size-2] != YY_END_OF_BUFFER_CHAR ||
base[size-1] != YY_END_OF_BUFFER_CHAR )
/* They forgot to leave room for the EOB's. */
- return 0;
+ return NULL;
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
+ b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
+ b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
b->yy_buf_pos = b->yy_ch_buf = base;
b->yy_is_our_buffer = 0;
- b->yy_input_file = 0;
+ b->yy_input_file = NULL;
b->yy_n_chars = b->yy_buf_size;
b->yy_is_interactive = 0;
b->yy_at_bol = 1;
b->yy_fill_buffer = 0;
b->yy_buffer_status = YY_BUFFER_NEW;
- yy_switch_to_buffer(b );
+ yy_switch_to_buffer( b );
return b;
}
@@ -1756,10 +1772,10 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
* @note If you want to scan bytes that may contain NUL values, then use
* yy_scan_bytes() instead.
*/
-YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
+YY_BUFFER_STATE yy_scan_string (const char * yystr )
{
- return yy_scan_bytes(yystr,strlen(yystr) );
+ return yy_scan_bytes( yystr, (int) strlen(yystr) );
}
/** Setup the input buffer state to scan the given bytes. The next call to yylex() will
@@ -1769,16 +1785,16 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
*
* @return the newly allocated buffer state object.
*/
-YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
+YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
{
YY_BUFFER_STATE b;
char *buf;
yy_size_t n;
- yy_size_t i;
+ int i;
/* Get memory for full buffer, including space for trailing EOB's. */
- n = _yybytes_len + 2;
- buf = (char *) yyalloc(n );
+ n = (yy_size_t) (_yybytes_len + 2);
+ buf = (char *) yyalloc( n );
if ( ! buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
@@ -1787,7 +1803,7 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len
buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
- b = yy_scan_buffer(buf,n );
+ b = yy_scan_buffer( buf, n );
if ( ! b )
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
@@ -1803,9 +1819,9 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len
#define YY_EXIT_FAILURE 2
#endif
-static void yy_fatal_error (yyconst char* msg )
+static void yynoreturn yy_fatal_error (const char* msg )
{
- (void) fprintf( stderr, "%s\n", msg );
+ fprintf( stderr, "%s\n", msg );
exit( YY_EXIT_FAILURE );
}
@@ -1833,7 +1849,7 @@ static void yy_fatal_error (yyconst char* msg )
*/
int yyget_lineno (void)
{
-
+
return yylineno;
}
@@ -1856,7 +1872,7 @@ FILE *yyget_out (void)
/** Get the length of the current token.
*
*/
-yy_size_t yyget_leng (void)
+int yyget_leng (void)
{
return yyleng;
}
@@ -1912,10 +1928,10 @@ static int yy_init_globals (void)
* This function is called from yylex_destroy(), so don't allocate here.
*/
- (yy_buffer_stack) = 0;
+ (yy_buffer_stack) = NULL;
(yy_buffer_stack_top) = 0;
(yy_buffer_stack_max) = 0;
- (yy_c_buf_p) = (char *) 0;
+ (yy_c_buf_p) = NULL;
(yy_init) = 0;
(yy_start) = 0;
@@ -1924,8 +1940,8 @@ static int yy_init_globals (void)
yyin = stdin;
yyout = stdout;
#else
- yyin = (FILE *) 0;
- yyout = (FILE *) 0;
+ yyin = NULL;
+ yyout = NULL;
#endif
/* For future reference: Set errno on error, since we are called by
@@ -1940,7 +1956,7 @@ int yylex_destroy (void)
/* Pop the buffer stack, destroying each element. */
while(YY_CURRENT_BUFFER){
- yy_delete_buffer(YY_CURRENT_BUFFER );
+ yy_delete_buffer( YY_CURRENT_BUFFER );
YY_CURRENT_BUFFER_LVALUE = NULL;
yypop_buffer_state();
}
@@ -1961,7 +1977,7 @@ int yylex_destroy (void)
*/
#ifndef yytext_ptr
-static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
+static void yy_flex_strncpy (char* s1, const char * s2, int n )
{
int i;
@@ -1971,7 +1987,7 @@ static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
#endif
#ifdef YY_NEED_STRLEN
-static int yy_flex_strlen (yyconst char * s )
+static int yy_flex_strlen (const char * s )
{
int n;
for ( n = 0; s[n]; ++n )
@@ -1983,7 +1999,7 @@ static int yy_flex_strlen (yyconst char * s )
void *yyalloc (yy_size_t size )
{
- return (void *) malloc( size );
+ return malloc(size);
}
void *yyrealloc (void * ptr, yy_size_t size )
@@ -1996,7 +2012,7 @@ void *yyrealloc (void * ptr, yy_size_t size )
* any pointer type to void*, and deal with argument conversions
* as though doing an assignment.
*/
- return (void *) realloc( (char *) ptr, size );
+ return realloc(ptr, size);
}
void yyfree (void * ptr )
@@ -2006,7 +2022,6 @@ void yyfree (void * ptr )
#define YYTABLES_NAME "yytables"
-#line 68 "wp_parser.l"
-
+#line 75 "wp_parser.l"