PIPS
lexer.c
Go to the documentation of this file.
1 
2 #line 3 "<stdout>"
3 
4 #define YY_INT_ALIGNED short int
5 
6 /* A lexical scanner generated by flex */
7 
8 #define yy_create_buffer pipsmake__create_buffer
9 #define yy_delete_buffer pipsmake__delete_buffer
10 #define yy_scan_buffer pipsmake__scan_buffer
11 #define yy_scan_string pipsmake__scan_string
12 #define yy_scan_bytes pipsmake__scan_bytes
13 #define yy_init_buffer pipsmake__init_buffer
14 #define yy_flush_buffer pipsmake__flush_buffer
15 #define yy_load_buffer_state pipsmake__load_buffer_state
16 #define yy_switch_to_buffer pipsmake__switch_to_buffer
17 #define yypush_buffer_state pipsmake_push_buffer_state
18 #define yypop_buffer_state pipsmake_pop_buffer_state
19 #define yyensure_buffer_stack pipsmake_ensure_buffer_stack
20 #define yy_flex_debug pipsmake__flex_debug
21 #define yyin pipsmake_in
22 #define yyleng pipsmake_leng
23 #define yylex pipsmake_lex
24 #define yylineno pipsmake_lineno
25 #define yyout pipsmake_out
26 #define yyrestart pipsmake_restart
27 #define yytext pipsmake_text
28 #define yywrap pipsmake_wrap
29 #define yyalloc pipsmake_alloc
30 #define yyrealloc pipsmake_realloc
31 #define yyfree pipsmake_free
32 
33 #define FLEX_SCANNER
34 #define YY_FLEX_MAJOR_VERSION 2
35 #define YY_FLEX_MINOR_VERSION 6
36 #define YY_FLEX_SUBMINOR_VERSION 4
37 #if YY_FLEX_SUBMINOR_VERSION > 0
38 #define FLEX_BETA
39 #endif
40 
41 #ifdef yy_create_buffer
42 #define pipsmake__create_buffer_ALREADY_DEFINED
43 #else
44 #define yy_create_buffer pipsmake__create_buffer
45 #endif
46 
47 #ifdef yy_delete_buffer
48 #define pipsmake__delete_buffer_ALREADY_DEFINED
49 #else
50 #define yy_delete_buffer pipsmake__delete_buffer
51 #endif
52 
53 #ifdef yy_scan_buffer
54 #define pipsmake__scan_buffer_ALREADY_DEFINED
55 #else
56 #define yy_scan_buffer pipsmake__scan_buffer
57 #endif
58 
59 #ifdef yy_scan_string
60 #define pipsmake__scan_string_ALREADY_DEFINED
61 #else
62 #define yy_scan_string pipsmake__scan_string
63 #endif
64 
65 #ifdef yy_scan_bytes
66 #define pipsmake__scan_bytes_ALREADY_DEFINED
67 #else
68 #define yy_scan_bytes pipsmake__scan_bytes
69 #endif
70 
71 #ifdef yy_init_buffer
72 #define pipsmake__init_buffer_ALREADY_DEFINED
73 #else
74 #define yy_init_buffer pipsmake__init_buffer
75 #endif
76 
77 #ifdef yy_flush_buffer
78 #define pipsmake__flush_buffer_ALREADY_DEFINED
79 #else
80 #define yy_flush_buffer pipsmake__flush_buffer
81 #endif
82 
83 #ifdef yy_load_buffer_state
84 #define pipsmake__load_buffer_state_ALREADY_DEFINED
85 #else
86 #define yy_load_buffer_state pipsmake__load_buffer_state
87 #endif
88 
89 #ifdef yy_switch_to_buffer
90 #define pipsmake__switch_to_buffer_ALREADY_DEFINED
91 #else
92 #define yy_switch_to_buffer pipsmake__switch_to_buffer
93 #endif
94 
95 #ifdef yypush_buffer_state
96 #define pipsmake_push_buffer_state_ALREADY_DEFINED
97 #else
98 #define yypush_buffer_state pipsmake_push_buffer_state
99 #endif
100 
101 #ifdef yypop_buffer_state
102 #define pipsmake_pop_buffer_state_ALREADY_DEFINED
103 #else
104 #define yypop_buffer_state pipsmake_pop_buffer_state
105 #endif
106 
107 #ifdef yyensure_buffer_stack
108 #define pipsmake_ensure_buffer_stack_ALREADY_DEFINED
109 #else
110 #define yyensure_buffer_stack pipsmake_ensure_buffer_stack
111 #endif
112 
113 #ifdef yylex
114 #define pipsmake_lex_ALREADY_DEFINED
115 #else
116 #define yylex pipsmake_lex
117 #endif
118 
119 #ifdef yyrestart
120 #define pipsmake_restart_ALREADY_DEFINED
121 #else
122 #define yyrestart pipsmake_restart
123 #endif
124 
125 #ifdef yylex_init
126 #define pipsmake_lex_init_ALREADY_DEFINED
127 #else
128 #define yylex_init pipsmake_lex_init
129 #endif
130 
131 #ifdef yylex_init_extra
132 #define pipsmake_lex_init_extra_ALREADY_DEFINED
133 #else
134 #define yylex_init_extra pipsmake_lex_init_extra
135 #endif
136 
137 #ifdef yylex_destroy
138 #define pipsmake_lex_destroy_ALREADY_DEFINED
139 #else
140 #define yylex_destroy pipsmake_lex_destroy
141 #endif
142 
143 #ifdef yyget_debug
144 #define pipsmake_get_debug_ALREADY_DEFINED
145 #else
146 #define yyget_debug pipsmake_get_debug
147 #endif
148 
149 #ifdef yyset_debug
150 #define pipsmake_set_debug_ALREADY_DEFINED
151 #else
152 #define yyset_debug pipsmake_set_debug
153 #endif
154 
155 #ifdef yyget_extra
156 #define pipsmake_get_extra_ALREADY_DEFINED
157 #else
158 #define yyget_extra pipsmake_get_extra
159 #endif
160 
161 #ifdef yyset_extra
162 #define pipsmake_set_extra_ALREADY_DEFINED
163 #else
164 #define yyset_extra pipsmake_set_extra
165 #endif
166 
167 #ifdef yyget_in
168 #define pipsmake_get_in_ALREADY_DEFINED
169 #else
170 #define yyget_in pipsmake_get_in
171 #endif
172 
173 #ifdef yyset_in
174 #define pipsmake_set_in_ALREADY_DEFINED
175 #else
176 #define yyset_in pipsmake_set_in
177 #endif
178 
179 #ifdef yyget_out
180 #define pipsmake_get_out_ALREADY_DEFINED
181 #else
182 #define yyget_out pipsmake_get_out
183 #endif
184 
185 #ifdef yyset_out
186 #define pipsmake_set_out_ALREADY_DEFINED
187 #else
188 #define yyset_out pipsmake_set_out
189 #endif
190 
191 #ifdef yyget_leng
192 #define pipsmake_get_leng_ALREADY_DEFINED
193 #else
194 #define yyget_leng pipsmake_get_leng
195 #endif
196 
197 #ifdef yyget_text
198 #define pipsmake_get_text_ALREADY_DEFINED
199 #else
200 #define yyget_text pipsmake_get_text
201 #endif
202 
203 #ifdef yyget_lineno
204 #define pipsmake_get_lineno_ALREADY_DEFINED
205 #else
206 #define yyget_lineno pipsmake_get_lineno
207 #endif
208 
209 #ifdef yyset_lineno
210 #define pipsmake_set_lineno_ALREADY_DEFINED
211 #else
212 #define yyset_lineno pipsmake_set_lineno
213 #endif
214 
215 #ifdef yywrap
216 #define pipsmake_wrap_ALREADY_DEFINED
217 #else
218 #define yywrap pipsmake_wrap
219 #endif
220 
221 #ifdef yyalloc
222 #define pipsmake_alloc_ALREADY_DEFINED
223 #else
224 #define yyalloc pipsmake_alloc
225 #endif
226 
227 #ifdef yyrealloc
228 #define pipsmake_realloc_ALREADY_DEFINED
229 #else
230 #define yyrealloc pipsmake_realloc
231 #endif
232 
233 #ifdef yyfree
234 #define pipsmake_free_ALREADY_DEFINED
235 #else
236 #define yyfree pipsmake_free
237 #endif
238 
239 #ifdef yytext
240 #define pipsmake_text_ALREADY_DEFINED
241 #else
242 #define yytext pipsmake_text
243 #endif
244 
245 #ifdef yyleng
246 #define pipsmake_leng_ALREADY_DEFINED
247 #else
248 #define yyleng pipsmake_leng
249 #endif
250 
251 #ifdef yyin
252 #define pipsmake_in_ALREADY_DEFINED
253 #else
254 #define yyin pipsmake_in
255 #endif
256 
257 #ifdef yyout
258 #define pipsmake_out_ALREADY_DEFINED
259 #else
260 #define yyout pipsmake_out
261 #endif
262 
263 #ifdef yy_flex_debug
264 #define pipsmake__flex_debug_ALREADY_DEFINED
265 #else
266 #define yy_flex_debug pipsmake__flex_debug
267 #endif
268 
269 #ifdef yylineno
270 #define pipsmake_lineno_ALREADY_DEFINED
271 #else
272 #define yylineno pipsmake_lineno
273 #endif
274 
275 /* First, we deal with platform-specific or compiler-specific issues. */
276 
277 /* begin standard C headers. */
278 #include <stdio.h>
279 #include <string.h>
280 #include <errno.h>
281 #include <stdlib.h>
282 
283 /* end standard C headers. */
284 
285 /* flex integer type definitions */
286 
287 #ifndef FLEXINT_H
288 #define FLEXINT_H
289 
290 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
291 
292 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
293 
294 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
295  * if you want the limit (max/min) macros for int types.
296  */
297 #ifndef __STDC_LIMIT_MACROS
298 #define __STDC_LIMIT_MACROS 1
299 #endif
300 
301 #include <inttypes.h>
302 typedef int8_t flex_int8_t;
303 typedef uint8_t flex_uint8_t;
304 typedef int16_t flex_int16_t;
305 typedef uint16_t flex_uint16_t;
306 typedef int32_t flex_int32_t;
307 typedef uint32_t flex_uint32_t;
308 #else
309 typedef signed char flex_int8_t;
310 typedef short int flex_int16_t;
311 typedef int flex_int32_t;
312 typedef unsigned char flex_uint8_t;
313 typedef unsigned short int flex_uint16_t;
314 typedef unsigned int flex_uint32_t;
315 
316 /* Limits of integral types. */
317 #ifndef INT8_MIN
318 #define INT8_MIN (-128)
319 #endif
320 #ifndef INT16_MIN
321 #define INT16_MIN (-32767-1)
322 #endif
323 #ifndef INT32_MIN
324 #define INT32_MIN (-2147483647-1)
325 #endif
326 #ifndef INT8_MAX
327 #define INT8_MAX (127)
328 #endif
329 #ifndef INT16_MAX
330 #define INT16_MAX (32767)
331 #endif
332 #ifndef INT32_MAX
333 #define INT32_MAX (2147483647)
334 #endif
335 #ifndef UINT8_MAX
336 #define UINT8_MAX (255U)
337 #endif
338 #ifndef UINT16_MAX
339 #define UINT16_MAX (65535U)
340 #endif
341 #ifndef UINT32_MAX
342 #define UINT32_MAX (4294967295U)
343 #endif
344 
345 #ifndef SIZE_MAX
346 #define SIZE_MAX (~(size_t)0)
347 #endif
348 
349 #endif /* ! C99 */
350 
351 #endif /* ! FLEXINT_H */
352 
353 /* begin standard C++ headers. */
354 
355 /* TODO: this is always defined, so inline it */
356 #define yyconst const
357 
358 #if defined(__GNUC__) && __GNUC__ >= 3
359 #define yynoreturn __attribute__((__noreturn__))
360 #else
361 #define yynoreturn
362 #endif
363 
364 /* Returned upon end-of-file. */
365 #define YY_NULL 0
366 
367 /* Promotes a possibly negative, possibly signed char to an
368  * integer in range [0..255] for use as an array index.
369  */
370 #define YY_SC_TO_UI(c) ((YY_CHAR) (c))
371 
372 /* Enter a start condition. This macro really ought to take a parameter,
373  * but we do it the disgusting crufty way forced on us by the ()-less
374  * definition of BEGIN.
375  */
376 #define BEGIN (yy_start) = 1 + 2 *
377 /* Translate the current start state into a value that can be later handed
378  * to BEGIN to return to the state. The YYSTATE alias is for lex
379  * compatibility.
380  */
381 #define YY_START (((yy_start) - 1) / 2)
382 #define YYSTATE YY_START
383 /* Action number for EOF rule of a given start state. */
384 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
385 /* Special action meaning "start processing a new file". */
386 #define YY_NEW_FILE yyrestart( yyin )
387 #define YY_END_OF_BUFFER_CHAR 0
388 
389 /* Size of default input buffer. */
390 #ifndef YY_BUF_SIZE
391 #ifdef __ia64__
392 /* On IA-64, the buffer size is 16k, not 8k.
393  * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
394  * Ditto for the __ia64__ case accordingly.
395  */
396 #define YY_BUF_SIZE 32768
397 #else
398 #define YY_BUF_SIZE 16384
399 #endif /* __ia64__ */
400 #endif
401 
402 /* The state buf must be large enough to hold one state per character in the main buffer.
403  */
404 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
405 
406 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
407 #define YY_TYPEDEF_YY_BUFFER_STATE
409 #endif
410 
411 #ifndef YY_TYPEDEF_YY_SIZE_T
412 #define YY_TYPEDEF_YY_SIZE_T
413 typedef size_t yy_size_t;
414 #endif
415 
416 extern int yyleng;
417 
418 extern FILE *yyin, *yyout;
419 
420 #define EOB_ACT_CONTINUE_SCAN 0
421 #define EOB_ACT_END_OF_FILE 1
422 #define EOB_ACT_LAST_MATCH 2
423 
424  #define YY_LESS_LINENO(n)
425  #define YY_LINENO_REWIND_TO(ptr)
426 
427 /* Return all but the first "n" matched characters back to the input stream. */
428 #define yyless(n) \
429  do \
430  { \
431  /* Undo effects of setting up yytext. */ \
432  int yyless_macro_arg = (n); \
433  YY_LESS_LINENO(yyless_macro_arg);\
434  *yy_cp = (yy_hold_char); \
435  YY_RESTORE_YY_MORE_OFFSET \
436  (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
437  YY_DO_BEFORE_ACTION; /* set up yytext again */ \
438  } \
439  while ( 0 )
440 #define unput(c) yyunput( c, (yytext_ptr) )
441 
442 #ifndef YY_STRUCT_YY_BUFFER_STATE
443 #define YY_STRUCT_YY_BUFFER_STATE
444 struct yy_buffer_state
445  {
446  FILE *yy_input_file;
447 
448  char *yy_ch_buf; /* input buffer */
449  char *yy_buf_pos; /* current position in input buffer */
450 
451  /* Size of input buffer in bytes, not including room for EOB
452  * characters.
453  */
454  int yy_buf_size;
455 
456  /* Number of characters read into yy_ch_buf, not including EOB
457  * characters.
458  */
459  int yy_n_chars;
460 
461  /* Whether we "own" the buffer - i.e., we know we created it,
462  * and can realloc() it to grow it, and should free() it to
463  * delete it.
464  */
465  int yy_is_our_buffer;
466 
467  /* Whether this is an "interactive" input source; if so, and
468  * if we're using stdio for input, then we want to use getc()
469  * instead of fread(), to make sure we stop fetching input after
470  * each newline.
471  */
472  int yy_is_interactive;
473 
474  /* Whether we're considered to be at the beginning of a line.
475  * If so, '^' rules will be active on the next match, otherwise
476  * not.
477  */
478  int yy_at_bol;
479 
480  int yy_bs_lineno; /**< The line count. */
481  int yy_bs_column; /**< The column count. */
482 
483  /* Whether to try to fill the input buffer when we reach the
484  * end of it.
485  */
486  int yy_fill_buffer;
487 
488  int yy_buffer_status;
489 
490 #define YY_BUFFER_NEW 0
491 #define YY_BUFFER_NORMAL 1
492  /* When an EOF's been seen but there's still some text to process
493  * then we mark the buffer as YY_EOF_PENDING, to indicate that we
494  * shouldn't try reading from the input source any more. We might
495  * still have a bunch of tokens to match, though, because of
496  * possible backing-up.
497  *
498  * When we actually see the EOF, we change the status to "new"
499  * (via yyrestart()), so that the user can continue scanning by
500  * just pointing yyin at a new input file.
501  */
502 #define YY_BUFFER_EOF_PENDING 2
503 
504  };
505 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
506 
507 /* Stack of input buffers. */
508 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
509 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
510 static YY_BUFFER_STATE * yy_buffer_stack = NULL; /**< Stack as an array. */
511 
512 /* We provide macros for accessing buffer states in case in the
513  * future we want to put the buffer states in a more general
514  * "scanner state".
515  *
516  * Returns the top of the stack, or NULL.
517  */
518 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
519  ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
520  : NULL)
521 /* Same as previous macro, but useful when we know that the buffer stack is not
522  * NULL or when we need an lvalue. For internal use only.
523  */
524 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
525 
526 /* yy_hold_char holds the character lost when yytext is formed. */
527 static char yy_hold_char;
528 static int yy_n_chars; /* number of characters read into yy_ch_buf */
529 int yyleng;
530 
531 /* Points to current character in buffer. */
532 static char *yy_c_buf_p = NULL;
533 static int yy_init = 0; /* whether we need to initialize */
534 static int yy_start = 0; /* start state number */
535 
536 /* Flag which is used to allow yywrap()'s to do buffer switches
537  * instead of setting up a fresh yyin. A bit of a hack ...
538  */
540 
541 void yyrestart ( FILE *input_file );
543 YY_BUFFER_STATE yy_create_buffer ( FILE *file, int size );
547 void yypop_buffer_state ( void );
548 
549 static void yyensure_buffer_stack ( void );
550 static void yy_load_buffer_state ( void );
551 static void yy_init_buffer ( YY_BUFFER_STATE b, FILE *file );
552 #define YY_FLUSH_BUFFER yy_flush_buffer( YY_CURRENT_BUFFER )
553 
555 YY_BUFFER_STATE yy_scan_string ( const char *yy_str );
556 YY_BUFFER_STATE yy_scan_bytes ( const char *bytes, int len );
557 
558 void *yyalloc ( yy_size_t );
559 void *yyrealloc ( void *, yy_size_t );
560 void yyfree ( void * );
561 
562 #define yy_new_buffer yy_create_buffer
563 #define yy_set_interactive(is_interactive) \
564  { \
565  if ( ! YY_CURRENT_BUFFER ){ \
566  yyensure_buffer_stack (); \
567  YY_CURRENT_BUFFER_LVALUE = \
568  yy_create_buffer( yyin, YY_BUF_SIZE ); \
569  } \
570  YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
571  }
572 #define yy_set_bol(at_bol) \
573  { \
574  if ( ! YY_CURRENT_BUFFER ){\
575  yyensure_buffer_stack (); \
576  YY_CURRENT_BUFFER_LVALUE = \
577  yy_create_buffer( yyin, YY_BUF_SIZE ); \
578  } \
579  YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
580  }
581 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
582 
583 /* Begin user sect3 */
585 
586 FILE *yyin , *yyout ;
587 
588 typedef int yy_state_type;
589 
590 extern int yylineno;
591 int yylineno = 1;
592 
593 extern char *yytext;
594 #ifdef yytext_ptr
595 #undef yytext_ptr
596 #endif
597 #define yytext_ptr yytext
598 
601 static int yy_get_next_buffer ( void );
602 static void yynoreturn yy_fatal_error ( const char* msg );
603 
604 /* Done after the current pattern has been matched and before the
605  * corresponding action - sets up yytext.
606  */
607 #define YY_DO_BEFORE_ACTION \
608  (yytext_ptr) = yy_bp; \
609  yyleng = (int) (yy_cp - yy_bp); \
610  (yy_hold_char) = *yy_cp; \
611  *yy_cp = '\0'; \
612  (yy_c_buf_p) = yy_cp;
613 #define YY_NUM_RULES 24
614 #define YY_END_OF_BUFFER 25
615 /* This struct is not used in this scanner,
616  but its presence is necessary. */
617 struct yy_trans_info
618  {
621  };
622 static const flex_int16_t yy_accept[88] =
623  { 0,
624  0, 0, 0, 0, 1, 1, 25, 24, 5, 5,
625  5, 23, 1, 1, 19, 17, 20, 22, 21, 23,
626  15, 18, 16, 22, 22, 22, 22, 22, 4, 1,
627  22, 2, 0, 22, 22, 22, 22, 22, 22, 22,
628  0, 12, 22, 22, 22, 22, 22, 22, 0, 22,
629  22, 22, 8, 22, 22, 22, 0, 22, 22, 22,
630  22, 22, 22, 0, 22, 22, 9, 22, 7, 22,
631  13, 0, 10, 11, 22, 6, 3, 22, 22, 22,
632  22, 22, 22, 22, 22, 14, 0
633  } ;
634 
635 static const YY_CHAR yy_ec[256] =
636  { 0,
637  1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
638  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
639  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
640  1, 2, 4, 1, 5, 1, 1, 1, 1, 1,
641  1, 6, 1, 1, 7, 8, 9, 7, 7, 7,
642  7, 7, 7, 7, 7, 7, 7, 1, 1, 10,
643  11, 12, 1, 1, 13, 7, 14, 15, 16, 7,
644  17, 7, 18, 7, 7, 19, 20, 21, 22, 23,
645  7, 24, 25, 26, 27, 7, 7, 7, 7, 7,
646  28, 1, 29, 30, 31, 1, 7, 7, 7, 7,
647 
648  7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
649  7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
650  7, 7, 1, 1, 1, 1, 1, 1, 1, 1,
651  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
652  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
653  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
654  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
655  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
656  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
657  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
658 
659  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
660  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
661  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
662  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
663  1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
664  1, 1, 1, 1, 1
665  } ;
666 
667 static const YY_CHAR yy_meta[32] =
668  { 0,
669  1, 1, 1, 1, 1, 1, 2, 1, 1, 1,
670  1, 1, 2, 2, 2, 2, 2, 2, 2, 2,
671  2, 2, 2, 2, 2, 2, 2, 1, 1, 1,
672  2
673  } ;
674 
675 static const flex_int16_t yy_base[91] =
676  { 0,
677  0, 0, 0, 1, 7, 0, 105, 106, 106, 106,
678  95, 106, 37, 39, 106, 106, 106, 0, 106, 37,
679  106, 106, 106, 84, 31, 32, 78, 85, 106, 45,
680  0, 106, 72, 80, 79, 77, 78, 80, 72, 74,
681  62, 0, 72, 29, 69, 62, 71, 71, 83, 69,
682  62, 65, 0, 63, 57, 66, 50, 34, 57, 58,
683  60, 62, 48, 67, 47, 46, 0, 57, 0, 49,
684  0, 65, 0, 0, 41, 0, 106, 48, 43, 43,
685  32, 30, 35, 37, 25, 0, 106, 58, 60, 0
686  } ;
687 
688 static const flex_int16_t yy_def[91] =
689  { 0,
690  88, 88, 89, 89, 87, 5, 87, 87, 87, 87,
691  87, 87, 87, 87, 87, 87, 87, 90, 87, 87,
692  87, 87, 87, 90, 90, 90, 90, 90, 87, 87,
693  90, 87, 87, 90, 90, 90, 90, 90, 90, 90,
694  87, 90, 90, 90, 90, 90, 90, 90, 87, 90,
695  90, 90, 90, 90, 90, 90, 87, 90, 90, 90,
696  90, 90, 90, 87, 90, 90, 90, 90, 90, 90,
697  90, 87, 90, 90, 90, 90, 87, 90, 90, 90,
698  90, 90, 90, 90, 90, 90, 0, 87, 87, 87
699  } ;
700 
701 static const flex_int16_t yy_nxt[138] =
702  { 0,
703  87, 31, 10, 10, 87, 11, 11, 12, 13, 14,
704  15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
705  25, 18, 18, 18, 18, 18, 26, 18, 18, 27,
706  18, 28, 18, 18, 12, 12, 12, 18, 30, 30,
707  30, 30, 32, 35, 37, 33, 30, 30, 51, 65,
708  86, 52, 36, 38, 85, 84, 83, 66, 8, 8,
709  9, 9, 82, 81, 80, 79, 78, 77, 76, 75,
710  74, 73, 72, 71, 70, 69, 68, 67, 64, 63,
711  62, 61, 60, 59, 58, 57, 56, 55, 54, 53,
712  50, 49, 48, 47, 46, 45, 44, 43, 42, 41,
713 
714  40, 39, 34, 29, 87, 7, 87, 87, 87, 87,
715  87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
716  87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
717  87, 87, 87, 87, 87, 87, 87
718  } ;
719 
720 static const flex_int16_t yy_chk[138] =
721  { 0,
722  0, 90, 3, 4, 0, 3, 4, 5, 5, 5,
723  5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
724  5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
725  5, 5, 5, 5, 5, 5, 5, 5, 13, 13,
726  14, 14, 20, 25, 26, 20, 30, 30, 44, 58,
727  85, 44, 25, 26, 84, 83, 82, 58, 88, 88,
728  89, 89, 81, 80, 79, 78, 75, 72, 70, 68,
729  66, 65, 64, 63, 62, 61, 60, 59, 57, 56,
730  55, 54, 52, 51, 50, 49, 48, 47, 46, 45,
731  43, 41, 40, 39, 38, 37, 36, 35, 34, 33,
732 
733  28, 27, 24, 11, 7, 87, 87, 87, 87, 87,
734  87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
735  87, 87, 87, 87, 87, 87, 87, 87, 87, 87,
736  87, 87, 87, 87, 87, 87, 87
737  } ;
738 
741 
742 extern int yy_flex_debug;
744 
745 /* The intent behind this definition is that it'll catch
746  * any uses of REJECT which flex missed.
747  */
748 #define REJECT reject_used_but_not_detected
749 #define yymore() yymore_used_but_not_detected
750 #define YY_MORE_ADJ 0
751 #define YY_RESTORE_YY_MORE_OFFSET
752 char *yytext;
753 #line 1 "lexer.l"
754 /*
755 
756  $Id: lexer.l 23128 2016-07-01 11:58:21Z coelho $
757 
758  Copyright 1989-2016 MINES ParisTech
759 
760  This file is part of PIPS.
761 
762  PIPS is free software: you can redistribute it and/or modify it
763  under the terms of the GNU General Public License as published by
764  the Free Software Foundation, either version 3 of the License, or
765  any later version.
766 
767  PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
768  WARRANTY; without even the implied warranty of MERCHANTABILITY or
769  FITNESS FOR A PARTICULAR PURPOSE.
770 
771  See the GNU General Public License for more details.
772 
773  You should have received a copy of the GNU General Public License
774  along with PIPS. If not, see <http://www.gnu.org/licenses/>.
775 
776 */
777 #define YY_NO_INPUT 1
778 
779 #line 30 "lexer.l"
780 #ifdef HAVE_CONFIG_H
781  #include "pips_config.h"
782 #endif
783 #include <stdio.h>
784 #include <string.h>
785 #include "genC.h"
786 #include "makefile.h"
787 #include "readmakefile.h"
788 #line 789 "<stdout>"
789 #line 790 "<stdout>"
790 
791 #define INITIAL 0
792 #define COMMENT 1
793 #define TEXT 2
794 
795 #ifndef YY_NO_UNISTD_H
796 /* Special case for "unistd.h", since it is non-ANSI. We include it way
797  * down here because we want the user's section 1 to have been scanned first.
798  * The user has a chance to override it with an option.
799  */
800 #include <unistd.h>
801 #endif
802 
803 #ifndef YY_EXTRA_TYPE
804 #define YY_EXTRA_TYPE void *
805 #endif
806 
807 static int yy_init_globals ( void );
808 
809 /* Accessor methods to globals.
810  These are made visible to non-reentrant scanners for convenience. */
811 
812 int yylex_destroy ( void );
813 
814 int yyget_debug ( void );
815 
816 void yyset_debug ( int debug_flag );
817 
818 YY_EXTRA_TYPE yyget_extra ( void );
819 
820 void yyset_extra ( YY_EXTRA_TYPE user_defined );
821 
822 FILE *yyget_in ( void );
823 
824 void yyset_in ( FILE * _in_str );
825 
826 FILE *yyget_out ( void );
827 
828 void yyset_out ( FILE * _out_str );
829 
830  int yyget_leng ( void );
831 
832 char *yyget_text ( void );
833 
834 int yyget_lineno ( void );
835 
836 void yyset_lineno ( int _line_number );
837 
838 /* Macros after this point can all be overridden by user definitions in
839  * section 1.
840  */
841 
842 #ifndef YY_SKIP_YYWRAP
843 #ifdef __cplusplus
844 extern "C" int yywrap ( void );
845 #else
846 extern int yywrap ( void );
847 #endif
848 #endif
849 
850 #ifndef YY_NO_UNPUT
851 
852 #endif
853 
854 #ifndef yytext_ptr
855 static void yy_flex_strncpy ( char *, const char *, int );
856 #endif
857 
858 #ifdef YY_NEED_STRLEN
859 static int yy_flex_strlen ( const char * );
860 #endif
861 
862 #ifndef YY_NO_INPUT
863 #ifdef __cplusplus
864 static int yyinput ( void );
865 #else
866 static int input ( void );
867 #endif
868 
869 #endif
870 
871 /* Amount of stuff to slurp up with each read. */
872 #ifndef YY_READ_BUF_SIZE
873 #ifdef __ia64__
874 /* On IA-64, the buffer size is 16k, not 8k */
875 #define YY_READ_BUF_SIZE 16384
876 #else
877 #define YY_READ_BUF_SIZE 8192
878 #endif /* __ia64__ */
879 #endif
880 
881 /* Copy whatever the last rule matched to the standard output. */
882 #ifndef ECHO
883 /* This used to be an fputs(), but since the string might contain NUL's,
884  * we now use fwrite().
885  */
886 #define ECHO do { if (fwrite( yytext, (size_t) yyleng, 1, yyout )) {} } while (0)
887 #endif
888 
889 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
890  * is returned in "result".
891  */
892 #ifndef YY_INPUT
893 #define YY_INPUT(buf,result,max_size) \
894  if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
895  { \
896  int c = '*'; \
897  int n; \
898  for ( n = 0; n < max_size && \
899  (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
900  buf[n] = (char) c; \
901  if ( c == '\n' ) \
902  buf[n++] = (char) c; \
903  if ( c == EOF && ferror( yyin ) ) \
904  YY_FATAL_ERROR( "input in flex scanner failed" ); \
905  result = n; \
906  } \
907  else \
908  { \
909  errno=0; \
910  while ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \
911  { \
912  if( errno != EINTR) \
913  { \
914  YY_FATAL_ERROR( "input in flex scanner failed" ); \
915  break; \
916  } \
917  errno=0; \
918  clearerr(yyin); \
919  } \
920  }\
921 \
922 
923 #endif
924 
925 /* No semi-colon after return; correct usage is to write "yyterminate();" -
926  * we don't want an extra ';' after the "return" because that will cause
927  * some compilers to complain about unreachable statements.
928  */
929 #ifndef yyterminate
930 #define yyterminate() return YY_NULL
931 #endif
932 
933 /* Number of entries by which start-condition stack grows. */
934 #ifndef YY_START_STACK_INCR
935 #define YY_START_STACK_INCR 25
936 #endif
937 
938 /* Report a fatal error. */
939 #ifndef YY_FATAL_ERROR
940 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
941 #endif
942 
943 /* end tables serialization structures and prototypes */
944 
945 /* Default declaration of generated scanner - a define so the user can
946  * easily add parameters.
947  */
948 #ifndef YY_DECL
949 #define YY_DECL_IS_OURS 1
950 
951 extern int yylex (void);
952 
953 #define YY_DECL int yylex (void)
954 #endif /* !YY_DECL */
955 
956 /* Code executed at the beginning of each rule, after yytext and yyleng
957  * have been set up.
958  */
959 #ifndef YY_USER_ACTION
960 #define YY_USER_ACTION
961 #endif
962 
963 /* Code executed at the end of each rule. */
964 #ifndef YY_BREAK
965 #define YY_BREAK /*LINTED*/break;
966 #endif
967 
968 #define YY_RULE_SETUP \
969  YY_USER_ACTION
970 
971 /** The main scanner function which does all the work.
972  */
974 {
975  yy_state_type yy_current_state;
976  char *yy_cp, *yy_bp;
977  int yy_act;
978 
979  if ( !(yy_init) )
980  {
981  (yy_init) = 1;
982 
983 #ifdef YY_USER_INIT
984  YY_USER_INIT;
985 #endif
986 
987  if ( ! (yy_start) )
988  (yy_start) = 1; /* first start state */
989 
990  if ( ! yyin )
991  yyin = stdin;
992 
993  if ( ! yyout )
994  yyout = stdout;
995 
996  if ( ! YY_CURRENT_BUFFER ) {
1000  }
1001 
1003  }
1004 
1005  {
1006 #line 40 "lexer.l"
1007 
1008 #line 1009 "<stdout>"
1009 
1010  while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
1011  {
1012  yy_cp = (yy_c_buf_p);
1013 
1014  /* Support of yytext. */
1015  *yy_cp = (yy_hold_char);
1016 
1017  /* yy_bp points to the position in yy_ch_buf of the start of
1018  * the current run.
1019  */
1020  yy_bp = yy_cp;
1021 
1022  yy_current_state = (yy_start);
1023 yy_match:
1024  do
1025  {
1026  YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
1027  if ( yy_accept[yy_current_state] )
1028  {
1029  (yy_last_accepting_state) = yy_current_state;
1031  }
1032  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1033  {
1034  yy_current_state = (int) yy_def[yy_current_state];
1035  if ( yy_current_state >= 88 )
1036  yy_c = yy_meta[yy_c];
1037  }
1038  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1039  ++yy_cp;
1040  }
1041  while ( yy_base[yy_current_state] != 106 );
1042 
1043 yy_find_action:
1044  yy_act = yy_accept[yy_current_state];
1045  if ( yy_act == 0 )
1046  { /* have to back up */
1048  yy_current_state = (yy_last_accepting_state);
1049  yy_act = yy_accept[yy_current_state];
1050  }
1051 
1053 
1054 do_action: /* This label is used only to access EOF actions. */
1055 
1056  switch ( yy_act )
1057  { /* beginning of action switch */
1058  case 0: /* must back up */
1059  /* undo the effects of YY_DO_BEFORE_ACTION */
1060  *yy_cp = (yy_hold_char);
1062  yy_current_state = (yy_last_accepting_state);
1063  goto yy_find_action;
1064 
1065 case 1:
1066 /* rule 1 can match eol */
1068 #line 41 "lexer.l"
1069 ;
1070  YY_BREAK
1071 case 2:
1073 #line 42 "lexer.l"
1074 {BEGIN COMMENT;}
1075  YY_BREAK
1076 case 3:
1077 /* rule 3 can match eol */
1079 #line 43 "lexer.l"
1080 ;
1081  YY_BREAK
1082 case 4:
1084 #line 44 "lexer.l"
1085 {BEGIN TEXT;}
1086  YY_BREAK
1087 case 5:
1088 /* rule 5 can match eol */
1090 #line 45 "lexer.l"
1091 ;
1092  YY_BREAK
1093 case 6:
1095 #line 46 "lexer.l"
1096 {return PROGRAM;}
1097  YY_BREAK
1098 case 7:
1100 #line 47 "lexer.l"
1101 {return MODULE;}
1102  YY_BREAK
1103 case 8:
1105 #line 48 "lexer.l"
1106 {return MAIN;}
1107  YY_BREAK
1108 case 9:
1110 #line 49 "lexer.l"
1111 {return COMMON;}
1112  YY_BREAK
1113 case 10:
1115 #line 50 "lexer.l"
1116 {return TK_CALLEES;}
1117  YY_BREAK
1118 case 11:
1120 #line 51 "lexer.l"
1121 {return CALLERS;}
1122  YY_BREAK
1123 case 12:
1125 #line 52 "lexer.l"
1126 {return ALL;}
1127  YY_BREAK
1128 case 13:
1130 #line 53 "lexer.l"
1131 {return SELECT;}
1132  YY_BREAK
1133 case 14:
1135 #line 54 "lexer.l"
1136 {return COMPILATION_UNIT;}
1137  YY_BREAK
1138 case 15:
1140 #line 55 "lexer.l"
1141 {return REQUIRED;}
1142  YY_BREAK
1143 case 16:
1145 #line 56 "lexer.l"
1146 {return PRODUCED;}
1147  YY_BREAK
1148 case 17:
1150 #line 57 "lexer.l"
1151 {return MODIFIED;}
1152  YY_BREAK
1153 case 18:
1155 #line 58 "lexer.l"
1156 {return PRESERVED;}
1157  YY_BREAK
1158 case 19:
1160 #line 59 "lexer.l"
1161 {return PRE_TRANSFORMATION;}
1162  YY_BREAK
1163 case 20:
1165 #line 60 "lexer.l"
1166 {return POST_TRANSFORMATION;}
1167  YY_BREAK
1168 case 21:
1170 #line 61 "lexer.l"
1171 {return DOT;}
1172  YY_BREAK
1173 case 22:
1175 #line 62 "lexer.l"
1176 { pipsmake_lval.name=strdup(yytext); return NAME;}
1177  YY_BREAK
1178 case 23:
1180 #line 63 "lexer.l"
1181 {
1182  fprintf(stderr,
1183  "[readmakefile] unknown char %c (%d)\n",
1184  *yytext, *yytext);
1185  exit(1);
1186  }
1187  YY_BREAK
1188 case 24:
1190 #line 69 "lexer.l"
1191 ECHO;
1192  YY_BREAK
1193 #line 1194 "<stdout>"
1194 case YY_STATE_EOF(INITIAL):
1195 case YY_STATE_EOF(COMMENT):
1196 case YY_STATE_EOF(TEXT):
1197  yyterminate();
1198 
1199  case YY_END_OF_BUFFER:
1200  {
1201  /* Amount of text matched not including the EOB char. */
1202  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1203 
1204  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1205  *yy_cp = (yy_hold_char);
1207 
1208  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1209  {
1210  /* We're scanning a new file or input source. It's
1211  * possible that this happened because the user
1212  * just pointed yyin at a new source and called
1213  * yylex(). If so, then we have to assure
1214  * consistency between YY_CURRENT_BUFFER and our
1215  * globals. Here is the right place to do so, because
1216  * this is the first action (other than possibly a
1217  * back-up) that will match for the new input source.
1218  */
1219  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1220  YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1221  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1222  }
1223 
1224  /* Note that here we test for yy_c_buf_p "<=" to the position
1225  * of the first EOB in the buffer, since yy_c_buf_p will
1226  * already have been incremented past the NUL character
1227  * (since all states make transitions on EOB to the
1228  * end-of-buffer state). Contrast this with the test
1229  * in input().
1230  */
1231  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1232  { /* This was really a NUL. */
1233  yy_state_type yy_next_state;
1234 
1235  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1236 
1237  yy_current_state = yy_get_previous_state( );
1238 
1239  /* Okay, we're now positioned to make the NUL
1240  * transition. We couldn't have
1241  * yy_get_previous_state() go ahead and do it
1242  * for us because it doesn't know how to deal
1243  * with the possibility of jamming (and we don't
1244  * want to build jamming into it because then it
1245  * will run more slowly).
1246  */
1247 
1248  yy_next_state = yy_try_NUL_trans( yy_current_state );
1249 
1251 
1252  if ( yy_next_state )
1253  {
1254  /* Consume the NUL. */
1255  yy_cp = ++(yy_c_buf_p);
1256  yy_current_state = yy_next_state;
1257  goto yy_match;
1258  }
1259 
1260  else
1261  {
1262  yy_cp = (yy_c_buf_p);
1263  goto yy_find_action;
1264  }
1265  }
1266 
1267  else switch ( yy_get_next_buffer( ) )
1268  {
1269  case EOB_ACT_END_OF_FILE:
1270  {
1272 
1273  if ( yywrap( ) )
1274  {
1275  /* Note: because we've taken care in
1276  * yy_get_next_buffer() to have set up
1277  * yytext, we can now set up
1278  * yy_c_buf_p so that if some total
1279  * hoser (like flex itself) wants to
1280  * call the scanner after we return the
1281  * YY_NULL, it'll still work - another
1282  * YY_NULL will get returned.
1283  */
1285 
1287  goto do_action;
1288  }
1289 
1290  else
1291  {
1292  if ( ! (yy_did_buffer_switch_on_eof) )
1293  YY_NEW_FILE;
1294  }
1295  break;
1296  }
1297 
1298  case EOB_ACT_CONTINUE_SCAN:
1299  (yy_c_buf_p) =
1300  (yytext_ptr) + yy_amount_of_matched_text;
1301 
1302  yy_current_state = yy_get_previous_state( );
1303 
1304  yy_cp = (yy_c_buf_p);
1306  goto yy_match;
1307 
1308  case EOB_ACT_LAST_MATCH:
1309  (yy_c_buf_p) =
1310  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1311 
1312  yy_current_state = yy_get_previous_state( );
1313 
1314  yy_cp = (yy_c_buf_p);
1316  goto yy_find_action;
1317  }
1318  break;
1319  }
1320 
1321  default:
1323  "fatal flex scanner internal error--no action found" );
1324  } /* end of action switch */
1325  } /* end of scanning one token */
1326  } /* end of user's declarations */
1327 } /* end of yylex */
1328 
1329 /* yy_get_next_buffer - try to read in a new buffer
1330  *
1331  * Returns a code representing an action:
1332  * EOB_ACT_LAST_MATCH -
1333  * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
1334  * EOB_ACT_END_OF_FILE - end of file
1335  */
1336 static int yy_get_next_buffer (void)
1337 {
1338  char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1339  char *source = (yytext_ptr);
1340  int number_to_move, i;
1341  int ret_val;
1342 
1343  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1345  "fatal flex scanner internal error--end of buffer missed" );
1346 
1347  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1348  { /* Don't try to fill the buffer, so this is an EOF. */
1349  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1350  {
1351  /* We matched a single character, the EOB, so
1352  * treat this as a final EOF.
1353  */
1354  return EOB_ACT_END_OF_FILE;
1355  }
1356 
1357  else
1358  {
1359  /* We matched some text prior to the EOB, first
1360  * process it.
1361  */
1362  return EOB_ACT_LAST_MATCH;
1363  }
1364  }
1365 
1366  /* Try to read more data. */
1367 
1368  /* First move last chars to start of buffer. */
1369  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr) - 1);
1370 
1371  for ( i = 0; i < number_to_move; ++i )
1372  *(dest++) = *(source++);
1373 
1374  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1375  /* don't do the read, it's not guaranteed to return an EOF,
1376  * just force an EOF
1377  */
1378  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1379 
1380  else
1381  {
1382  int num_to_read =
1383  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1384 
1385  while ( num_to_read <= 0 )
1386  { /* Not enough room in the buffer - grow it. */
1387 
1388  /* just a shorter name for the current buffer */
1390 
1391  int yy_c_buf_p_offset =
1392  (int) ((yy_c_buf_p) - b->yy_ch_buf);
1393 
1394  if ( b->yy_is_our_buffer )
1395  {
1396  int new_size = b->yy_buf_size * 2;
1397 
1398  if ( new_size <= 0 )
1399  b->yy_buf_size += b->yy_buf_size / 8;
1400  else
1401  b->yy_buf_size *= 2;
1402 
1403  b->yy_ch_buf = (char *)
1404  /* Include room in for 2 EOB chars. */
1405  yyrealloc( (void *) b->yy_ch_buf,
1406  (yy_size_t) (b->yy_buf_size + 2) );
1407  }
1408  else
1409  /* Can't grow it, we don't own it. */
1410  b->yy_ch_buf = NULL;
1411 
1412  if ( ! b->yy_ch_buf )
1414  "fatal error - scanner input buffer overflow" );
1415 
1416  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1417 
1418  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
1419  number_to_move - 1;
1420 
1421  }
1422 
1423  if ( num_to_read > YY_READ_BUF_SIZE )
1424  num_to_read = YY_READ_BUF_SIZE;
1425 
1426  /* Read in more data. */
1427  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
1428  (yy_n_chars), num_to_read );
1429 
1430  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1431  }
1432 
1433  if ( (yy_n_chars) == 0 )
1434  {
1435  if ( number_to_move == YY_MORE_ADJ )
1436  {
1437  ret_val = EOB_ACT_END_OF_FILE;
1438  yyrestart( yyin );
1439  }
1440 
1441  else
1442  {
1443  ret_val = EOB_ACT_LAST_MATCH;
1444  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
1446  }
1447  }
1448 
1449  else
1450  ret_val = EOB_ACT_CONTINUE_SCAN;
1451 
1452  if (((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1453  /* Extend the array by 50%, plus the number we really need. */
1454  int new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1455  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc(
1456  (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size );
1457  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
1458  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
1459  /* "- 2" to take care of EOB's */
1460  YY_CURRENT_BUFFER_LVALUE->yy_buf_size = (int) (new_size - 2);
1461  }
1462 
1463  (yy_n_chars) += number_to_move;
1466 
1467  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1468 
1469  return ret_val;
1470 }
1471 
1472 /* yy_get_previous_state - get the state just before the EOB char was reached */
1473 
1474  static yy_state_type yy_get_previous_state (void)
1475 {
1476  yy_state_type yy_current_state;
1477  char *yy_cp;
1478 
1479  yy_current_state = (yy_start);
1480 
1481  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
1482  {
1483  YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
1484  if ( yy_accept[yy_current_state] )
1485  {
1486  (yy_last_accepting_state) = yy_current_state;
1488  }
1489  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1490  {
1491  yy_current_state = (int) yy_def[yy_current_state];
1492  if ( yy_current_state >= 88 )
1493  yy_c = yy_meta[yy_c];
1494  }
1495  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1496  }
1497 
1498  return yy_current_state;
1499 }
1500 
1501 /* yy_try_NUL_trans - try to make a transition on the NUL character
1502  *
1503  * synopsis
1504  * next_state = yy_try_NUL_trans( current_state );
1505  */
1506  static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1507 {
1508  int yy_is_jam;
1509  char *yy_cp = (yy_c_buf_p);
1510 
1511  YY_CHAR yy_c = 1;
1512  if ( yy_accept[yy_current_state] )
1513  {
1514  (yy_last_accepting_state) = yy_current_state;
1516  }
1517  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1518  {
1519  yy_current_state = (int) yy_def[yy_current_state];
1520  if ( yy_current_state >= 88 )
1521  yy_c = yy_meta[yy_c];
1522  }
1523  yy_current_state = yy_nxt[yy_base[yy_current_state] + yy_c];
1524  yy_is_jam = (yy_current_state == 87);
1525 
1526  return yy_is_jam ? 0 : yy_current_state;
1527 }
1528 
1529 #ifndef YY_NO_UNPUT
1530 
1531 #endif
1532 
1533 #ifndef YY_NO_INPUT
1534 #ifdef __cplusplus
1535  static int yyinput (void)
1536 #else
1537  static int input (void)
1538 #endif
1539 
1540 {
1541  int c;
1542 
1543  *(yy_c_buf_p) = (yy_hold_char);
1544 
1545  if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
1546  {
1547  /* yy_c_buf_p now points to the character we want to return.
1548  * If this occurs *before* the EOB characters, then it's a
1549  * valid NUL; if not, then we've hit the end of the buffer.
1550  */
1551  if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1552  /* This was really a NUL. */
1553  *(yy_c_buf_p) = '\0';
1554 
1555  else
1556  { /* need more input */
1557  int offset = (int) ((yy_c_buf_p) - (yytext_ptr));
1558  ++(yy_c_buf_p);
1559 
1560  switch ( yy_get_next_buffer( ) )
1561  {
1562  case EOB_ACT_LAST_MATCH:
1563  /* This happens because yy_g_n_b()
1564  * sees that we've accumulated a
1565  * token and flags that we need to
1566  * try matching the token before
1567  * proceeding. But for input(),
1568  * there's no matching to consider.
1569  * So convert the EOB_ACT_LAST_MATCH
1570  * to EOB_ACT_END_OF_FILE.
1571  */
1572 
1573  /* Reset buffer status. */
1574  yyrestart( yyin );
1575 
1576  /*FALLTHROUGH*/
1577 
1578  case EOB_ACT_END_OF_FILE:
1579  {
1580  if ( yywrap( ) )
1581  return 0;
1582 
1583  if ( ! (yy_did_buffer_switch_on_eof) )
1584  YY_NEW_FILE;
1585 #ifdef __cplusplus
1586  return yyinput();
1587 #else
1588  return input();
1589 #endif
1590  }
1591 
1592  case EOB_ACT_CONTINUE_SCAN:
1593  (yy_c_buf_p) = (yytext_ptr) + offset;
1594  break;
1595  }
1596  }
1597  }
1598 
1599  c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
1600  *(yy_c_buf_p) = '\0'; /* preserve yytext */
1601  (yy_hold_char) = *++(yy_c_buf_p);
1602 
1603  return c;
1604 }
1605 #endif /* ifndef YY_NO_INPUT */
1606 
1607 /** Immediately switch to a different input stream.
1608  * @param input_file A readable stream.
1609  *
1610  * @note This function does not reset the start condition to @c INITIAL .
1611  */
1612  void yyrestart (FILE * input_file )
1613 {
1614 
1615  if ( ! YY_CURRENT_BUFFER ){
1619  }
1620 
1621  yy_init_buffer( YY_CURRENT_BUFFER, input_file );
1623 }
1624 
1625 /** Switch to a different input buffer.
1626  * @param new_buffer The new input buffer.
1627  *
1628  */
1629  void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
1630 {
1631 
1632  /* TODO. We should be able to replace this entire function body
1633  * with
1634  * yypop_buffer_state();
1635  * yypush_buffer_state(new_buffer);
1636  */
1638  if ( YY_CURRENT_BUFFER == new_buffer )
1639  return;
1640 
1641  if ( YY_CURRENT_BUFFER )
1642  {
1643  /* Flush out information for old buffer. */
1644  *(yy_c_buf_p) = (yy_hold_char);
1645  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1646  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1647  }
1648 
1649  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1651 
1652  /* We don't actually know whether we did this switch during
1653  * EOF (yywrap()) processing, but the only time this flag
1654  * is looked at is after yywrap() is called, so it's safe
1655  * to go ahead and always set it.
1656  */
1658 }
1659 
1660 static void yy_load_buffer_state (void)
1661 {
1662  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1663  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
1664  yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
1665  (yy_hold_char) = *(yy_c_buf_p);
1666 }
1667 
1668 /** Allocate and initialize an input buffer state.
1669  * @param file A readable stream.
1670  * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
1671  *
1672  * @return the allocated buffer state.
1673  */
1674  YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
1675 {
1676  YY_BUFFER_STATE b;
1677 
1678  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
1679  if ( ! b )
1680  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1681 
1682  b->yy_buf_size = size;
1683 
1684  /* yy_ch_buf has to be 2 characters longer than the size given because
1685  * we need to put in 2 end-of-buffer characters.
1686  */
1687  b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) );
1688  if ( ! b->yy_ch_buf )
1689  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
1690 
1691  b->yy_is_our_buffer = 1;
1692 
1693  yy_init_buffer( b, file );
1694 
1695  return b;
1696 }
1697 
1698 /** Destroy the buffer.
1699  * @param b a buffer created with yy_create_buffer()
1700  *
1701  */
1703 {
1704 
1705  if ( ! b )
1706  return;
1707 
1708  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1710 
1711  if ( b->yy_is_our_buffer )
1712  yyfree( (void *) b->yy_ch_buf );
1713 
1714  yyfree( (void *) b );
1715 }
1716 
1717 /* Initializes or reinitializes a buffer.
1718  * This function is sometimes called more than once on the same buffer,
1719  * such as during a yyrestart() or at EOF.
1720  */
1721  static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1722 
1723 {
1724  int oerrno = errno;
1725 
1726  yy_flush_buffer( b );
1727 
1728  b->yy_input_file = file;
1729  b->yy_fill_buffer = 1;
1730 
1731  /* If b is the current buffer, then yy_init_buffer was _probably_
1732  * called from yyrestart() or through yy_get_next_buffer.
1733  * In that case, we don't want to reset the lineno or column.
1734  */
1735  if (b != YY_CURRENT_BUFFER){
1736  b->yy_bs_lineno = 1;
1737  b->yy_bs_column = 0;
1738  }
1739 
1740  b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
1741 
1742  errno = oerrno;
1743 }
1744 
1745 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
1746  * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
1747  *
1748  */
1750 {
1751  if ( ! b )
1752  return;
1753 
1754  b->yy_n_chars = 0;
1755 
1756  /* We always need two end-of-buffer characters. The first causes
1757  * a transition to the end-of-buffer state. The second causes
1758  * a jam in that state.
1759  */
1762 
1763  b->yy_buf_pos = &b->yy_ch_buf[0];
1764 
1765  b->yy_at_bol = 1;
1767 
1768  if ( b == YY_CURRENT_BUFFER )
1770 }
1771 
1772 /** Pushes the new state onto the stack. The new state becomes
1773  * the current state. This function will allocate the stack
1774  * if necessary.
1775  * @param new_buffer The new state.
1776  *
1777  */
1778 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
1779 {
1780  if (new_buffer == NULL)
1781  return;
1782 
1784 
1785  /* This block is copied from yy_switch_to_buffer. */
1786  if ( YY_CURRENT_BUFFER )
1787  {
1788  /* Flush out information for old buffer. */
1789  *(yy_c_buf_p) = (yy_hold_char);
1790  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1791  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1792  }
1793 
1794  /* Only push if top exists. Otherwise, replace top. */
1795  if (YY_CURRENT_BUFFER)
1796  (yy_buffer_stack_top)++;
1797  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1798 
1799  /* copied from yy_switch_to_buffer. */
1802 }
1803 
1804 /** Removes and deletes the top of the stack, if present.
1805  * The next element becomes the new top.
1806  *
1807  */
1808 void yypop_buffer_state (void)
1809 {
1810  if (!YY_CURRENT_BUFFER)
1811  return;
1812 
1814  YY_CURRENT_BUFFER_LVALUE = NULL;
1815  if ((yy_buffer_stack_top) > 0)
1816  --(yy_buffer_stack_top);
1817 
1818  if (YY_CURRENT_BUFFER) {
1821  }
1822 }
1823 
1824 /* Allocates the stack if it does not exist.
1825  * Guarantees space for at least one push.
1826  */
1827 static void yyensure_buffer_stack (void)
1828 {
1829  yy_size_t num_to_alloc;
1830 
1831  if (!(yy_buffer_stack)) {
1832 
1833  /* First allocation is just for 2 elements, since we don't know if this
1834  * scanner will even need a stack. We use 2 instead of 1 to avoid an
1835  * immediate realloc on the next call.
1836  */
1837  num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
1839  (num_to_alloc * sizeof(struct yy_buffer_state*)
1840  );
1841  if ( ! (yy_buffer_stack) )
1842  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1843 
1844  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
1845 
1846  (yy_buffer_stack_max) = num_to_alloc;
1847  (yy_buffer_stack_top) = 0;
1848  return;
1849  }
1850 
1851  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1852 
1853  /* Increase the buffer to prepare for a possible push. */
1854  yy_size_t grow_size = 8 /* arbitrary grow size */;
1855 
1856  num_to_alloc = (yy_buffer_stack_max) + grow_size;
1858  ((yy_buffer_stack),
1859  num_to_alloc * sizeof(struct yy_buffer_state*)
1860  );
1861  if ( ! (yy_buffer_stack) )
1862  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
1863 
1864  /* zero only the new slots.*/
1865  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
1866  (yy_buffer_stack_max) = num_to_alloc;
1867  }
1868 }
1869 
1870 /** Setup the input buffer state to scan directly from a user-specified character buffer.
1871  * @param base the character buffer
1872  * @param size the size in bytes of the character buffer
1873  *
1874  * @return the newly allocated buffer state object.
1875  */
1877 {
1878  YY_BUFFER_STATE b;
1879 
1880  if ( size < 2 ||
1881  base[size-2] != YY_END_OF_BUFFER_CHAR ||
1882  base[size-1] != YY_END_OF_BUFFER_CHAR )
1883  /* They forgot to leave room for the EOB's. */
1884  return NULL;
1885 
1886  b = (YY_BUFFER_STATE) yyalloc( sizeof( struct yy_buffer_state ) );
1887  if ( ! b )
1888  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
1889 
1890  b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */
1891  b->yy_buf_pos = b->yy_ch_buf = base;
1892  b->yy_is_our_buffer = 0;
1893  b->yy_input_file = NULL;
1894  b->yy_n_chars = b->yy_buf_size;
1895  b->yy_is_interactive = 0;
1896  b->yy_at_bol = 1;
1897  b->yy_fill_buffer = 0;
1899 
1900  yy_switch_to_buffer( b );
1901 
1902  return b;
1903 }
1904 
1905 /** Setup the input buffer state to scan a string. The next call to yylex() will
1906  * scan from a @e copy of @a str.
1907  * @param yystr a NUL-terminated string to scan
1908  *
1909  * @return the newly allocated buffer state object.
1910  * @note If you want to scan bytes that may contain NUL values, then use
1911  * yy_scan_bytes() instead.
1912  */
1913 YY_BUFFER_STATE yy_scan_string (const char * yystr )
1914 {
1915 
1916  return yy_scan_bytes( yystr, (int) strlen(yystr) );
1917 }
1918 
1919 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
1920  * scan from a @e copy of @a bytes.
1921  * @param yybytes the byte buffer to scan
1922  * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
1923  *
1924  * @return the newly allocated buffer state object.
1925  */
1926 YY_BUFFER_STATE yy_scan_bytes (const char * yybytes, int _yybytes_len )
1927 {
1928  YY_BUFFER_STATE b;
1929  char *buf;
1930  yy_size_t n;
1931  int i;
1932 
1933  /* Get memory for full buffer, including space for trailing EOB's. */
1934  n = (yy_size_t) (_yybytes_len + 2);
1935  buf = (char *) yyalloc( n );
1936  if ( ! buf )
1937  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
1938 
1939  for ( i = 0; i < _yybytes_len; ++i )
1940  buf[i] = yybytes[i];
1941 
1942  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
1943 
1944  b = yy_scan_buffer( buf, n );
1945  if ( ! b )
1946  YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
1947 
1948  /* It's okay to grow etc. this buffer, and we should throw it
1949  * away when we're done.
1950  */
1951  b->yy_is_our_buffer = 1;
1952 
1953  return b;
1954 }
1955 
1956 #ifndef YY_EXIT_FAILURE
1957 #define YY_EXIT_FAILURE 2
1958 #endif
1959 
1960 static void yynoreturn yy_fatal_error (const char* msg )
1961 {
1962  fprintf( stderr, "%s\n", msg );
1963  exit( YY_EXIT_FAILURE );
1964 }
1965 
1966 /* Redefine yyless() so it works in section 3 code. */
1967 
1968 #undef yyless
1969 #define yyless(n) \
1970  do \
1971  { \
1972  /* Undo effects of setting up yytext. */ \
1973  int yyless_macro_arg = (n); \
1974  YY_LESS_LINENO(yyless_macro_arg);\
1975  yytext[yyleng] = (yy_hold_char); \
1976  (yy_c_buf_p) = yytext + yyless_macro_arg; \
1977  (yy_hold_char) = *(yy_c_buf_p); \
1978  *(yy_c_buf_p) = '\0'; \
1979  yyleng = yyless_macro_arg; \
1980  } \
1981  while ( 0 )
1982 
1983 /* Accessor methods (get/set functions) to struct members. */
1984 
1985 /** Get the current line number.
1986  *
1987  */
1988 int yyget_lineno (void)
1989 {
1990 
1991  return yylineno;
1992 }
1993 
1994 /** Get the input stream.
1995  *
1996  */
1997 FILE *yyget_in (void)
1998 {
1999  return yyin;
2000 }
2001 
2002 /** Get the output stream.
2003  *
2004  */
2005 FILE *yyget_out (void)
2006 {
2007  return yyout;
2008 }
2009 
2010 /** Get the length of the current token.
2011  *
2012  */
2013 int yyget_leng (void)
2014 {
2015  return yyleng;
2016 }
2017 
2018 /** Get the current token.
2019  *
2020  */
2021 
2022 char *yyget_text (void)
2023 {
2024  return yytext;
2025 }
2026 
2027 /** Set the current line number.
2028  * @param _line_number line number
2029  *
2030  */
2031 void yyset_lineno (int _line_number )
2032 {
2033 
2034  yylineno = _line_number;
2035 }
2036 
2037 /** Set the input stream. This does not discard the current
2038  * input buffer.
2039  * @param _in_str A readable stream.
2040  *
2041  * @see yy_switch_to_buffer
2042  */
2043 void yyset_in (FILE * _in_str )
2044 {
2045  yyin = _in_str ;
2046 }
2047 
2048 void yyset_out (FILE * _out_str )
2049 {
2050  yyout = _out_str ;
2051 }
2052 
2053 int yyget_debug (void)
2054 {
2055  return yy_flex_debug;
2056 }
2057 
2058 void yyset_debug (int _bdebug )
2059 {
2060  yy_flex_debug = _bdebug ;
2061 }
2062 
2063 static int yy_init_globals (void)
2064 {
2065  /* Initialization is the same as for the non-reentrant scanner.
2066  * This function is called from yylex_destroy(), so don't allocate here.
2067  */
2068 
2069  (yy_buffer_stack) = NULL;
2070  (yy_buffer_stack_top) = 0;
2071  (yy_buffer_stack_max) = 0;
2072  (yy_c_buf_p) = NULL;
2073  (yy_init) = 0;
2074  (yy_start) = 0;
2075 
2076 /* Defined in main.c */
2077 #ifdef YY_STDINIT
2078  yyin = stdin;
2079  yyout = stdout;
2080 #else
2081  yyin = NULL;
2082  yyout = NULL;
2083 #endif
2084 
2085  /* For future reference: Set errno on error, since we are called by
2086  * yylex_init()
2087  */
2088  return 0;
2089 }
2090 
2091 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
2092 int yylex_destroy (void)
2093 {
2094 
2095  /* Pop the buffer stack, destroying each element. */
2096  while(YY_CURRENT_BUFFER){
2098  YY_CURRENT_BUFFER_LVALUE = NULL;
2100  }
2101 
2102  /* Destroy the stack itself. */
2103  yyfree((yy_buffer_stack) );
2104  (yy_buffer_stack) = NULL;
2105 
2106  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2107  * yylex() is called, initialization will occur. */
2108  yy_init_globals( );
2109 
2110  return 0;
2111 }
2112 
2113 /*
2114  * Internal utility routines.
2115  */
2116 
2117 #ifndef yytext_ptr
2118 static void yy_flex_strncpy (char* s1, const char * s2, int n )
2119 {
2120 
2121  int i;
2122  for ( i = 0; i < n; ++i )
2123  s1[i] = s2[i];
2124 }
2125 #endif
2126 
2127 #ifdef YY_NEED_STRLEN
2128 static int yy_flex_strlen (const char * s )
2129 {
2130  int n;
2131  for ( n = 0; s[n]; ++n )
2132  ;
2133 
2134  return n;
2135 }
2136 #endif
2137 
2138 void *yyalloc (yy_size_t size )
2139 {
2140  return malloc(size);
2141 }
2142 
2143 void *yyrealloc (void * ptr, yy_size_t size )
2144 {
2145 
2146  /* The cast to (char *) in the following accommodates both
2147  * implementations that use char* generic pointers, and those
2148  * that use void* generic pointers. It works with the latter
2149  * because both ANSI C and C++ allow castless assignment from
2150  * any pointer type to void*, and deal with argument conversions
2151  * as though doing an assignment.
2152  */
2153  return realloc(ptr, size);
2154 }
2155 
2156 void yyfree (void * ptr )
2157 {
2158  free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
2159 }
2160 
2161 #define YYTABLES_NAME "yytables"
2162 
2163 #line 69 "lexer.l"
2164 
2165 
2166 int yywrap()
2167 {
2168  return 1;
2169 }
2170 
2171 int init_lex()
2172 {
2173  BEGIN TEXT;
2174  return 1;
2175 }
2176 
2177 void yyerror_lex_part(const char *s)
2178 {
2179  fprintf(stderr, "[yyerror_lex_part] %s near %s\n", s, yytext);
2180 }
2181 
#define DOT
include "paf_ri.h"
Definition: adg_read_paf.c:128
void const char const char const int
bdt base
Current expression.
Definition: bdt_read_paf.c:100
static Value offset
Definition: translation.c:283
unsigned char flex_uint8_t
Definition: genread_lex.c:312
static int input(void)
short int flex_int16_t
Definition: genread_lex.c:310
int flex_int32_t
Definition: genread_lex.c:311
int yy_state_type
Definition: genread_lex.c:588
flex_uint8_t YY_CHAR
Begin user sect3.
Definition: genread_lex.c:584
size_t yy_size_t
Definition: genread_lex.c:413
void * malloc(YYSIZE_T)
void free(void *)
void * memset(void *str, int c, size_t len)
memset.c – set an area of memory to a given value Copyright (C) 1991, 2003, 2009-2011 Free Software F...
Definition: memset.c:23
#define exit(code)
Definition: misc-local.h:54
void yyerror_lex_part(const char *)
int init_lex(void)
#define yy_load_buffer_state
Definition: lexer.c:15
#define YY_NEW_FILE
Special action meaning "start processing a new file".
Definition: lexer.c:386
#define yyset_extra
Definition: lexer.c:164
static const flex_int16_t yy_def[91]
Definition: lexer.c:688
#define yytext
Definition: lexer.c:27
unsigned char flex_uint8_t
Definition: lexer.c:312
#define yyset_lineno
Definition: lexer.c:212
static char yy_hold_char
yy_hold_char holds the character lost when yytext is formed.
Definition: lexer.c:527
#define COMMENT
Definition: lexer.c:792
static yy_state_type yy_last_accepting_state
Definition: lexer.c:739
#define yyrestart
Definition: lexer.c:26
#define yyset_debug
Definition: lexer.c:152
static void yynoreturn yy_fatal_error(const char *msg)
#define YY_EXTRA_TYPE
Special case for "unistd.h", since it is non-ANSI.
Definition: lexer.c:804
static int yy_start
whether we need to initialize
Definition: lexer.c:534
short int flex_int16_t
Definition: lexer.c:310
#define yy_flex_debug
Definition: lexer.c:20
#define yyget_out
Definition: lexer.c:182
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: lexer.c:510
unsigned int flex_uint32_t
Definition: lexer.c:314
static int yy_get_next_buffer(void)
#define yy_scan_bytes
Definition: lexer.c:12
#define YY_BREAK
Code executed at the end of each rule.
Definition: lexer.c:965
static size_t yy_buffer_stack_max
capacity of stack.
Definition: lexer.c:509
#define yynoreturn
Definition: lexer.c:361
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
#define yyget_debug
Definition: lexer.c:146
int yy_act
Definition: lexer.c:977
#define yypush_buffer_state
Definition: lexer.c:17
struct yy_buffer_state * YY_BUFFER_STATE
Definition: lexer.c:408
#define yyfree
Definition: lexer.c:31
#define yyout
Definition: lexer.c:25
#define TEXT
Definition: lexer.c:793
#define YY_BUFFER_NEW
Definition: lexer.c:490
#define yyget_lineno
Definition: lexer.c:206
static const flex_int16_t yy_chk[138]
Definition: lexer.c:720
#define yylex
Definition: lexer.c:23
#define YY_RESTORE_YY_MORE_OFFSET
Definition: lexer.c:751
static int yy_did_buffer_switch_on_eof
start state number
Definition: lexer.c:539
static int yy_init_globals(void)
static const flex_int16_t yy_accept[88]
Definition: lexer.c:622
#define yyget_text
Definition: lexer.c:200
#define YY_BUFFER_NORMAL
Definition: lexer.c:491
char * yy_cp
Definition: lexer.c:976
#define yyensure_buffer_stack
Definition: lexer.c:19
#define yy_scan_buffer
Definition: lexer.c:10
#define YY_MORE_ADJ
Definition: lexer.c:750
#define YY_RULE_SETUP
Definition: lexer.c:968
#define yy_scan_string
Definition: lexer.c:11
#define yytext_ptr
Definition: lexer.c:597
signed char flex_int8_t
C99 systems have <inttypes.h>.
Definition: lexer.c:309
#define yyget_leng
Definition: lexer.c:194
#define EOB_ACT_END_OF_FILE
Definition: lexer.c:421
#define yyalloc
Definition: lexer.c:29
#define yypop_buffer_state
Definition: lexer.c:18
#define YY_CURRENT_BUFFER_LVALUE
Same as previous macro, but useful when we know that the buffer stack is not NULL or when we need an ...
Definition: lexer.c:524
int flex_int32_t
Definition: lexer.c:311
#define YY_START
Translate the current start state into a value that can be later handed to BEGIN to return to the sta...
Definition: lexer.c:381
static const YY_CHAR yy_meta[32]
Definition: lexer.c:667
#define yy_switch_to_buffer
Definition: lexer.c:16
int yy_state_type
Definition: lexer.c:588
#define YY_CURRENT_BUFFER
We provide macros for accessing buffer states in case in the future we want to put the buffer states ...
Definition: lexer.c:518
#define yy_init_buffer
Definition: lexer.c:13
#define INITIAL
Definition: lexer.c:791
#define yyget_extra
Definition: lexer.c:158
char * yy_bp
Definition: lexer.c:976
#define yyin
Definition: lexer.c:21
static int yy_n_chars
Definition: lexer.c:528
#define YY_READ_BUF_SIZE
Amount of stuff to slurp up with each read.
Definition: lexer.c:877
#define YY_INPUT(buf, result, max_size)
Gets input and stuffs it into "buf".
Definition: lexer.c:893
#define ECHO
ia64
Definition: lexer.c:886
#define yy_flush_buffer
Definition: lexer.c:14
#define yyrealloc
Definition: lexer.c:30
#define YY_END_OF_BUFFER
Definition: lexer.c:614
#define YY_STATE_EOF(state)
Action number for EOF rule of a given start state.
Definition: lexer.c:384
#define BEGIN
Enter a start condition.
Definition: lexer.c:376
#define YY_END_OF_BUFFER_CHAR
Definition: lexer.c:387
#define YY_FATAL_ERROR(msg)
Report a fatal error.
Definition: lexer.c:940
#define yyterminate()
No semi-colon after return; correct usage is to write "yyterminate();" - we don't want an extra ';' a...
Definition: lexer.c:930
unsigned short int flex_uint16_t
Definition: lexer.c:313
static const flex_int16_t yy_nxt[138]
Definition: lexer.c:701
#define yywrap
Macros after this point can all be overridden by user definitions in section 1.
Definition: lexer.c:28
#define yy_create_buffer
A lexical scanner generated by flex.
Definition: lexer.c:8
flex_uint8_t YY_CHAR
Begin user sect3.
Definition: lexer.c:584
#define YY_DO_BEFORE_ACTION
Done after the current pattern has been matched and before the corresponding action - sets up yytext.
Definition: lexer.c:607
#define yy_delete_buffer
Definition: lexer.c:9
#define EOB_ACT_LAST_MATCH
Definition: lexer.c:422
static const flex_int16_t yy_base[91]
Definition: lexer.c:675
#define yyget_in
Definition: lexer.c:170
size_t yy_size_t
Definition: lexer.c:413
#define YY_BUFFER_EOF_PENDING
When an EOF's been seen but there's still some text to process then we mark the buffer as YY_EOF_PEND...
Definition: lexer.c:502
#define yylineno
Definition: lexer.c:24
static yy_state_type yy_get_previous_state(void)
static const YY_CHAR yy_ec[256]
Definition: lexer.c:635
#define yylex_destroy
Accessor methods to globals.
Definition: lexer.c:140
#define yyset_out
Definition: lexer.c:188
static char * yy_c_buf_p
Points to current character in buffer.
Definition: lexer.c:532
#define EOB_ACT_CONTINUE_SCAN
Definition: lexer.c:420
static size_t yy_buffer_stack_top
!YY_STRUCT_YY_BUFFER_STATE
Definition: lexer.c:508
#define YY_DECL
Definition: lexer.c:953
#define YY_BUF_SIZE
Size of default input buffer.
Definition: lexer.c:398
#define YY_EXIT_FAILURE
static int yy_init
Definition: lexer.c:533
#define YY_SC_TO_UI(c)
Promotes a possibly negative, possibly signed char to an integer in range [0..255] for use as an arra...
Definition: lexer.c:370
#define yyleng
Definition: lexer.c:22
static char * yy_last_accepting_cpos
Definition: lexer.c:740
#define yyset_in
Definition: lexer.c:176
YYSTYPE pipsmake_lval
#define CALLERS
Definition: readmakefile.c:177
#define MODIFIED
Definition: readmakefile.c:183
#define ALL
Definition: readmakefile.c:178
#define MODULE
Definition: readmakefile.c:173
#define TK_CALLEES
Definition: readmakefile.c:176
#define MAIN
Definition: readmakefile.c:174
#define PRESERVED
Definition: readmakefile.c:184
#define NAME
Definition: readmakefile.c:188
#define COMMON
Definition: readmakefile.c:175
#define REQUIRED
Definition: readmakefile.c:181
#define SELECT
Definition: readmakefile.c:179
#define PRE_TRANSFORMATION
Definition: readmakefile.c:185
#define PROGRAM
Definition: readmakefile.c:172
#define COMPILATION_UNIT
Definition: readmakefile.c:180
#define PRODUCED
Definition: readmakefile.c:182
#define POST_TRANSFORMATION
Definition: readmakefile.c:186
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...
char * strdup()
s1
Definition: set.c:247
static char buf[BSZ]
Definition: split_file.c:157
#define uint32_t
Definition: stdint.in.h:156
#define int32_t
Definition: stdint.in.h:155
#define uint16_t
Definition: stdint.in.h:149
#define int8_t
Definition: stdint.in.h:141
#define uint8_t
Definition: stdint.in.h:142
#define int16_t
Definition: stdint.in.h:148
int yy_n_chars
Number of characters read into yy_ch_buf, not including EOB characters.
Definition: genread_lex.c:459
int yy_bs_column
The column count.
Definition: genread_lex.c:481
FILE * yy_input_file
Definition: genread_lex.c:446
int yy_buf_size
current position in input buffer
Definition: genread_lex.c:454
int yy_fill_buffer
Whether to try to fill the input buffer when we reach the end of it.
Definition: genread_lex.c:486
int yy_is_our_buffer
Whether we "own" the buffer - i.e., we know we created it, and can realloc() it to grow it,...
Definition: genread_lex.c:465
int yy_bs_lineno
The line count.
Definition: genread_lex.c:480
char * yy_buf_pos
input buffer
Definition: genread_lex.c:449
int yy_at_bol
Whether we're considered to be at the beginning of a line.
Definition: genread_lex.c:478
int yy_is_interactive
Whether this is an "interactive" input source; if so, and if we're using stdio for input,...
Definition: genread_lex.c:472
This struct is not used in this scanner, but its presence is necessary.
Definition: genread_lex.c:618
flex_int32_t yy_verify
Definition: genread_lex.c:619
flex_int32_t yy_nxt
Definition: genread_lex.c:620
char * name
Definition: genspec.h:116