tagged release 0.7.1
[parrot.git] / compilers / pirc / new / pirlexer.h
blobb40e72edf1b17a6894ad7271a8ab044ec18303c9
1 #ifndef yyHEADER_H
2 #define yyHEADER_H 1
3 #define yyIN_HEADER 1
5 #line 6 "pirlexer.h"
7 #line 8 "pirlexer.h"
9 #define YY_INT_ALIGNED short int
11 /* A lexical scanner generated by flex */
13 #define FLEX_SCANNER
14 #define YY_FLEX_MAJOR_VERSION 2
15 #define YY_FLEX_MINOR_VERSION 5
16 #define YY_FLEX_SUBMINOR_VERSION 33
17 #if YY_FLEX_SUBMINOR_VERSION > 0
18 #define FLEX_BETA
19 #endif
21 /* %if-c++-only */
22 /* %endif */
24 /* %if-c-only */
26 /* %endif */
28 /* %if-c-only */
30 /* %endif */
32 /* First, we deal with platform-specific or compiler-specific issues. */
34 /* begin standard C headers. */
35 /* %if-c-only */
36 #include <stdio.h>
37 #include <string.h>
38 #include <errno.h>
39 #include <stdlib.h>
40 /* %endif */
42 /* %if-tables-serialization */
43 /* %endif */
44 /* end standard C headers. */
46 /* %if-c-or-c++ */
47 /* flex integer type definitions */
49 #ifndef FLEXINT_H
50 #define FLEXINT_H
52 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
54 #if __STDC_VERSION__ >= 199901L
56 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
57 * if you want the limit (max/min) macros for int types.
59 #ifndef __STDC_LIMIT_MACROS
60 #define __STDC_LIMIT_MACROS 1
61 #endif
63 #include <inttypes.h>
64 typedef int8_t flex_int8_t;
65 typedef uint8_t flex_uint8_t;
66 typedef int16_t flex_int16_t;
67 typedef uint16_t flex_uint16_t;
68 typedef int32_t flex_int32_t;
69 typedef uint32_t flex_uint32_t;
70 #else
71 typedef signed char flex_int8_t;
72 typedef short int flex_int16_t;
73 typedef int flex_int32_t;
74 typedef unsigned char flex_uint8_t;
75 typedef unsigned short int flex_uint16_t;
76 typedef unsigned int flex_uint32_t;
77 #endif /* ! C99 */
79 /* Limits of integral types. */
80 #ifndef INT8_MIN
81 #define INT8_MIN (-128)
82 #endif
83 #ifndef INT16_MIN
84 #define INT16_MIN (-32767-1)
85 #endif
86 #ifndef INT32_MIN
87 #define INT32_MIN (-2147483647-1)
88 #endif
89 #ifndef INT8_MAX
90 #define INT8_MAX (127)
91 #endif
92 #ifndef INT16_MAX
93 #define INT16_MAX (32767)
94 #endif
95 #ifndef INT32_MAX
96 #define INT32_MAX (2147483647)
97 #endif
98 #ifndef UINT8_MAX
99 #define UINT8_MAX (255U)
100 #endif
101 #ifndef UINT16_MAX
102 #define UINT16_MAX (65535U)
103 #endif
104 #ifndef UINT32_MAX
105 #define UINT32_MAX (4294967295U)
106 #endif
108 #endif /* ! FLEXINT_H */
110 /* %endif */
112 /* %if-c++-only */
113 /* %endif */
115 #ifdef __cplusplus
117 /* The "const" storage-class-modifier is valid. */
118 #define YY_USE_CONST
120 #else /* ! __cplusplus */
122 #if __STDC__
124 #define YY_USE_CONST
126 #endif /* __STDC__ */
127 #endif /* ! __cplusplus */
129 #ifdef YY_USE_CONST
130 #define yyconst const
131 #else
132 #define yyconst
133 #endif
135 /* %not-for-header */
137 /* %not-for-header */
139 /* %if-reentrant */
141 /* An opaque pointer. */
142 #ifndef YY_TYPEDEF_YY_SCANNER_T
143 #define YY_TYPEDEF_YY_SCANNER_T
144 typedef void* yyscan_t;
145 #endif
147 /* For convenience, these vars (plus the bison vars far below)
148 are macros in the reentrant scanner. */
149 #define yyin yyg->yyin_r
150 #define yyout yyg->yyout_r
151 #define yyextra yyg->yyextra_r
152 #define yyleng yyg->yyleng_r
153 #define yytext yyg->yytext_r
154 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
155 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
156 #define yy_flex_debug yyg->yy_flex_debug_r
158 int yylex_init (yyscan_t* scanner);
159 /* %endif */
161 /* %if-not-reentrant */
162 /* %endif */
164 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
165 #define YY_TYPEDEF_YY_BUFFER_STATE
166 typedef struct yy_buffer_state *YY_BUFFER_STATE;
167 #endif
169 /* %if-not-reentrant */
170 /* %endif */
172 /* %if-c-only */
173 /* %if-not-reentrant */
174 /* %endif */
175 /* %endif */
177 /* The following is because we cannot portably get our hands on size_t
178 * (without autoconf's help, which isn't available because we want
179 * flex-generated scanners to compile on their own).
182 #ifndef YY_TYPEDEF_YY_SIZE_T
183 #define YY_TYPEDEF_YY_SIZE_T
184 typedef unsigned int yy_size_t;
185 #endif
187 #ifndef YY_STRUCT_YY_BUFFER_STATE
188 #define YY_STRUCT_YY_BUFFER_STATE
189 struct yy_buffer_state
191 /* %if-c-only */
192 FILE *yy_input_file;
193 /* %endif */
195 /* %if-c++-only */
196 /* %endif */
198 char *yy_ch_buf; /* input buffer */
199 char *yy_buf_pos; /* current position in input buffer */
201 /* Size of input buffer in bytes, not including room for EOB
202 * characters.
204 yy_size_t yy_buf_size;
206 /* Number of characters read into yy_ch_buf, not including EOB
207 * characters.
209 int yy_n_chars;
211 /* Whether we "own" the buffer - i.e., we know we created it,
212 * and can realloc() it to grow it, and should free() it to
213 * delete it.
215 int yy_is_our_buffer;
217 /* Whether this is an "interactive" input source; if so, and
218 * if we're using stdio for input, then we want to use getc()
219 * instead of fread(), to make sure we stop fetching input after
220 * each newline.
222 int yy_is_interactive;
224 /* Whether we're considered to be at the beginning of a line.
225 * If so, '^' rules will be active on the next match, otherwise
226 * not.
228 int yy_at_bol;
230 int yy_bs_lineno; /**< The line count. */
231 int yy_bs_column; /**< The column count. */
233 /* Whether to try to fill the input buffer when we reach the
234 * end of it.
236 int yy_fill_buffer;
238 int yy_buffer_status;
241 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
243 /* %if-c-only Standard (non-C++) definition */
244 /* %not-for-header */
246 /* %endif */
248 /* %if-c-only Standard (non-C++) definition */
250 /* %if-not-reentrant */
251 /* %not-for-header */
253 /* %endif */
255 void yyrestart (FILE *input_file ,yyscan_t yyscanner );
256 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
257 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ,yyscan_t yyscanner );
258 void yy_delete_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
259 void yy_flush_buffer (YY_BUFFER_STATE b ,yyscan_t yyscanner );
260 void yypush_buffer_state (YY_BUFFER_STATE new_buffer ,yyscan_t yyscanner );
261 void yypop_buffer_state (yyscan_t yyscanner );
263 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ,yyscan_t yyscanner );
264 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ,yyscan_t yyscanner );
265 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ,yyscan_t yyscanner );
267 /* %endif */
269 void *yyalloc (yy_size_t ,yyscan_t yyscanner );
270 void *yyrealloc (void *,yy_size_t ,yyscan_t yyscanner );
271 void yyfree (void * ,yyscan_t yyscanner );
273 /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */
274 /* Begin user sect3 */
276 #define yywrap(n) 1
277 #define YY_SKIP_YYWRAP
279 #define FLEX_DEBUG
281 #define yytext_ptr yytext_r
283 /* %if-c-only Standard (non-C++) definition */
285 /* %endif */
287 #ifdef YY_HEADER_EXPORT_START_CONDITIONS
288 #define INITIAL 0
290 #endif
292 #ifndef YY_NO_UNISTD_H
293 /* Special case for "unistd.h", since it is non-ANSI. We include it way
294 * down here because we want the user's section 1 to have been scanned first.
295 * The user has a chance to override it with an option.
297 /* %if-c-only */
298 #include <unistd.h>
299 /* %endif */
300 /* %if-c++-only */
301 /* %endif */
302 #endif
304 #ifndef YY_EXTRA_TYPE
305 #define YY_EXTRA_TYPE void *
306 #endif
308 /* %if-c-only Reentrant structure and macros (non-C++). */
309 /* %if-reentrant */
311 /* %if-c-only */
313 /* %endif */
315 /* %if-reentrant */
317 /* %endif */
319 /* Accessor methods to globals.
320 These are made visible to non-reentrant scanners for convenience. */
322 int yylex_destroy (yyscan_t yyscanner );
324 int yyget_debug (yyscan_t yyscanner );
326 void yyset_debug (int debug_flag ,yyscan_t yyscanner );
328 YY_EXTRA_TYPE yyget_extra (yyscan_t yyscanner );
330 void yyset_extra (YY_EXTRA_TYPE user_defined ,yyscan_t yyscanner );
332 FILE *yyget_in (yyscan_t yyscanner );
334 void yyset_in (FILE * in_str ,yyscan_t yyscanner );
336 FILE *yyget_out (yyscan_t yyscanner );
338 void yyset_out (FILE * out_str ,yyscan_t yyscanner );
340 int yyget_leng (yyscan_t yyscanner );
342 char *yyget_text (yyscan_t yyscanner );
344 int yyget_lineno (yyscan_t yyscanner );
346 void yyset_lineno (int line_number ,yyscan_t yyscanner );
348 /* %if-bison-bridge */
350 YYSTYPE * yyget_lval (yyscan_t yyscanner );
352 void yyset_lval (YYSTYPE * yylval_param ,yyscan_t yyscanner );
354 /* %endif */
355 /* %endif End reentrant structures and macros. */
357 /* Macros after this point can all be overridden by user definitions in
358 * section 1.
361 #ifndef YY_SKIP_YYWRAP
362 #ifdef __cplusplus
363 extern "C" int yywrap (yyscan_t yyscanner );
364 #else
365 extern int yywrap (yyscan_t yyscanner );
366 #endif
367 #endif
369 /* %not-for-header */
371 /* %endif */
373 #ifndef yytext_ptr
374 static void yy_flex_strncpy (char *,yyconst char *,int ,yyscan_t yyscanner);
375 #endif
377 #ifdef YY_NEED_STRLEN
378 static int yy_flex_strlen (yyconst char * ,yyscan_t yyscanner);
379 #endif
381 #ifndef YY_NO_INPUT
382 /* %if-c-only Standard (non-C++) definition */
383 /* %not-for-header */
385 /* %endif */
386 #endif
388 /* %if-c-only */
390 /* %endif */
392 /* Amount of stuff to slurp up with each read. */
393 #ifndef YY_READ_BUF_SIZE
394 #define YY_READ_BUF_SIZE 8192
395 #endif
397 /* Number of entries by which start-condition stack grows. */
398 #ifndef YY_START_STACK_INCR
399 #define YY_START_STACK_INCR 25
400 #endif
402 /* %if-tables-serialization structures and prototypes */
403 /* %not-for-header */
405 /* %not-for-header */
407 /* Default declaration of generated scanner - a define so the user can
408 * easily add parameters.
410 #ifndef YY_DECL
411 #define YY_DECL_IS_OURS 1
412 /* %if-c-only Standard (non-C++) definition */
414 extern int yylex (YYSTYPE * yylval_param ,yyscan_t yyscanner);
416 #define YY_DECL int yylex (YYSTYPE * yylval_param , yyscan_t yyscanner)
417 /* %endif */
418 /* %if-c++-only C++ definition */
419 /* %endif */
420 #endif /* !YY_DECL */
422 /* %not-for-header */
424 /* %if-c++-only */
425 /* %not-for-header */
427 /* %endif */
429 /* yy_get_previous_state - get the state just before the EOB char was reached */
431 /* %if-c-only */
432 /* %not-for-header */
434 #undef YY_NEW_FILE
435 #undef YY_FLUSH_BUFFER
436 #undef yy_set_bol
437 #undef yy_new_buffer
438 #undef yy_set_interactive
439 #undef YY_DO_BEFORE_ACTION
441 #ifdef YY_DECL_IS_OURS
442 #undef YY_DECL_IS_OURS
443 #undef YY_DECL
444 #endif
446 #line 317 "pir.l"
449 #line 450 "pirlexer.h"
450 #undef yyIN_HEADER
451 #endif /* yyHEADER_H */