1 #ifndef parser_HEADER_H
2 #define parser_HEADER_H 1
3 #define parser_IN_HEADER 1
9 #define YY_INT_ALIGNED short int
11 /* A lexical scanner generated by flex */
14 #define YY_FLEX_MAJOR_VERSION 2
15 #define YY_FLEX_MINOR_VERSION 5
16 #define YY_FLEX_SUBMINOR_VERSION 37
17 #if YY_FLEX_SUBMINOR_VERSION > 0
21 /* First, we deal with platform-specific or compiler-specific issues. */
23 /* begin standard C headers. */
29 /* end standard C headers. */
31 /* flex integer type definitions */
36 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
38 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
40 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
41 * if you want the limit (max/min) macros for int types.
43 #ifndef __STDC_LIMIT_MACROS
44 #define __STDC_LIMIT_MACROS 1
48 typedef int8_t flex_int8_t
;
49 typedef uint8_t flex_uint8_t
;
50 typedef int16_t flex_int16_t
;
51 typedef uint16_t flex_uint16_t
;
52 typedef int32_t flex_int32_t
;
53 typedef uint32_t flex_uint32_t
;
55 typedef signed char flex_int8_t
;
56 typedef short int flex_int16_t
;
57 typedef int flex_int32_t
;
58 typedef unsigned char flex_uint8_t
;
59 typedef unsigned short int flex_uint16_t
;
60 typedef unsigned int flex_uint32_t
;
62 /* Limits of integral types. */
64 #define INT8_MIN (-128)
67 #define INT16_MIN (-32767-1)
70 #define INT32_MIN (-2147483647-1)
73 #define INT8_MAX (127)
76 #define INT16_MAX (32767)
79 #define INT32_MAX (2147483647)
82 #define UINT8_MAX (255U)
85 #define UINT16_MAX (65535U)
88 #define UINT32_MAX (4294967295U)
93 #endif /* ! FLEXINT_H */
97 /* The "const" storage-class-modifier is valid. */
100 #else /* ! __cplusplus */
102 /* C99 requires __STDC__ to be defined as 1. */
103 #if defined (__STDC__)
107 #endif /* defined (__STDC__) */
108 #endif /* ! __cplusplus */
111 #define yyconst const
116 /* Size of default input buffer. */
118 #define YY_BUF_SIZE 16384
121 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
122 #define YY_TYPEDEF_YY_BUFFER_STATE
123 typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
126 #ifndef YY_TYPEDEF_YY_SIZE_T
127 #define YY_TYPEDEF_YY_SIZE_T
128 typedef size_t yy_size_t
;
131 extern yy_size_t parser_leng
;
133 extern FILE *parser_in
, *parser_out
;
135 #ifndef YY_STRUCT_YY_BUFFER_STATE
136 #define YY_STRUCT_YY_BUFFER_STATE
137 struct yy_buffer_state
141 char *yy_ch_buf
; /* input buffer */
142 char *yy_buf_pos
; /* current position in input buffer */
144 /* Size of input buffer in bytes, not including room for EOB
147 yy_size_t yy_buf_size
;
149 /* Number of characters read into yy_ch_buf, not including EOB
152 yy_size_t yy_n_chars
;
154 /* Whether we "own" the buffer - i.e., we know we created it,
155 * and can realloc() it to grow it, and should free() it to
158 int yy_is_our_buffer
;
160 /* Whether this is an "interactive" input source; if so, and
161 * if we're using stdio for input, then we want to use getc()
162 * instead of fread(), to make sure we stop fetching input after
165 int yy_is_interactive
;
167 /* Whether we're considered to be at the beginning of a line.
168 * If so, '^' rules will be active on the next match, otherwise
173 int yy_bs_lineno
; /**< The line count. */
174 int yy_bs_column
; /**< The column count. */
176 /* Whether to try to fill the input buffer when we reach the
181 int yy_buffer_status
;
184 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
186 void parser_restart (FILE *input_file
);
187 void parser__switch_to_buffer (YY_BUFFER_STATE new_buffer
);
188 YY_BUFFER_STATE
parser__create_buffer (FILE *file
,int size
);
189 void parser__delete_buffer (YY_BUFFER_STATE b
);
190 void parser__flush_buffer (YY_BUFFER_STATE b
);
191 void parser_push_buffer_state (YY_BUFFER_STATE new_buffer
);
192 void parser_pop_buffer_state (void );
194 YY_BUFFER_STATE
parser__scan_buffer (char *base
,yy_size_t size
);
195 YY_BUFFER_STATE
parser__scan_string (yyconst
char *yy_str
);
196 YY_BUFFER_STATE
parser__scan_bytes (yyconst
char *bytes
,yy_size_t len
);
198 void *parser_alloc (yy_size_t
);
199 void *parser_realloc (void *,yy_size_t
);
200 void parser_free (void * );
202 /* Begin user sect3 */
204 extern int parser_lineno
;
206 extern char *parser_text
;
207 #define yytext_ptr parser_text
209 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
220 #ifndef YY_NO_UNISTD_H
221 /* Special case for "unistd.h", since it is non-ANSI. We include it way
222 * down here because we want the user's section 1 to have been scanned first.
223 * The user has a chance to override it with an option.
228 #ifndef YY_EXTRA_TYPE
229 #define YY_EXTRA_TYPE void *
232 /* Accessor methods to globals.
233 These are made visible to non-reentrant scanners for convenience. */
235 int parser_lex_destroy (void );
237 int parser_get_debug (void );
239 void parser_set_debug (int debug_flag
);
241 YY_EXTRA_TYPE
parser_get_extra (void );
243 void parser_set_extra (YY_EXTRA_TYPE user_defined
);
245 FILE *parser_get_in (void );
247 void parser_set_in (FILE * in_str
);
249 FILE *parser_get_out (void );
251 void parser_set_out (FILE * out_str
);
253 yy_size_t
parser_get_leng (void );
255 char *parser_get_text (void );
257 int parser_get_lineno (void );
259 void parser_set_lineno (int line_number
);
261 /* Macros after this point can all be overridden by user definitions in
265 #ifndef YY_SKIP_YYWRAP
267 extern "C" int parser_wrap (void );
269 extern int parser_wrap (void );
274 static void yy_flex_strncpy (char *,yyconst
char *,int );
277 #ifdef YY_NEED_STRLEN
278 static int yy_flex_strlen (yyconst
char * );
285 /* Amount of stuff to slurp up with each read. */
286 #ifndef YY_READ_BUF_SIZE
287 #define YY_READ_BUF_SIZE 8192
290 /* Number of entries by which start-condition stack grows. */
291 #ifndef YY_START_STACK_INCR
292 #define YY_START_STACK_INCR 25
295 /* Default declaration of generated scanner - a define so the user can
296 * easily add parameters.
299 #define YY_DECL_IS_OURS 1
301 extern int parser_lex (void);
303 #define YY_DECL int parser_lex (void)
304 #endif /* !YY_DECL */
306 /* yy_get_previous_state - get the state just before the EOB char was reached */
309 #undef YY_FLUSH_BUFFER
312 #undef yy_set_interactive
313 #undef YY_DO_BEFORE_ACTION
315 #ifdef YY_DECL_IS_OURS
316 #undef YY_DECL_IS_OURS
323 #line 324 "parser.yy.h"
324 #undef parser_IN_HEADER
325 #endif /* parser_HEADER_H */