1 | /* A lexical scanner generated by flex */
2 |
3 | /* Scanner skeleton version:
4 | * $Header: /home/daffy/u0/vern/flex/RCS/flex.skl,v 2.91 96/09/10 16:58:48 vern Exp $
5 | */
6 |
7 | #define FLEX_SCANNER
8 | #define YY_FLEX_MAJOR_VERSION 2
9 | #define YY_FLEX_MINOR_VERSION 5
10 |
11 | #include <stdio.h>
12 |
13 |
14 | /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
15 | #ifdef c_plusplus
16 | #ifndef __cplusplus
17 | #define __cplusplus
18 | #endif
19 | #endif
20 |
21 |
22 | #ifdef __cplusplus
23 |
24 | #include <stdlib.h>
25 | #include <unistd.h>
26 |
27 | /* Use prototypes in function declarations. */
28 | #define YY_USE_PROTOS
29 |
30 | /* The "const" storage-class-modifier is valid. */
31 | #define YY_USE_CONST
32 |
33 | #else /* ! __cplusplus */
34 |
35 | #if __STDC__
36 |
37 | #define YY_USE_PROTOS
38 | #define YY_USE_CONST
39 |
40 | #endif /* __STDC__ */
41 | #endif /* ! __cplusplus */
42 |
43 | #ifdef __TURBOC__
44 | #pragma warn -rch
45 | #pragma warn -use
46 | #include <io.h>
47 | #include <stdlib.h>
48 | #define YY_USE_CONST
49 | #define YY_USE_PROTOS
50 | #endif
51 |
52 | #ifdef YY_USE_CONST
53 | #define yyconst const
54 | #else
55 | #define yyconst
56 | #endif
57 |
58 |
59 | #ifdef YY_USE_PROTOS
60 | #define YY_PROTO(proto) proto
61 | #else
62 | #define YY_PROTO(proto) ()
63 | #endif
64 |
65 | /* Returned upon end-of-file. */
66 | #define YY_NULL 0
67 |
68 | /* Promotes a possibly negative, possibly signed char to an unsigned
69 | * integer for use as an array index. If the signed char is negative,
70 | * we want to instead treat it as an 8-bit unsigned char, hence the
71 | * double cast.
72 | */
73 | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
74 |
75 | /* Enter a start condition. This macro really ought to take a parameter,
76 | * but we do it the disgusting crufty way forced on us by the ()-less
77 | * definition of BEGIN.
78 | */
79 | #define BEGIN yy_start = 1 + 2 *
80 |
81 | /* Translate the current start state into a value that can be later handed
82 | * to BEGIN to return to the state. The YYSTATE alias is for lex
83 | * compatibility.
84 | */
85 | #define YY_START ((yy_start - 1) / 2)
86 | #define YYSTATE YY_START
87 |
88 | /* Action number for EOF rule of a given start state. */
89 | #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
90 |
91 | /* Special action meaning "start processing a new file". */
92 | #define YY_NEW_FILE yyrestart( yyin )
93 |
94 | #define YY_END_OF_BUFFER_CHAR 0
95 |
96 | /* Size of default input buffer. */
97 | #define YY_BUF_SIZE 16384
98 |
99 | typedef struct yy_buffer_state *YY_BUFFER_STATE;
100 |
101 | extern int yyleng;
102 | extern FILE *yyin, *yyout;
103 |
104 | #define EOB_ACT_CONTINUE_SCAN 0
105 | #define EOB_ACT_END_OF_FILE 1
106 | #define EOB_ACT_LAST_MATCH 2
107 |
108 | /* The funky do-while in the following #define is used to turn the definition
109 | * int a single C statement (which needs a semi-colon terminator). This
110 | * avoids problems with code like:
111 | *
112 | * if ( condition_holds )
113 | * yyless( 5 );
114 | * else
115 | * do_something_else();
116 | *
117 | * Prior to using the do-while the compiler would get upset at the
118 | * "else" because it interpreted the "if" statement as being all
119 | * done when it reached the ';' after the yyless() call.
120 | */
121 |
122 | /* Return all but the first 'n' matched characters back to the input stream. */
123 |
124 | #define yyless(n) \
125 | do \
126 | { \
127 | /* Undo effects of setting up yytext. */ \
128 | *yy_cp = yy_hold_char; \
129 | YY_RESTORE_YY_MORE_OFFSET \
130 | yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
131 | YY_DO_BEFORE_ACTION; /* set up yytext again */ \
132 | } \
133 | while ( 0 )
134 |
135 | #define unput(c) yyunput( c, yytext_ptr )
136 |
137 | /* The following is because we cannot portably get our hands on size_t
138 | * (without autoconf's help, which isn't available because we want
139 | * flex-generated scanners to compile on their own).
140 | */
141 | typedef unsigned int yy_size_t;
142 |
143 |
144 | struct yy_buffer_state
145 | {
146 | FILE *yy_input_file;
147 |
148 | char *yy_ch_buf; /* input buffer */
149 | char *yy_buf_pos; /* current position in input buffer */
150 |
151 | /* Size of input buffer in bytes, not including room for EOB
152 | * characters.
153 | */
154 | yy_size_t yy_buf_size;
155 |
156 | /* Number of characters read into yy_ch_buf, not including EOB
157 | * characters.
158 | */
159 | int yy_n_chars;
160 |
161 | /* Whether we "own" the buffer - i.e., we know we created it,
162 | * and can realloc() it to grow it, and should free() it to
163 | * delete it.
164 | */
165 | int yy_is_our_buffer;
166 |
167 | /* Whether this is an "interactive" input source; if so, and
168 | * if we're using stdio for input, then we want to use getc()
169 | * instead of fread(), to make sure we stop fetching input after
170 | * each newline.
171 | */
172 | int yy_is_interactive;
173 |
174 | /* Whether we're considered to be at the beginning of a line.
175 | * If so, '^' rules will be active on the next match, otherwise
176 | * not.
177 | */
178 | int yy_at_bol;
179 |
180 | /* Whether to try to fill the input buffer when we reach the
181 | * end of it.
182 | */
183 | int yy_fill_buffer;
184 |
185 | int yy_buffer_status;
186 | #define YY_BUFFER_NEW 0
187 | #define YY_BUFFER_NORMAL 1
188 | /* When an EOF's been seen but there's still some text to process
189 | * then we mark the buffer as YY_EOF_PENDING, to indicate that we
190 | * shouldn't try reading from the input source any more. We might
191 | * still have a bunch of tokens to match, though, because of
192 | * possible backing-up.
193 | *
194 | * When we actually see the EOF, we change the status to "new"
195 | * (via yyrestart()), so that the user can continue scanning by
196 | * just pointing yyin at a new input file.
197 | */
198 | #define YY_BUFFER_EOF_PENDING 2
199 | };
200 |
201 | static YY_BUFFER_STATE yy_current_buffer = 0;
202 |
203 | /* We provide macros for accessing buffer states in case in the
204 | * future we want to put the buffer states in a more general
205 | * "scanner state".
206 | */
207 | #define YY_CURRENT_BUFFER yy_current_buffer
208 |
209 |
210 | /* yy_hold_char holds the character lost when yytext is formed. */
211 | static char yy_hold_char;
212 |
213 | static int yy_n_chars; /* number of characters read into yy_ch_buf */
214 |
215 |
216 | int yyleng;
217 |
218 | /* Points to current character in buffer. */
219 | static char *yy_c_buf_p = (char *) 0;
220 | static int yy_init = 1; /* whether we need to initialize */
221 | static int yy_start = 0; /* start state number */
222 |
223 | /* Flag which is used to allow yywrap()'s to do buffer switches
224 | * instead of setting up a fresh yyin. A bit of a hack ...
225 | */
226 | static int yy_did_buffer_switch_on_eof;
227 |
228 | void yyrestart YY_PROTO(( FILE *input_file ));
229 |
230 | void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
231 | void yy_load_buffer_state YY_PROTO(( void ));
232 | YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
233 | void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
234 | void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
235 | void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
236 | #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
237 |
238 | YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
239 | YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
240 | YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
241 |
242 | static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
243 | static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
244 | static void yy_flex_free YY_PROTO(( void * ));
245 |
246 | #define yy_new_buffer yy_create_buffer
247 |
248 | #define yy_set_interactive(is_interactive) \
249 | { \
250 | if ( ! yy_current_buffer ) \
251 | yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
252 | yy_current_buffer->yy_is_interactive = is_interactive; \
253 | }
254 |
255 | #define yy_set_bol(at_bol) \
256 | { \
257 | if ( ! yy_current_buffer ) \
258 | yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
259 | yy_current_buffer->yy_at_bol = at_bol; \
260 | }
261 |
262 | #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
263 |
264 | typedef unsigned char YY_CHAR;
265 | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
266 | typedef int yy_state_type;
267 | extern char *yytext;
268 | #define yytext_ptr yytext
269 |
270 | static yy_state_type yy_get_previous_state YY_PROTO(( void ));
271 | static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
272 | static int yy_get_next_buffer YY_PROTO(( void ));
273 | static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
274 |
275 | /* Done after the current pattern has been matched and before the
276 | * corresponding action - sets up yytext.
277 | */
278 | #define YY_DO_BEFORE_ACTION \
279 | yytext_ptr = yy_bp; \
280 | yyleng = (int) (yy_cp - yy_bp); \
281 | yy_hold_char = *yy_cp; \
282 | *yy_cp = '\0'; \
283 | yy_c_buf_p = yy_cp;
284 |
285 | #define YY_NUM_RULES 209
286 | #define YY_END_OF_BUFFER 210
287 | static yyconst short int yy_accept[698] =
288 | { 0,
289 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
290 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
291 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
292 | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
293 | 0, 0, 210, 208, 207, 208, 184, 208, 47, 196,
294 | 190, 183, 208, 177, 179, 188, 187, 174, 186, 182,
295 | 189, 199, 199, 175, 168, 191, 176, 192, 195, 196,
296 | 180, 181, 193, 196, 196, 196, 196, 196, 196, 196,
297 | 196, 196, 196, 196, 196, 196, 196, 196, 196, 169,
298 | 194, 172, 185, 25, 25, 24, 25, 21, 22, 31,
299 |
300 | 30, 31, 31, 31, 39, 39, 35, 40, 40, 40,
301 | 29, 28, 29, 26, 27, 209, 34, 209, 44, 44,
302 | 46, 45, 52, 54, 52, 52, 52, 209, 209, 209,
303 | 51, 51, 51, 81, 83, 81, 81, 81, 81, 209,
304 | 209, 209, 86, 209, 209, 57, 55, 209, 209, 60,
305 | 59, 209, 58, 60, 60, 77, 79, 77, 77, 68,
306 | 77, 77, 77, 71, 71, 77, 65, 62, 67, 64,
307 | 209, 209, 95, 96, 99, 98, 100, 103, 102, 104,
308 | 111, 207, 0, 166, 0, 205, 0, 47, 196, 196,
309 | 152, 161, 153, 0, 0, 0, 0, 150, 158, 148,
310 |
311 | 0, 0, 159, 149, 160, 0, 203, 1, 11, 151,
312 | 204, 198, 0, 199, 0, 199, 0, 0, 157, 163,
313 | 165, 164, 156, 0, 0, 154, 196, 196, 196, 196,
314 | 196, 196, 196, 196, 119, 196, 196, 196, 196, 196,
315 | 196, 127, 196, 196, 196, 196, 196, 196, 196, 196,
316 | 196, 196, 196, 155, 162, 0, 0, 0, 0, 24,
317 | 0, 21, 23, 22, 30, 0, 0, 0, 33, 39,
318 | 39, 0, 0, 0, 0, 35, 0, 0, 43, 0,
319 | 28, 0, 26, 27, 0, 34, 0, 44, 44, 46,
320 | 0, 54, 0, 3, 13, 53, 0, 2, 12, 48,
321 |
322 | 0, 51, 51, 51, 83, 0, 0, 5, 15, 82,
323 | 0, 0, 9, 19, 0, 86, 0, 85, 10, 20,
324 | 57, 55, 55, 4, 14, 56, 0, 59, 0, 6,
325 | 16, 61, 0, 79, 0, 0, 76, 0, 68, 68,
326 | 0, 75, 0, 73, 8, 18, 74, 70, 0, 71,
327 | 0, 71, 78, 0, 65, 62, 0, 7, 17, 66,
328 | 0, 95, 99, 103, 200, 178, 173, 145, 0, 203,
329 | 203, 0, 204, 198, 0, 202, 197, 167, 147, 146,
330 | 0, 206, 0, 0, 0, 196, 196, 196, 196, 196,
331 | 196, 196, 196, 196, 196, 196, 196, 93, 196, 196,
332 |
333 | 196, 196, 196, 196, 196, 196, 196, 196, 196, 125,
334 | 196, 196, 128, 196, 196, 196, 196, 196, 196, 196,
335 | 196, 196, 196, 196, 196, 196, 196, 196, 0, 0,
336 | 0, 0, 32, 36, 37, 0, 41, 42, 51, 51,
337 | 80, 84, 0, 76, 0, 0, 75, 0, 0, 73,
338 | 73, 0, 74, 70, 0, 72, 69, 0, 0, 203,
339 | 0, 203, 0, 204, 202, 197, 201, 196, 196, 196,
340 | 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
341 | 196, 112, 196, 114, 115, 196, 196, 196, 196, 121,
342 | 122, 196, 196, 126, 196, 130, 196, 196, 196, 196,
343 |
344 | 196, 196, 196, 196, 196, 196, 196, 142, 196, 196,
345 | 171, 170, 38, 51, 51, 0, 73, 0, 73, 0,
346 | 74, 72, 69, 63, 0, 203, 196, 196, 93, 196,
347 | 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
348 | 113, 196, 116, 196, 196, 196, 196, 124, 196, 196,
349 | 196, 133, 196, 196, 196, 196, 196, 196, 196, 140,
350 | 196, 196, 144, 51, 51, 0, 73, 196, 196, 196,
351 | 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
352 | 196, 196, 196, 196, 120, 123, 129, 196, 132, 134,
353 | 135, 136, 137, 138, 196, 101, 196, 196, 51, 51,
354 |
355 | 196, 196, 196, 196, 91, 196, 196, 196, 196, 196,
356 | 196, 196, 196, 196, 196, 118, 196, 139, 196, 196,
357 | 49, 51, 196, 196, 196, 196, 196, 196, 92, 196,
358 | 196, 88, 101, 196, 196, 196, 117, 131, 141, 143,
359 | 50, 196, 87, 196, 196, 91, 196, 196, 94, 196,
360 | 196, 196, 196, 196, 196, 196, 196, 196, 196, 196,
361 | 92, 106, 88, 89, 90, 196, 196, 87, 97, 196,
362 | 196, 196, 196, 196, 196, 108, 196, 196, 196, 106,
363 | 89, 90, 196, 97, 196, 105, 0, 0, 196, 0,
364 | 0, 196, 0, 110, 196, 109, 0
365 |
366 | } ;
367 |
368 | static yyconst int yy_ec[256] =
369 | { 0,
370 | 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
371 | 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
372 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
373 | 1, 2, 5, 6, 7, 8, 9, 10, 11, 12,
374 | 13, 14, 15, 16, 17, 18, 19, 20, 21, 21,
375 | 21, 21, 21, 21, 21, 21, 21, 22, 23, 24,
376 | 25, 26, 27, 1, 28, 28, 29, 28, 30, 31,
377 | 32, 32, 33, 32, 32, 34, 32, 35, 36, 32,
378 | 32, 32, 32, 37, 38, 32, 32, 39, 32, 32,
379 | 40, 41, 42, 43, 44, 1, 45, 46, 47, 48,
380 |
381 | 49, 50, 51, 52, 53, 54, 55, 56, 57, 58,
382 | 59, 60, 54, 61, 62, 63, 64, 65, 66, 67,
383 | 68, 69, 70, 71, 72, 73, 1, 1, 1, 1,
384 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
385 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
386 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
387 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
388 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
389 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
390 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
391 |
392 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
393 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
394 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
395 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
396 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
397 | 1, 1, 1, 1, 1
398 | } ;
399 |
400 | static yyconst int yy_meta[74] =
401 | { 0,
402 | 1, 1, 2, 3, 1, 4, 1, 5, 1, 1,
403 | 6, 7, 7, 8, 8, 1, 1, 9, 1, 10,
404 | 10, 1, 11, 1, 1, 12, 1, 10, 10, 10,
405 | 10, 5, 5, 5, 5, 5, 5, 5, 5, 1,
406 | 1, 1, 1, 5, 13, 13, 13, 13, 13, 13,
407 | 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
408 | 14, 14, 14, 14, 14, 14, 14, 14, 14, 1,
409 | 1, 1, 1
410 | } ;
411 |
412 | static yyconst short int yy_base[735] =
413 | { 0,
414 | 0, 0, 72, 75, 77, 79, 93, 96, 98, 100,
415 | 81, 102, 114, 117, 119, 121, 144, 195, 125, 129,
416 | 120, 124, 148, 152, 264, 0, 335, 337, 378, 0,
417 | 451, 0, 2011, 2010, 124, 129, 0, 0, 133, 145,
418 | 0, 0, 2032, 2035, 2035, 165, 2006, 141, 2028, 2021,
419 | 2003, 149, 1986, 2035, 159, 2001, 158, 215, 155, 166,
420 | 204, 507, 513, 2035, 217, 151, 2000, 195, 2035, 216,
421 | 2035, 2035, 1999, 521, 169, 171, 527, 524, 522, 528,
422 | 126, 180, 531, 518, 540, 530, 536, 532, 544, 2035,
423 | 517, 212, 2035, 2035, 343, 2035, 222, 346, 348, 2035,
424 |
425 | 2035, 339, 352, 337, 0, 593, 595, 365, 345, 358,
426 | 2035, 2035, 371, 2009, 2007, 546, 2035, 550, 0, 555,
427 | 2035, 557, 2035, 2035, 572, 585, 578, 2035, 586, 599,
428 | 0, 1972, 1962, 2035, 2035, 608, 0, 599, 611, 0,
429 | 602, 620, 2035, 622, 613, 2017, 2010, 614, 626, 2035,
430 | 2035, 631, 2035, 617, 634, 2035, 2035, 639, 633, 2009,
431 | 544, 624, 632, 657, 634, 644, 2014, 1997, 2035, 2035,
432 | 639, 646, 0, 2035, 0, 2035, 2035, 0, 2035, 2035,
433 | 2035, 2035, 653, 2035, 653, 2035, 2011, 2011, 2004, 2003,
434 | 2035, 2035, 2035, 651, 658, 351, 646, 2035, 2035, 2035,
435 |
436 | 661, 657, 2035, 2035, 2035, 1992, 680, 2035, 2035, 2035,
437 | 688, 705, 664, 648, 0, 728, 686, 683, 1984, 2035,
438 | 2035, 2035, 1983, 687, 1966, 2035, 785, 659, 707, 691,
439 | 665, 662, 695, 681, 709, 712, 724, 726, 737, 725,
440 | 734, 1998, 739, 733, 743, 742, 748, 759, 747, 749,
441 | 752, 755, 757, 2035, 2035, 757, 762, 810, 821, 2035,
442 | 768, 837, 2035, 813, 2035, 775, 768, 804, 2035, 0,
443 | 840, 1991, 807, 843, 857, 860, 840, 761, 2035, 1985,
444 | 2035, 860, 1989, 1975, 863, 2035, 865, 0, 868, 2035,
445 | 873, 2035, 875, 2035, 2035, 2035, 877, 2035, 2035, 1974,
446 |
447 | 871, 0, 1916, 1892, 2035, 880, 807, 2035, 2035, 2035,
448 | 882, 1919, 2035, 2035, 885, 2035, 890, 875, 2035, 2035,
449 | 1913, 1894, 1893, 2035, 2035, 2035, 894, 2035, 896, 2035,
450 | 2035, 2035, 898, 2035, 900, 762, 2035, 903, 1890, 1889,
451 | 796, 2035, 904, 890, 2035, 2035, 892, 898, 935, 895,
452 | 0, 940, 2035, 931, 1894, 1865, 1864, 2035, 2035, 2035,
453 | 934, 0, 0, 0, 2035, 2035, 2035, 2035, 948, 2035,
454 | 951, 971, 2035, 919, 946, 956, 946, 2035, 2035, 2035,
455 | 884, 2035, 1875, 932, 787, 941, 985, 956, 986, 987,
456 | 991, 989, 777, 990, 995, 997, 1000, 1869, 1001, 1005,
457 |
458 | 1003, 1006, 1007, 1008, 556, 1009, 1011, 1013, 1016, 1867,
459 | 1014, 1018, 1866, 1015, 1019, 1010, 1017, 1021, 1027, 1020,
460 | 1022, 1024, 1028, 1023, 1031, 1032, 1030, 1025, 1083, 1023,
461 | 1086, 1032, 2035, 2035, 2035, 1870, 2035, 2035, 1819, 1803,
462 | 2035, 2035, 1050, 1051, 1089, 1053, 1078, 1086, 1083, 2035,
463 | 1086, 1093, 2035, 1077, 1101, 1103, 1091, 1840, 1111, 1118,
464 | 1141, 2035, 1123, 1144, 2035, 1116, 2035, 1091, 1093, 1088,
465 | 1104, 1110, 1132, 1120, 1101, 1140, 1143, 1152, 1158, 1161,
466 | 1163, 1846, 1162, 1845, 1165, 1168, 1169, 1171, 1173, 1843,
467 | 1842, 1176, 1177, 1841, 1174, 1840, 1179, 1181, 1180, 1184,
468 |
469 | 1185, 1183, 80, 1187, 1190, 1188, 1194, 1828, 1189, 1198,
470 | 2035, 2035, 2035, 1772, 1758, 1187, 1230, 1195, 2035, 1193,
471 | 1234, 2035, 1192, 2035, 1200, 1238, 1036, 1216, 1219, 1196,
472 | 1217, 1191, 1252, 1254, 1262, 1203, 1220, 1263, 1266, 1231,
473 | 1799, 1267, 1798, 1269, 1273, 1271, 1275, 1776, 1274, 1277,
474 | 1279, 1771, 1283, 1284, 1281, 1285, 1287, 1289, 1291, 1770,
475 | 1288, 1290, 1760, 1711, 1711, 1282, 1324, 1298, 1292, 1305,
476 | 1300, 1296, 1297, 1306, 1307, 1301, 1302, 1313, 1308, 1310,
477 | 1309, 1328, 1314, 1316, 1749, 1748, 1747, 1317, 1746, 1533,
478 | 1529, 1528, 1527, 1526, 1318, 1525, 1322, 1334, 1530, 1481,
479 |
480 | 1343, 1339, 1346, 1344, 1361, 1348, 1362, 1369, 1367, 1373,
481 | 1374, 1375, 1376, 1377, 1378, 1520, 1379, 1519, 1380, 1381,
482 | 1522, 1516, 1383, 1385, 1386, 1387, 1388, 1391, 1392, 1393,
483 | 1394, 1395, 1398, 1399, 1396, 1400, 1504, 1492, 1491, 1487,
484 | 1199, 1408, 1407, 1401, 1409, 922, 1404, 1410, 845, 1406,
485 | 1414, 1415, 1417, 1418, 1423, 1426, 1438, 1439, 1441, 1447,
486 | 821, 1448, 744, 1449, 1452, 1453, 1454, 562, 1458, 1463,
487 | 1465, 1466, 1469, 1470, 1464, 560, 1472, 1473, 1475, 558,
488 | 369, 338, 1477, 231, 1467, 229, 915, 1501, 1476, 1505,
489 | 1518, 1478, 342, 2035, 1479, 101, 2035, 1542, 1556, 1570,
490 |
491 | 1584, 1598, 1612, 1626, 1640, 1654, 1668, 1682, 1696, 1710,
492 | 1724, 1738, 1748, 1762, 1776, 1790, 1804, 1477, 1818, 1832,
493 | 1842, 1856, 1866, 1880, 1890, 1904, 1918, 1932, 1484, 1946,
494 | 1960, 1974, 1988, 1491
495 | } ;
496 |
497 | static yyconst short int yy_def[735] =
498 | { 0,
499 | 697, 1, 698, 698, 699, 699, 700, 700, 701, 701,
500 | 702, 702, 703, 703, 704, 704, 705, 705, 706, 706,
501 | 705, 705, 705, 705, 697, 25, 707, 707, 697, 29,
502 | 697, 31, 708, 708, 709, 709, 705, 705, 710, 710,
503 | 711, 711, 697, 697, 697, 697, 697, 712, 697, 713,
504 | 697, 697, 714, 697, 697, 697, 697, 697, 697, 697,
505 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 713,
506 | 697, 697, 697, 713, 713, 713, 713, 713, 713, 713,
507 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 697,
508 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
509 |
510 | 697, 697, 697, 697, 715, 715, 697, 697, 697, 697,
511 | 697, 697, 697, 697, 697, 716, 697, 716, 717, 717,
512 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
513 | 718, 718, 718, 697, 697, 697, 719, 697, 697, 720,
514 | 697, 697, 697, 697, 697, 697, 721, 697, 697, 697,
515 | 697, 697, 697, 697, 697, 697, 697, 697, 722, 723,
516 | 724, 697, 697, 697, 697, 697, 697, 725, 697, 697,
517 | 697, 697, 726, 697, 727, 697, 697, 728, 697, 697,
518 | 697, 697, 697, 697, 712, 697, 712, 697, 713, 713,
519 | 697, 697, 697, 714, 714, 697, 697, 697, 697, 697,
520 |
521 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
522 | 697, 697, 697, 697, 729, 697, 697, 697, 697, 697,
523 | 697, 697, 697, 730, 731, 697, 713, 713, 713, 713,
524 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
525 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
526 | 713, 713, 713, 697, 697, 697, 697, 697, 697, 697,
527 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 715,
528 | 715, 697, 697, 697, 697, 697, 697, 697, 697, 697,
529 | 697, 697, 697, 697, 716, 697, 716, 717, 717, 697,
530 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
531 |
532 | 697, 718, 718, 718, 697, 697, 719, 697, 697, 697,
533 | 697, 720, 697, 697, 697, 697, 697, 697, 697, 697,
534 | 697, 721, 721, 697, 697, 697, 697, 697, 697, 697,
535 | 697, 697, 697, 697, 697, 722, 697, 732, 723, 723,
536 | 724, 697, 733, 697, 697, 697, 697, 697, 697, 697,
537 | 734, 697, 697, 697, 697, 725, 697, 697, 697, 697,
538 | 697, 726, 727, 728, 697, 697, 697, 697, 697, 697,
539 | 697, 697, 697, 697, 697, 697, 729, 697, 697, 697,
540 | 730, 697, 730, 731, 731, 713, 713, 713, 713, 713,
541 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
542 |
543 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
544 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
545 | 713, 713, 713, 713, 713, 713, 713, 713, 697, 697,
546 | 697, 697, 697, 697, 697, 697, 697, 697, 718, 718,
547 | 697, 697, 722, 722, 732, 724, 724, 733, 697, 697,
548 | 697, 697, 697, 697, 697, 697, 734, 697, 697, 697,
549 | 697, 697, 697, 697, 697, 697, 697, 713, 713, 713,
550 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
551 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
552 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
553 |
554 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
555 | 697, 697, 697, 718, 718, 697, 697, 697, 697, 697,
556 | 697, 697, 697, 697, 697, 697, 713, 713, 713, 713,
557 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
558 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
559 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
560 | 713, 713, 713, 718, 718, 697, 697, 713, 713, 713,
561 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
562 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
563 | 713, 713, 713, 713, 713, 713, 713, 713, 718, 718,
564 |
565 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
566 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
567 | 697, 718, 713, 713, 713, 713, 713, 713, 713, 713,
568 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
569 | 697, 713, 713, 713, 713, 713, 713, 713, 713, 713,
570 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
571 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
572 | 713, 713, 713, 713, 713, 713, 713, 713, 713, 713,
573 | 713, 713, 713, 713, 713, 713, 697, 697, 713, 697,
574 | 697, 713, 697, 697, 713, 713, 0, 697, 697, 697,
575 |
576 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
577 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
578 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
579 | 697, 697, 697, 697
580 | } ;
581 |
582 | static yyconst short int yy_nxt[2109] =
583 | { 0,
584 | 44, 44, 45, 46, 47, 48, 49, 50, 51, 52,
585 | 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
586 | 63, 64, 65, 66, 67, 68, 69, 50, 50, 50,
587 | 50, 50, 50, 70, 50, 50, 50, 50, 50, 71,
588 | 44, 72, 73, 74, 75, 76, 77, 78, 79, 80,
589 | 81, 50, 82, 50, 50, 83, 50, 50, 50, 50,
590 | 84, 85, 86, 87, 88, 89, 50, 50, 50, 90,
591 | 91, 92, 93, 95, 96, 97, 95, 96, 97, 101,
592 | 102, 101, 102, 117, 118, 98, 99, 189, 98, 99,
593 | 103, 104, 103, 104, 106, 107, 108, 106, 107, 108,
594 |
595 | 112, 113, 112, 113, 117, 118, 109, 110, 189, 109,
596 | 110, 114, 115, 114, 115, 120, 121, 122, 120, 121,
597 | 122, 124, 125, 124, 125, 140, 556, 135, 136, 140,
598 | 137, 135, 136, 189, 137, 176, 177, 126, 141, 126,
599 | 176, 177, 141, 138, 179, 180, 186, 138, 137, 142,
600 | 143, 144, 137, 142, 143, 144, 179, 180, 192, 127,
601 | 196, 127, 129, 130, 130, 139, 145, 182, 183, 139,
602 | 145, 203, 199, 193, 219, 220, 189, 197, 189, 204,
603 | 205, 187, 200, 206, 241, 207, 207, 189, 131, 131,
604 | 131, 132, 131, 131, 131, 131, 133, 131, 131, 131,
605 |
606 | 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
607 | 131, 131, 131, 129, 130, 130, 201, 208, 217, 222,
608 | 223, 224, 209, 189, 260, 261, 225, 256, 210, 242,
609 | 228, 230, 229, 202, 257, 218, 189, 243, 189, 131,
610 | 131, 131, 132, 131, 131, 131, 131, 133, 131, 131,
611 | 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
612 | 131, 131, 131, 131, 128, 146, 128, 128, 128, 128,
613 | 128, 147, 128, 128, 128, 128, 128, 128, 128, 128,
614 | 128, 128, 148, 128, 128, 128, 128, 128, 128, 128,
615 | 128, 147, 147, 147, 147, 147, 147, 147, 147, 147,
616 |
617 | 147, 147, 147, 128, 149, 128, 128, 147, 147, 147,
618 | 147, 147, 147, 147, 147, 147, 147, 147, 147, 147,
619 | 147, 147, 147, 147, 147, 147, 147, 147, 147, 147,
620 | 147, 147, 147, 128, 128, 128, 128, 151, 152, 151,
621 | 152, 265, 266, 693, 258, 189, 153, 258, 153, 258,
622 | 267, 268, 196, 154, 694, 154, 259, 258, 278, 262,
623 | 258, 259, 264, 279, 263, 267, 268, 276, 277, 197,
624 | 269, 280, 273, 281, 282, 155, 189, 155, 156, 156,
625 | 157, 158, 156, 159, 156, 160, 156, 156, 161, 156,
626 | 156, 156, 156, 156, 156, 162, 163, 164, 165, 156,
627 |
628 | 156, 156, 156, 156, 156, 160, 160, 160, 160, 160,
629 | 160, 160, 160, 160, 160, 160, 160, 156, 166, 156,
630 | 156, 160, 160, 160, 160, 160, 160, 160, 160, 160,
631 | 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
632 | 160, 160, 160, 160, 160, 160, 160, 156, 156, 156,
633 | 156, 128, 167, 128, 128, 128, 128, 128, 168, 128,
634 | 128, 128, 128, 169, 128, 128, 170, 128, 128, 171,
635 | 128, 128, 128, 128, 128, 128, 128, 128, 168, 168,
636 | 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
637 | 128, 172, 128, 128, 168, 168, 168, 168, 168, 168,
638 |
639 | 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
640 | 168, 168, 168, 168, 168, 168, 168, 168, 168, 168,
641 | 128, 128, 128, 128, 211, 189, 212, 212, 189, 189,
642 | 211, 189, 216, 216, 189, 189, 213, 189, 189, 189,
643 | 214, 254, 213, 189, 214, 215, 214, 189, 286, 287,
644 | 214, 189, 286, 287, 342, 213, 289, 290, 291, 290,
645 | 291, 213, 214, 189, 227, 189, 245, 189, 214, 189,
646 | 214, 231, 234, 215, 292, 293, 214, 236, 232, 237,
647 | 296, 297, 235, 239, 343, 233, 240, 255, 238, 244,
648 | 252, 246, 247, 251, 271, 253, 274, 250, 294, 298,
649 |
650 | 300, 489, 248, 295, 299, 249, 272, 273, 275, 275,
651 | 305, 306, 308, 310, 311, 313, 275, 309, 301, 301,
652 | 314, 315, 316, 317, 316, 317, 319, 324, 326, 327,
653 | 330, 320, 325, 328, 329, 331, 332, 333, 337, 318,
654 | 318, 334, 335, 344, 344, 345, 353, 354, 360, 361,
655 | 346, 347, 358, 352, 352, 182, 183, 359, 186, 366,
656 | 697, 365, 201, 349, 366, 275, 189, 350, 194, 189,
657 | 367, 350, 189, 338, 347, 367, 348, 348, 375, 202,
658 | 375, 214, 349, 376, 376, 214, 349, 217, 189, 350,
659 | 350, 195, 382, 187, 350, 351, 378, 350, 189, 207,
660 |
661 | 207, 378, 189, 214, 218, 349, 402, 371, 371, 369,
662 | 370, 214, 350, 370, 189, 398, 189, 372, 373, 189,
663 | 350, 373, 211, 351, 212, 212, 401, 383, 369, 370,
664 | 404, 189, 189, 189, 213, 370, 372, 373, 374, 400,
665 | 189, 189, 374, 373, 189, 211, 189, 216, 216, 189,
666 | 189, 189, 403, 213, 189, 189, 189, 213, 429, 189,
667 | 374, 214, 189, 431, 189, 214, 189, 337, 374, 399,
668 | 260, 261, 405, 406, 278, 430, 213, 265, 266, 437,
669 | 432, 267, 268, 214, 189, 410, 433, 407, 408, 697,
670 | 414, 214, 189, 415, 412, 409, 411, 384, 418, 422,
671 |
672 | 417, 413, 338, 420, 424, 416, 342, 426, 423, 428,
673 | 427, 258, 441, 425, 258, 386, 419, 267, 268, 421,
674 | 280, 273, 258, 259, 258, 477, 259, 264, 189, 387,
675 | 388, 389, 441, 390, 259, 258, 343, 391, 258, 263,
676 | 392, 271, 276, 277, 274, 393, 394, 395, 396, 397,
677 | 262, 258, 189, 272, 273, 263, 275, 275, 434, 435,
678 | 436, 274, 281, 282, 275, 286, 287, 286, 287, 289,
679 | 290, 291, 300, 275, 275, 290, 291, 292, 293, 296,
680 | 297, 275, 305, 306, 310, 311, 315, 316, 317, 382,
681 | 301, 301, 316, 317, 318, 318, 326, 327, 328, 329,
682 |
683 | 332, 333, 334, 335, 318, 318, 336, 341, 444, 344,
684 | 344, 451, 451, 275, 447, 347, 687, 348, 348, 449,
685 | 450, 452, 453, 450, 383, 453, 688, 349, 350, 189,
686 | 275, 454, 350, 353, 354, 454, 360, 361, 449, 450,
687 | 452, 453, 467, 445, 448, 450, 349, 453, 189, 455,
688 | 350, 455, 374, 454, 456, 456, 374, 347, 350, 352,
689 | 352, 454, 459, 189, 459, 376, 376, 460, 460, 349,
690 | 371, 371, 385, 350, 374, 376, 376, 350, 468, 466,
691 | 461, 462, 374, 466, 462, 463, 465, 463, 349, 465,
692 | 464, 464, 189, 189, 189, 350, 189, 189, 189, 461,
693 |
694 | 462, 466, 189, 350, 189, 465, 462, 189, 189, 466,
695 | 189, 465, 189, 189, 189, 189, 189, 189, 189, 472,
696 | 189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
697 | 189, 189, 189, 476, 189, 189, 511, 189, 189, 189,
698 | 469, 511, 478, 189, 473, 512, 470, 471, 475, 483,
699 | 512, 484, 488, 474, 480, 337, 337, 490, 481, 482,
700 | 493, 492, 479, 342, 568, 496, 485, 491, 486, 487,
701 | 495, 497, 494, 498, 509, 501, 505, 499, 500, 508,
702 | 510, 506, 502, 507, 429, 503, 504, 431, 342, 341,
703 | 338, 338, 336, 343, 444, 189, 447, 516, 189, 516,
704 |
705 | 189, 430, 517, 517, 432, 451, 451, 520, 189, 520,
706 | 454, 189, 521, 521, 454, 518, 519, 189, 343, 519,
707 | 456, 456, 456, 456, 523, 527, 448, 189, 523, 445,
708 | 460, 460, 454, 522, 518, 519, 522, 460, 460, 189,
709 | 454, 519, 464, 464, 529, 528, 523, 189, 370, 466,
710 | 189, 370, 522, 466, 523, 525, 534, 525, 522, 189,
711 | 526, 526, 531, 464, 464, 189, 530, 370, 189, 189,
712 | 189, 466, 189, 370, 373, 189, 189, 373, 189, 466,
713 | 189, 189, 533, 189, 189, 535, 189, 189, 189, 532,
714 | 189, 189, 189, 373, 189, 189, 189, 189, 189, 373,
715 |
716 | 641, 189, 537, 189, 536, 189, 517, 517, 542, 566,
717 | 189, 566, 521, 521, 567, 567, 541, 538, 540, 526,
718 | 526, 544, 539, 189, 189, 523, 189, 189, 546, 523,
719 | 543, 549, 553, 557, 545, 555, 547, 558, 189, 548,
720 | 550, 551, 552, 554, 561, 560, 563, 523, 559, 517,
721 | 517, 562, 573, 521, 521, 523, 571, 526, 526, 189,
722 | 450, 189, 570, 450, 453, 577, 569, 453, 462, 189,
723 | 189, 462, 572, 189, 189, 581, 189, 578, 189, 450,
724 | 189, 189, 189, 453, 189, 450, 189, 462, 189, 453,
725 | 189, 189, 189, 462, 189, 189, 189, 189, 189, 189,
726 |
727 | 574, 567, 567, 189, 189, 189, 575, 189, 189, 189,
728 | 576, 579, 189, 189, 189, 189, 189, 189, 580, 585,
729 | 189, 189, 587, 189, 189, 189, 583, 592, 584, 189,
730 | 590, 582, 586, 591, 601, 189, 589, 595, 594, 588,
731 | 596, 189, 598, 567, 567, 597, 189, 593, 398, 602,
732 | 189, 189, 603, 189, 519, 189, 608, 519, 604, 605,
733 | 612, 610, 609, 606, 607, 617, 611, 618, 189, 189,
734 | 619, 613, 614, 519, 189, 623, 189, 615, 616, 519,
735 | 189, 189, 189, 189, 189, 189, 189, 189, 189, 620,
736 | 189, 625, 189, 189, 189, 189, 626, 624, 189, 189,
737 |
738 | 189, 189, 189, 189, 627, 189, 189, 189, 189, 628,
739 | 629, 189, 630, 189, 189, 189, 189, 189, 642, 631,
740 | 632, 189, 189, 633, 189, 189, 637, 639, 635, 640,
741 | 189, 646, 634, 189, 643, 648, 649, 636, 651, 638,
742 | 650, 652, 656, 647, 645, 189, 189, 653, 189, 644,
743 | 657, 654, 659, 661, 189, 189, 189, 663, 596, 189,
744 | 189, 189, 660, 658, 664, 189, 665, 655, 662, 667,
745 | 189, 189, 189, 189, 189, 666, 189, 189, 687, 189,
746 | 189, 668, 189, 189, 189, 189, 189, 669, 688, 302,
747 | 302, 672, 673, 377, 189, 674, 377, 676, 189, 189,
748 |
749 | 457, 677, 690, 457, 671, 670, 690, 678, 679, 680,
750 | 675, 189, 681, 682, 683, 684, 685, 641, 686, 693,
751 | 691, 691, 689, 621, 691, 691, 189, 189, 692, 622,
752 | 694, 621, 189, 189, 189, 189, 189, 691, 691, 695,
753 | 189, 696, 94, 94, 94, 94, 94, 94, 94, 94,
754 | 94, 94, 94, 94, 94, 94, 100, 100, 100, 100,
755 | 100, 100, 100, 100, 100, 100, 100, 100, 100, 100,
756 | 105, 105, 105, 105, 105, 105, 105, 105, 105, 105,
757 | 105, 105, 105, 105, 111, 111, 111, 111, 111, 111,
758 | 111, 111, 111, 111, 111, 111, 111, 111, 116, 116,
759 |
760 | 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
761 | 116, 116, 119, 119, 119, 119, 119, 119, 119, 119,
762 | 119, 119, 119, 119, 119, 119, 123, 123, 123, 123,
763 | 123, 123, 123, 123, 123, 123, 123, 123, 123, 123,
764 | 128, 128, 128, 128, 128, 128, 128, 128, 128, 128,
765 | 128, 128, 128, 128, 134, 134, 134, 134, 134, 134,
766 | 134, 134, 134, 134, 134, 134, 134, 134, 150, 150,
767 | 150, 150, 150, 150, 150, 150, 150, 150, 150, 150,
768 | 150, 150, 173, 173, 173, 173, 173, 173, 173, 173,
769 | 173, 173, 173, 173, 173, 173, 175, 175, 175, 175,
770 |
771 | 175, 175, 175, 175, 175, 175, 175, 175, 175, 175,
772 | 178, 178, 178, 178, 178, 178, 178, 178, 178, 178,
773 | 178, 178, 178, 178, 181, 181, 181, 181, 181, 181,
774 | 181, 181, 181, 181, 181, 181, 181, 181, 185, 185,
775 | 185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
776 | 185, 185, 190, 189, 189, 189, 189, 190, 600, 599,
777 | 190, 190, 194, 194, 194, 194, 194, 189, 194, 194,
778 | 194, 194, 194, 194, 194, 194, 270, 189, 189, 270,
779 | 270, 270, 270, 189, 270, 270, 270, 270, 270, 270,
780 | 285, 285, 285, 285, 285, 285, 285, 285, 285, 285,
781 |
782 | 285, 285, 285, 285, 288, 189, 189, 288, 288, 288,
783 | 288, 288, 288, 288, 288, 288, 288, 288, 307, 307,
784 | 307, 565, 307, 307, 307, 307, 307, 307, 307, 564,
785 | 307, 307, 312, 312, 312, 189, 312, 312, 312, 312,
786 | 312, 312, 312, 312, 312, 312, 323, 189, 189, 189,
787 | 189, 323, 189, 189, 323, 323, 336, 524, 515, 336,
788 | 336, 336, 336, 336, 336, 336, 336, 336, 336, 336,
789 | 340, 514, 513, 189, 189, 340, 189, 697, 340, 340,
790 | 341, 458, 357, 341, 341, 341, 341, 341, 341, 341,
791 | 341, 341, 341, 341, 356, 355, 339, 339, 356, 356,
792 |
793 | 322, 322, 356, 356, 362, 362, 362, 362, 362, 362,
794 | 362, 362, 362, 362, 321, 362, 362, 362, 363, 363,
795 | 363, 363, 363, 363, 442, 363, 363, 363, 363, 363,
796 | 363, 363, 364, 364, 364, 364, 364, 364, 440, 364,
797 | 364, 364, 364, 364, 364, 364, 381, 381, 381, 381,
798 | 381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
799 | 384, 384, 384, 384, 384, 439, 384, 384, 384, 384,
800 | 384, 384, 384, 384, 443, 300, 443, 443, 443, 443,
801 | 443, 443, 443, 443, 443, 443, 443, 443, 446, 284,
802 | 446, 446, 446, 446, 446, 446, 446, 446, 446, 446,
803 |
804 | 446, 446, 283, 438, 278, 189, 385, 380, 379, 368,
805 | 189, 189, 188, 697, 357, 355, 339, 322, 321, 304,
806 | 303, 284, 283, 226, 221, 198, 195, 191, 189, 188,
807 | 184, 697, 174, 174, 43, 697, 697, 697, 697, 697,
808 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
809 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
810 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
811 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
812 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
813 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
814 |
815 | 697, 697, 697, 697, 697, 697, 697, 697
816 | } ;
817 |
818 | static yyconst short int yy_chk[2109] =
819 | { 0,
820 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
821 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
822 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
823 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
824 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
825 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
826 | 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
827 | 1, 1, 1, 3, 3, 3, 4, 4, 4, 5,
828 | 5, 6, 6, 11, 11, 3, 3, 503, 4, 4,
829 | 5, 5, 6, 6, 7, 7, 7, 8, 8, 8,
830 |
831 | 9, 9, 10, 10, 12, 12, 7, 7, 696, 8,
832 | 8, 9, 9, 10, 10, 13, 13, 13, 14, 14,
833 | 14, 15, 15, 16, 16, 21, 503, 19, 19, 22,
834 | 19, 20, 20, 81, 20, 35, 35, 15, 21, 16,
835 | 36, 36, 22, 19, 39, 39, 48, 20, 19, 23,
836 | 23, 23, 20, 24, 24, 24, 40, 40, 52, 15,
837 | 55, 16, 17, 17, 17, 19, 23, 46, 46, 20,
838 | 24, 59, 57, 52, 66, 66, 75, 55, 76, 59,
839 | 59, 48, 57, 60, 81, 60, 60, 82, 17, 17,
840 | 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
841 |
842 | 17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
843 | 17, 17, 17, 18, 18, 18, 58, 61, 65, 68,
844 | 68, 70, 61, 70, 97, 97, 70, 92, 61, 82,
845 | 75, 76, 75, 58, 92, 65, 686, 82, 684, 18,
846 | 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
847 | 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
848 | 18, 18, 18, 18, 25, 25, 25, 25, 25, 25,
849 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
850 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
851 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
852 |
853 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
854 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
855 | 25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
856 | 25, 25, 25, 25, 25, 25, 25, 27, 27, 28,
857 | 28, 102, 102, 693, 95, 682, 27, 98, 28, 99,
858 | 104, 104, 196, 27, 693, 28, 95, 95, 109, 98,
859 | 98, 99, 99, 109, 98, 103, 103, 108, 108, 196,
860 | 103, 110, 110, 113, 113, 27, 681, 28, 29, 29,
861 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
862 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
863 |
864 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
865 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
866 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
867 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
868 | 29, 29, 29, 29, 29, 29, 29, 29, 29, 29,
869 | 29, 31, 31, 31, 31, 31, 31, 31, 31, 31,
870 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
871 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
872 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
873 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
874 |
875 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
876 | 31, 31, 31, 31, 31, 31, 31, 31, 31, 31,
877 | 31, 31, 31, 31, 62, 84, 62, 62, 74, 79,
878 | 63, 78, 63, 63, 77, 80, 62, 86, 83, 88,
879 | 62, 91, 63, 87, 62, 62, 63, 85, 116, 116,
880 | 63, 89, 118, 118, 161, 62, 120, 120, 120, 122,
881 | 122, 63, 62, 405, 74, 680, 84, 676, 63, 668,
882 | 62, 77, 78, 62, 125, 125, 63, 79, 77, 79,
883 | 127, 127, 78, 80, 161, 77, 80, 91, 79, 83,
884 | 88, 85, 85, 87, 106, 89, 107, 86, 126, 129,
885 |
886 | 130, 405, 85, 126, 129, 85, 106, 106, 107, 107,
887 | 136, 136, 138, 139, 139, 141, 107, 138, 130, 130,
888 | 141, 142, 142, 142, 144, 144, 145, 148, 149, 149,
889 | 154, 145, 148, 152, 152, 154, 155, 155, 159, 142,
890 | 142, 158, 158, 162, 162, 163, 166, 166, 172, 172,
891 | 163, 165, 171, 165, 165, 183, 183, 171, 185, 197,
892 | 195, 194, 201, 165, 197, 107, 228, 165, 195, 232,
893 | 202, 165, 231, 159, 164, 202, 164, 164, 213, 201,
894 | 213, 214, 165, 213, 213, 214, 164, 217, 234, 165,
895 | 164, 194, 224, 185, 164, 164, 218, 165, 230, 207,
896 |
897 | 207, 218, 233, 214, 217, 164, 232, 211, 211, 207,
898 | 207, 214, 164, 207, 229, 228, 235, 211, 211, 236,
899 | 164, 211, 212, 164, 212, 212, 231, 224, 207, 207,
900 | 234, 237, 240, 238, 212, 207, 211, 211, 212, 230,
901 | 244, 241, 212, 211, 239, 216, 243, 216, 216, 246,
902 | 245, 663, 233, 212, 249, 247, 250, 216, 256, 251,
903 | 212, 216, 252, 257, 253, 216, 248, 336, 212, 229,
904 | 261, 261, 235, 236, 278, 256, 216, 266, 266, 278,
905 | 257, 267, 267, 216, 393, 240, 267, 237, 238, 385,
906 | 244, 216, 227, 245, 243, 239, 241, 385, 247, 249,
907 |
908 | 246, 243, 336, 248, 251, 245, 341, 252, 250, 253,
909 | 252, 258, 307, 251, 264, 227, 247, 268, 268, 248,
910 | 273, 273, 259, 258, 258, 393, 264, 264, 661, 227,
911 | 227, 227, 307, 227, 259, 259, 341, 227, 262, 259,
912 | 227, 271, 277, 277, 274, 227, 227, 227, 227, 227,
913 | 262, 262, 649, 271, 271, 262, 274, 274, 275, 275,
914 | 275, 276, 282, 282, 274, 285, 285, 287, 287, 289,
915 | 289, 289, 301, 276, 276, 291, 291, 293, 293, 297,
916 | 297, 276, 306, 306, 311, 311, 315, 315, 315, 381,
917 | 301, 301, 317, 317, 318, 318, 327, 327, 329, 329,
918 |
919 | 333, 333, 335, 335, 315, 315, 338, 343, 338, 344,
920 | 344, 347, 347, 274, 343, 348, 687, 348, 348, 344,
921 | 344, 347, 347, 344, 381, 347, 687, 348, 350, 646,
922 | 276, 348, 350, 354, 354, 348, 361, 361, 344, 344,
923 | 347, 347, 384, 338, 343, 344, 348, 347, 386, 349,
924 | 350, 349, 374, 348, 349, 349, 374, 352, 350, 352,
925 | 352, 348, 369, 388, 369, 375, 375, 369, 369, 352,
926 | 371, 371, 384, 352, 374, 376, 376, 352, 386, 377,
927 | 371, 371, 374, 377, 371, 372, 376, 372, 352, 376,
928 | 372, 372, 387, 389, 390, 352, 392, 394, 391, 371,
929 |
930 | 371, 377, 395, 352, 396, 376, 371, 397, 399, 377,
931 | 401, 376, 400, 402, 403, 404, 406, 416, 407, 388,
932 | 408, 411, 414, 409, 417, 412, 415, 420, 418, 421,
933 | 424, 422, 428, 392, 419, 423, 430, 427, 425, 426,
934 | 387, 430, 394, 527, 389, 432, 387, 387, 391, 400,
935 | 432, 401, 404, 390, 396, 443, 444, 406, 397, 399,
936 | 409, 408, 395, 446, 527, 414, 402, 407, 403, 403,
937 | 412, 415, 411, 416, 427, 419, 423, 417, 418, 426,
938 | 428, 424, 420, 425, 429, 421, 422, 431, 447, 448,
939 | 443, 444, 445, 446, 445, 470, 448, 449, 468, 449,
940 |
941 | 469, 429, 449, 449, 431, 451, 451, 452, 475, 452,
942 | 454, 471, 452, 452, 454, 451, 451, 472, 447, 451,
943 | 455, 455, 456, 456, 457, 468, 448, 474, 457, 445,
944 | 459, 459, 454, 456, 451, 451, 456, 460, 460, 473,
945 | 454, 451, 463, 463, 470, 469, 457, 476, 460, 466,
946 | 477, 460, 456, 466, 457, 461, 475, 461, 456, 478,
947 | 461, 461, 472, 464, 464, 479, 471, 460, 480, 483,
948 | 481, 466, 485, 460, 464, 486, 487, 464, 488, 466,
949 | 489, 495, 474, 492, 493, 476, 497, 499, 498, 473,
950 | 502, 500, 501, 464, 504, 506, 509, 505, 532, 464,
951 |
952 | 641, 507, 478, 530, 477, 510, 516, 516, 485, 518,
953 | 536, 518, 520, 520, 518, 518, 483, 479, 481, 525,
954 | 525, 487, 480, 528, 531, 523, 529, 537, 489, 523,
955 | 486, 495, 500, 504, 488, 502, 492, 505, 540, 493,
956 | 497, 498, 499, 501, 507, 506, 510, 523, 505, 517,
957 | 517, 509, 532, 521, 521, 523, 530, 526, 526, 533,
958 | 517, 534, 529, 517, 521, 536, 528, 521, 526, 535,
959 | 538, 526, 531, 539, 542, 540, 544, 537, 546, 517,
960 | 545, 549, 547, 521, 550, 517, 551, 526, 555, 521,
961 | 553, 554, 556, 526, 557, 561, 558, 562, 559, 569,
962 |
963 | 533, 566, 566, 572, 573, 568, 534, 571, 576, 577,
964 | 535, 538, 570, 574, 575, 579, 581, 580, 539, 546,
965 | 578, 583, 549, 584, 588, 595, 544, 555, 545, 597,
966 | 553, 542, 547, 554, 568, 582, 551, 558, 557, 550,
967 | 559, 598, 562, 567, 567, 561, 602, 556, 570, 569,
968 | 601, 604, 571, 603, 567, 606, 576, 567, 572, 573,
969 | 580, 578, 577, 574, 575, 588, 579, 595, 605, 607,
970 | 597, 581, 582, 567, 609, 601, 608, 583, 584, 567,
971 | 610, 611, 612, 613, 614, 615, 617, 619, 620, 598,
972 | 623, 603, 624, 625, 626, 627, 604, 602, 628, 629,
973 |
974 | 630, 631, 632, 635, 605, 633, 634, 636, 644, 606,
975 | 607, 647, 608, 650, 643, 642, 645, 648, 623, 609,
976 | 610, 651, 652, 611, 653, 654, 615, 619, 613, 620,
977 | 655, 627, 612, 656, 624, 629, 630, 614, 632, 617,
978 | 631, 633, 642, 628, 626, 657, 658, 634, 659, 625,
979 | 643, 635, 645, 648, 660, 662, 664, 651, 652, 665,
980 | 666, 667, 647, 644, 653, 669, 654, 636, 650, 656,
981 | 670, 675, 671, 672, 685, 655, 673, 674, 683, 677,
982 | 678, 657, 679, 689, 683, 692, 695, 658, 683, 718,
983 | 718, 662, 664, 729, 640, 665, 729, 667, 639, 638,
984 |
985 | 734, 669, 688, 734, 660, 659, 690, 670, 671, 672,
986 | 666, 637, 673, 674, 675, 677, 678, 622, 679, 691,
987 | 688, 688, 685, 621, 690, 690, 618, 616, 689, 600,
988 | 691, 599, 596, 594, 593, 592, 591, 691, 691, 692,
989 | 590, 695, 698, 698, 698, 698, 698, 698, 698, 698,
990 | 698, 698, 698, 698, 698, 698, 699, 699, 699, 699,
991 | 699, 699, 699, 699, 699, 699, 699, 699, 699, 699,
992 | 700, 700, 700, 700, 700, 700, 700, 700, 700, 700,
993 | 700, 700, 700, 700, 701, 701, 701, 701, 701, 701,
994 | 701, 701, 701, 701, 701, 701, 701, 701, 702, 702,
995 |
996 | 702, 702, 702, 702, 702, 702, 702, 702, 702, 702,
997 | 702, 702, 703, 703, 703, 703, 703, 703, 703, 703,
998 | 703, 703, 703, 703, 703, 703, 704, 704, 704, 704,
999 | 704, 704, 704, 704, 704, 704, 704, 704, 704, 704,
1000 | 705, 705, 705, 705, 705, 705, 705, 705, 705, 705,
1001 | 705, 705, 705, 705, 706, 706, 706, 706, 706, 706,
1002 | 706, 706, 706, 706, 706, 706, 706, 706, 707, 707,
1003 | 707, 707, 707, 707, 707, 707, 707, 707, 707, 707,
1004 | 707, 707, 708, 708, 708, 708, 708, 708, 708, 708,
1005 | 708, 708, 708, 708, 708, 708, 709, 709, 709, 709,
1006 |
1007 | 709, 709, 709, 709, 709, 709, 709, 709, 709, 709,
1008 | 710, 710, 710, 710, 710, 710, 710, 710, 710, 710,
1009 | 710, 710, 710, 710, 711, 711, 711, 711, 711, 711,
1010 | 711, 711, 711, 711, 711, 711, 711, 711, 712, 712,
1011 | 712, 712, 712, 712, 712, 712, 712, 712, 712, 712,
1012 | 712, 712, 713, 589, 587, 586, 585, 713, 565, 564,
1013 | 713, 713, 714, 714, 714, 714, 714, 563, 714, 714,
1014 | 714, 714, 714, 714, 714, 714, 715, 560, 552, 715,
1015 | 715, 715, 715, 548, 715, 715, 715, 715, 715, 715,
1016 | 716, 716, 716, 716, 716, 716, 716, 716, 716, 716,
1017 |
1018 | 716, 716, 716, 716, 717, 543, 541, 717, 717, 717,
1019 | 717, 717, 717, 717, 717, 717, 717, 717, 719, 719,
1020 | 719, 515, 719, 719, 719, 719, 719, 719, 719, 514,
1021 | 719, 719, 720, 720, 720, 508, 720, 720, 720, 720,
1022 | 720, 720, 720, 720, 720, 720, 721, 496, 494, 491,
1023 | 490, 721, 484, 482, 721, 721, 722, 458, 440, 722,
1024 | 722, 722, 722, 722, 722, 722, 722, 722, 722, 722,
1025 | 723, 439, 436, 413, 410, 723, 398, 383, 723, 723,
1026 | 724, 357, 356, 724, 724, 724, 724, 724, 724, 724,
1027 | 724, 724, 724, 724, 725, 355, 340, 339, 725, 725,
1028 |
1029 | 323, 322, 725, 725, 726, 726, 726, 726, 726, 726,
1030 | 726, 726, 726, 726, 321, 726, 726, 726, 727, 727,
1031 | 727, 727, 727, 727, 312, 727, 727, 727, 727, 727,
1032 | 727, 727, 728, 728, 728, 728, 728, 728, 304, 728,
1033 | 728, 728, 728, 728, 728, 728, 730, 730, 730, 730,
1034 | 730, 730, 730, 730, 730, 730, 730, 730, 730, 730,
1035 | 731, 731, 731, 731, 731, 303, 731, 731, 731, 731,
1036 | 731, 731, 731, 731, 732, 300, 732, 732, 732, 732,
1037 | 732, 732, 732, 732, 732, 732, 732, 732, 733, 284,
1038 | 733, 733, 733, 733, 733, 733, 733, 733, 733, 733,
1039 |
1040 | 733, 733, 283, 280, 272, 242, 225, 223, 219, 206,
1041 | 190, 189, 188, 187, 168, 167, 160, 147, 146, 133,
1042 | 132, 115, 114, 73, 67, 56, 53, 51, 50, 49,
1043 | 47, 43, 34, 33, 697, 697, 697, 697, 697, 697,
1044 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
1045 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
1046 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
1047 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
1048 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
1049 | 697, 697, 697, 697, 697, 697, 697, 697, 697, 697,
1050 |
1051 | 697, 697, 697, 697, 697, 697, 697, 697
1052 | } ;
1053 |
1054 | static yy_state_type yy_last_accepting_state;
1055 | static char *yy_last_accepting_cpos;
1056 |
1057 | /* The intent behind this definition is that it'll catch
1058 | * any uses of REJECT which flex missed.
1059 | */
1060 | #define REJECT reject_used_but_not_detected
1061 | #define yymore() yymore_used_but_not_detected
1062 | #define YY_MORE_ADJ 0
1063 | #define YY_RESTORE_YY_MORE_OFFSET
1064 | char *yytext;
1065 | #line 1 "parse.l"
1066 | #define INITIAL 0
1067 | #define START_COMMENT 1
1068 | #define COMMENT 2
1069 | #define SPECIAL_COMMENT 3
1070 |
1071 | #define START_COMMENT_CPP 4
1072 | #define COMMENT_CPP 5
1073 | #define SPECIAL_COMMENT_CPP 6
1074 |
1075 | #define CPP 7
1076 | #define CPP_START 8
1077 |
1078 | #define CPP_INCLUDE 9
1079 | #define CPP_INC_FILE 10
1080 | #define CPP_INC_FLAGS 11
1081 |
1082 | #define CPP_DEFINE 12
1083 | #define CPP_DEFINE_ARGP 13
1084 | #define CPP_DEFINE_BODY 14
1085 | #define CPP_DEFINE_ARGS 15
1086 |
1087 | #define GNU_LABEL 16
1088 | #define GNU_ATTRIBUTE 17
1089 | #define GNU_EXTENSION 18
1090 | #define GNU_TYPEOF 19
1091 |
1092 | #define CHAR_VARYING 20
1093 |
1094 | #line 19 "parse.l"
1095 | /***************************************
1096 | $Header: /home/amb/cxref/RCS/parse.l 1.36 2000/03/13 19:40:31 amb Exp $
1097 |
1098 | C Cross Referencing & Documentation tool. Version 1.5c.
1099 |
1100 | C lexical analyser
1101 | CPP processing, including GNU extensions, using yylval as a string.
1102 | ******************/ /******************
1103 | Written by Andrew M. Bishop
1104 |
1105 | This file Copyright 1995,96,97,98,99,2000 Andrew M. Bishop
1106 | It may be distributed under the GNU Public License, version 2, or
1107 | any higher version. See section COPYING of the GNU Public license
1108 | for conditions under which this file may be redistributed.
1109 | ***************************************/
1110 |
1111 | #include <string.h>
1112 |
1113 | #include "parse-yy.h"
1114 | #include "parse-yacc.h"
1115 | #include "cxref.h"
1116 | #include "memory.h"
1117 |
1118 | /*+ The name of the current file. +*/
1119 | char* parse_file=NULL;
1120 |
1121 | /*+ The current line number in the file. +*/
1122 | int parse_line=0;
1123 |
1124 |
1125 | /*+ If we are in a header file then ignore the comments. +*/
1126 | extern int in_header;
1127 |
1128 | /*+ One of the options controlling how comments are processed, +*/
1129 | extern int option_all_comments, /*+ use all comments not just the specially formattted ones. +*/
1130 | option_block_comments, /*+ remove the leading block comment marker. +*/
1131 | option_no_comments; /*+ ignore all comments. +*/
1132 |
1133 | /*+ Flag that indicates if the comment warnings are to be issued. +*/
1134 | extern int option_warn;
1135 |
1136 |
1137 | /*+ The flags that come out of GCC when a file is included. +*/
1138 | static int inc_file_flags=0;
1139 |
1140 | /*+ The name of a file seen in a CPP_INC_FILE state. +*/
1141 | static char *inc_file=NULL;
1142 |
1143 | /*+ The value of the thing that is defined (but only if it is simple). +*/
1144 | static char* define_value=NULL;
1145 |
1146 | /*+ The lex state at the time that a comment is seen. +*/
1147 | static int comment_init_state=INITIAL;
1148 |
1149 | /*+ To get around the GCC __attribute__ keyword, skip over matched () counted by this. +*/
1150 | static int gnu_att_depth=0;
1151 |
1152 | /*+ To get around the GCC __typeof__ keyword, skip over matched () counted by this. +*/
1153 | static int gnu_typ_depth=0;
1154 |
1155 | /*+ If we see a comment immediately after a ',', ';', '};', '},' or ')' then push it before. +*/
1156 | static int push_past=0;
1157 |
1158 |
1159 | /*++++++++++++++++++++++++++++++++++++++
1160 | Reset the Lexer, ready for the next file.
1161 | ++++++++++++++++++++++++++++++++++++++*/
1162 |
1163 | void ResetLexer(void)
1164 | {
1165 | parse_file=NULL;
1166 | parse_line=0;
1167 | inc_file_flags=0;
1168 | inc_file=NULL;
1169 | define_value=NULL;
1170 | comment_init_state=INITIAL;
1171 | gnu_att_depth=0;
1172 | gnu_typ_depth=0;
1173 | push_past=0;
1174 | BEGIN(INITIAL);
1175 | }
1176 |
1177 | #line 1178 "lex.yy.c"
1178 |
1179 | /* Macros after this point can all be overridden by user definitions in
1180 | * section 1.
1181 | */
1182 |
1183 | #ifndef YY_SKIP_YYWRAP
1184 | #ifdef __cplusplus
1185 | extern "C" int yywrap YY_PROTO(( void ));
1186 | #else
1187 | extern int yywrap YY_PROTO(( void ));
1188 | #endif
1189 | #endif
1190 |
1191 | #ifndef YY_NO_UNPUT
1192 | static void yyunput YY_PROTO(( int c, char *buf_ptr ));
1193 | #endif
1194 |
1195 | #ifndef yytext_ptr
1196 | static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
1197 | #endif
1198 |
1199 | #ifdef YY_NEED_STRLEN
1200 | static int yy_flex_strlen YY_PROTO(( yyconst char * ));
1201 | #endif
1202 |
1203 | #ifndef YY_NO_INPUT
1204 | #ifdef __cplusplus
1205 | static int yyinput YY_PROTO(( void ));
1206 | #else
1207 | static int input YY_PROTO(( void ));
1208 | #endif
1209 | #endif
1210 |
1211 | #if YY_STACK_USED
1212 | static int yy_start_stack_ptr = 0;
1213 | static int yy_start_stack_depth = 0;
1214 | static int *yy_start_stack = 0;
1215 | #ifndef YY_NO_PUSH_STATE
1216 | static void yy_push_state YY_PROTO(( int new_state ));
1217 | #endif
1218 | #ifndef YY_NO_POP_STATE
1219 | static void yy_pop_state YY_PROTO(( void ));
1220 | #endif
1221 | #ifndef YY_NO_TOP_STATE
1222 | static int yy_top_state YY_PROTO(( void ));
1223 | #endif
1224 |
1225 | #else
1226 | #define YY_NO_PUSH_STATE 1
1227 | #define YY_NO_POP_STATE 1
1228 | #define YY_NO_TOP_STATE 1
1229 | #endif
1230 |
1231 | #ifdef YY_MALLOC_DECL
1232 | YY_MALLOC_DECL
1233 | #else
1234 | #if __STDC__
1235 | #ifndef __cplusplus
1236 | #include <stdlib.h>
1237 | #endif
1238 | #else
1239 | /* Just try to get by without declaring the routines. This will fail
1240 | * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1241 | * or sizeof(void*) != sizeof(int).
1242 | */
1243 | #endif
1244 | #endif
1245 |
1246 | /* Amount of stuff to slurp up with each read. */
1247 | #ifndef YY_READ_BUF_SIZE
1248 | #define YY_READ_BUF_SIZE 8192
1249 | #endif
1250 |
1251 | /* Copy whatever the last rule matched to the standard output. */
1252 |
1253 | #ifndef ECHO
1254 | /* This used to be an fputs(), but since the string might contain NUL's,
1255 | * we now use fwrite().
1256 | */
1257 | #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1258 | #endif
1259 |
1260 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1261 | * is returned in "result".
1262 | */
1263 | #ifndef YY_INPUT
1264 | #define YY_INPUT(buf,result,max_size) \
1265 | if ( yy_current_buffer->yy_is_interactive ) \
1266 | { \
1267 | int c = '*', n; \
1268 | for ( n = 0; n < max_size && \
1269 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1270 | buf[n] = (char) c; \
1271 | if ( c == '\n' ) \
1272 | buf[n++] = (char) c; \
1273 | if ( c == EOF && ferror( yyin ) ) \
1274 | YY_FATAL_ERROR( "input in flex scanner failed" ); \
1275 | result = n; \
1276 | } \
1277 | else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1278 | && ferror( yyin ) ) \
1279 | YY_FATAL_ERROR( "input in flex scanner failed" );
1280 | #endif
1281 |
1282 | /* No semi-colon after return; correct usage is to write "yyterminate();" -
1283 | * we don't want an extra ';' after the "return" because that will cause
1284 | * some compilers to complain about unreachable statements.
1285 | */
1286 | #ifndef yyterminate
1287 | #define yyterminate() return YY_NULL
1288 | #endif
1289 |
1290 | /* Number of entries by which start-condition stack grows. */
1291 | #ifndef YY_START_STACK_INCR
1292 | #define YY_START_STACK_INCR 25
1293 | #endif
1294 |
1295 | /* Report a fatal error. */
1296 | #ifndef YY_FATAL_ERROR
1297 | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1298 | #endif
1299 |
1300 | /* Default declaration of generated scanner - a define so the user can
1301 | * easily add parameters.
1302 | */
1303 | #ifndef YY_DECL
1304 | #define YY_DECL int yylex YY_PROTO(( void ))
1305 | #endif
1306 |
1307 | /* Code executed at the beginning of each rule, after yytext and yyleng
1308 | * have been set up.
1309 | */
1310 | #ifndef YY_USER_ACTION
1311 | #define YY_USER_ACTION
1312 | #endif
1313 |
1314 | /* Code executed at the end of each rule. */
1315 | #ifndef YY_BREAK
1316 | #define YY_BREAK break;
1317 | #endif
1318 |
1319 | #define YY_RULE_SETUP \
1320 | YY_USER_ACTION
1321 |
1322 | YY_DECL
1323 | {
1324 | register yy_state_type yy_current_state;
1325 | register char *yy_cp, *yy_bp;
1326 | register int yy_act;
1327 |
1328 | #line 103 "parse.l"
1329 |
1330 |
1331 | /* Comments, could be embedded in a preprocessor directive. */
1332 |
1333 | #line 1334 "lex.yy.c"
1334 |
1335 | if ( yy_init )
1336 | {
1337 | yy_init = 0;
1338 |
1339 | #ifdef YY_USER_INIT
1340 | YY_USER_INIT;
1341 | #endif
1342 |
1343 | if ( ! yy_start )
1344 | yy_start = 1; /* first start state */
1345 |
1346 | if ( ! yyin )
1347 | yyin = stdin;
1348 |
1349 | if ( ! yyout )
1350 | yyout = stdout;
1351 |
1352 | if ( ! yy_current_buffer )
1353 | yy_current_buffer =
1354 | yy_create_buffer( yyin, YY_BUF_SIZE );
1355 |
1356 | yy_load_buffer_state();
1357 | }
1358 |
1359 | while ( 1 ) /* loops until end-of-file is reached */
1360 | {
1361 | yy_cp = yy_c_buf_p;
1362 |
1363 | /* Support of yytext. */
1364 | *yy_cp = yy_hold_char;
1365 |
1366 | /* yy_bp points to the position in yy_ch_buf of the start of
1367 | * the current run.
1368 | */
1369 | yy_bp = yy_cp;
1370 |
1371 | yy_current_state = yy_start;
1372 | yy_match:
1373 | do
1374 | {
1375 | register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1376 | if ( yy_accept[yy_current_state] )
1377 | {
1378 | yy_last_accepting_state = yy_current_state;
1379 | yy_last_accepting_cpos = yy_cp;
1380 | }
1381 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1382 | {
1383 | yy_current_state = (int) yy_def[yy_current_state];
1384 | if ( yy_current_state >= 698 )
1385 | yy_c = yy_meta[(unsigned int) yy_c];
1386 | }
1387 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1388 | ++yy_cp;
1389 | }
1390 | while ( yy_base[yy_current_state] != 2035 );
1391 |
1392 | yy_find_action:
1393 | yy_act = yy_accept[yy_current_state];
1394 | if ( yy_act == 0 )
1395 | { /* have to back up */
1396 | yy_cp = yy_last_accepting_cpos;
1397 | yy_current_state = yy_last_accepting_state;
1398 | yy_act = yy_accept[yy_current_state];
1399 | }
1400 |
1401 | YY_DO_BEFORE_ACTION;
1402 |
1403 |
1404 | do_action: /* This label is used only to access EOF actions. */
1405 |
1406 |
1407 | switch ( yy_act )
1408 | { /* beginning of action switch */
1409 | case 0: /* must back up */
1410 | /* undo the effects of YY_DO_BEFORE_ACTION */
1411 | *yy_cp = yy_hold_char;
1412 | yy_cp = yy_last_accepting_cpos;
1413 | yy_current_state = yy_last_accepting_state;
1414 | goto yy_find_action;
1415 |
1416 | case 1:
1417 | YY_RULE_SETUP
1418 | #line 107 "parse.l"
1419 | { comment_init_state = INITIAL ; BEGIN(START_COMMENT); }
1420 | YY_BREAK
1421 | case 2:
1422 | YY_RULE_SETUP
1423 | #line 108 "parse.l"
1424 | { comment_init_state = CPP_START ; BEGIN(START_COMMENT); }
1425 | YY_BREAK
1426 | case 3:
1427 | YY_RULE_SETUP
1428 | #line 109 "parse.l"
1429 | { comment_init_state = CPP ; BEGIN(START_COMMENT); }
1430 | YY_BREAK
1431 | case 4:
1432 | YY_RULE_SETUP
1433 | #line 110 "parse.l"
1434 | { comment_init_state = CPP_DEFINE ; BEGIN(START_COMMENT); }
1435 | YY_BREAK
1436 | case 5:
1437 | YY_RULE_SETUP
1438 | #line 111 "parse.l"
1439 | { comment_init_state = CPP_INCLUDE ; BEGIN(START_COMMENT); }
1440 | YY_BREAK
1441 | case 6:
1442 | YY_RULE_SETUP
1443 | #line 112 "parse.l"
1444 | { comment_init_state = CPP_DEFINE_ARGP; BEGIN(START_COMMENT); }
1445 | YY_BREAK
1446 | case 7:
1447 | YY_RULE_SETUP
1448 | #line 113 "parse.l"
1449 | { comment_init_state = CPP_DEFINE_ARGS; BEGIN(START_COMMENT); }
1450 | YY_BREAK
1451 | case 8:
1452 | YY_RULE_SETUP
1453 | #line 114 "parse.l"
1454 | { comment_init_state = CPP_DEFINE_BODY; BEGIN(START_COMMENT); }
1455 | YY_BREAK
1456 | case 9:
1457 | YY_RULE_SETUP
1458 | #line 115 "parse.l"
1459 | { comment_init_state = CPP_INC_FILE ; BEGIN(START_COMMENT); }
1460 | YY_BREAK
1461 | case 10:
1462 | YY_RULE_SETUP
1463 | #line 116 "parse.l"
1464 | { comment_init_state = CPP_INC_FLAGS ; BEGIN(START_COMMENT); }
1465 | YY_BREAK
1466 | case 11:
1467 | YY_RULE_SETUP
1468 | #line 118 "parse.l"
1469 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1470 | YY_BREAK
1471 | case 12:
1472 | YY_RULE_SETUP
1473 | #line 119 "parse.l"
1474 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1475 | YY_BREAK
1476 | case 13:
1477 | YY_RULE_SETUP
1478 | #line 120 "parse.l"
1479 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1480 | YY_BREAK
1481 | case 14:
1482 | YY_RULE_SETUP
1483 | #line 121 "parse.l"
1484 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1485 | YY_BREAK
1486 | case 15:
1487 | YY_RULE_SETUP
1488 | #line 122 "parse.l"
1489 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1490 | YY_BREAK
1491 | case 16:
1492 | YY_RULE_SETUP
1493 | #line 123 "parse.l"
1494 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1495 | YY_BREAK
1496 | case 17:
1497 | YY_RULE_SETUP
1498 | #line 124 "parse.l"
1499 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1500 | YY_BREAK
1501 | case 18:
1502 | YY_RULE_SETUP
1503 | #line 125 "parse.l"
1504 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1505 | YY_BREAK
1506 | case 19:
1507 | YY_RULE_SETUP
1508 | #line 126 "parse.l"
1509 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1510 | YY_BREAK
1511 | case 20:
1512 | YY_RULE_SETUP
1513 | #line 127 "parse.l"
1514 | { comment_init_state = INITIAL; BEGIN(START_COMMENT_CPP); }
1515 | YY_BREAK
1516 | case 21:
1517 | YY_RULE_SETUP
1518 | #line 129 "parse.l"
1519 | { BEGIN(SPECIAL_COMMENT); }
1520 | YY_BREAK
1521 | case 22:
1522 | YY_RULE_SETUP
1523 | #line 130 "parse.l"
1524 | { BEGIN(SPECIAL_COMMENT); }
1525 | YY_BREAK
1526 | case 23:
1527 | YY_RULE_SETUP
1528 | #line 131 "parse.l"
1529 | { BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} }
1530 | YY_BREAK
1531 | case 24:
1532 | YY_RULE_SETUP
1533 | #line 132 "parse.l"
1534 | { if(option_all_comments) SeenComment(yytext,0); parse_line++;
1535 | if(option_all_comments) BEGIN(SPECIAL_COMMENT); else BEGIN(COMMENT); }
1536 | YY_BREAK
1537 | case 25:
1538 | YY_RULE_SETUP
1539 | #line 134 "parse.l"
1540 | { if(option_all_comments) SeenComment(yytext,0);
1541 | if(option_all_comments) BEGIN(SPECIAL_COMMENT); else BEGIN(COMMENT); }
1542 | YY_BREAK
1543 | case 26:
1544 | YY_RULE_SETUP
1545 | #line 137 "parse.l"
1546 | { BEGIN(SPECIAL_COMMENT_CPP); }
1547 | YY_BREAK
1548 | case 27:
1549 | YY_RULE_SETUP
1550 | #line 138 "parse.l"
1551 | { BEGIN(SPECIAL_COMMENT_CPP); }
1552 | YY_BREAK
1553 | case 28:
1554 | YY_RULE_SETUP
1555 | #line 139 "parse.l"
1556 | { parse_line++; BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} }
1557 | YY_BREAK
1558 | case 29:
1559 | YY_RULE_SETUP
1560 | #line 140 "parse.l"
1561 | { if(option_all_comments) BEGIN(SPECIAL_COMMENT_CPP); else BEGIN(COMMENT_CPP); }
1562 | YY_BREAK
1563 | case 30:
1564 | YY_RULE_SETUP
1565 | #line 142 "parse.l"
1566 | { parse_line++; }
1567 | YY_BREAK
1568 | case 31:
1569 | YY_RULE_SETUP
1570 | #line 143 "parse.l"
1571 | { }
1572 | YY_BREAK
1573 | case 32:
1574 | *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1575 | yy_c_buf_p = yy_cp -= 2;
1576 | YY_DO_BEFORE_ACTION; /* set up yytext again */
1577 | YY_RULE_SETUP
1578 | #line 144 "parse.l"
1579 | { if(option_warn&WARN_COMMENT) fprintf(stderr,"%s:%d: Warning unbalanced cxref comment; starts simple, ends special.\n",parse_file,parse_line); }
1580 | YY_BREAK
1581 | case 33:
1582 | YY_RULE_SETUP
1583 | #line 145 "parse.l"
1584 | { BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} }
1585 | YY_BREAK
1586 | case 34:
1587 | YY_RULE_SETUP
1588 | #line 147 "parse.l"
1589 | { if(comment_init_state==CPP_INCLUDE || comment_init_state==CPP_DEFINE) comment_init_state=INITIAL;
1590 | parse_line++; BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} }
1591 | YY_BREAK
1592 | case 35:
1593 | YY_RULE_SETUP
1594 | #line 150 "parse.l"
1595 | { if(!option_no_comments) SeenComment(yytext,0); parse_line++; }
1596 | YY_BREAK
1597 | /* The following three lines are optimised for run-time speed.
1598 | They replace the following pattern which has variable trailing context:
1599 | <SPECIAL_COMMENT>{N}{W}*[+*|:]/({W}|{N})
1600 | */
1601 | case 36:
1602 | *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1603 | yy_c_buf_p = yy_cp -= 1;
1604 | YY_DO_BEFORE_ACTION; /* set up yytext again */
1605 | YY_RULE_SETUP
1606 | #line 155 "parse.l"
1607 | { parse_line++;
1608 | if(option_block_comments) yytext[0]='\n',yytext[1]=0;
1609 | if(!option_no_comments) SeenComment(yytext,0); }
1610 | YY_BREAK
1611 | case 37:
1612 | *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1613 | yy_c_buf_p = yy_cp -= 1;
1614 | YY_DO_BEFORE_ACTION; /* set up yytext again */
1615 | YY_RULE_SETUP
1616 | #line 158 "parse.l"
1617 | { parse_line++;
1618 | if(option_block_comments) yytext[0]='\n',yytext[1]=0;
1619 | if(!option_no_comments) SeenComment(yytext,0); }
1620 | YY_BREAK
1621 | case 38:
1622 | *yy_cp = yy_hold_char; /* undo effects of setting up yytext */
1623 | yy_c_buf_p = yy_cp -= 2;
1624 | YY_DO_BEFORE_ACTION; /* set up yytext again */
1625 | YY_RULE_SETUP
1626 | #line 161 "parse.l"
1627 | { parse_line++;
1628 | if(option_block_comments) yytext[0]='\n',yytext[1]=0;
1629 | if(!option_no_comments) SeenComment(yytext,0); }
1630 | YY_BREAK
1631 | case 39:
1632 | YY_RULE_SETUP
1633 | #line 164 "parse.l"
1634 | { if(!option_no_comments) SeenComment(yytext,0); }
1635 | YY_BREAK
1636 | case 40:
1637 | YY_RULE_SETUP
1638 | #line 165 "parse.l"
1639 | { if(!option_no_comments) SeenComment(yytext,0); }
1640 | YY_BREAK
1641 | case 41:
1642 | YY_RULE_SETUP
1643 | #line 167 "parse.l"
1644 | { if(!option_no_comments) SeenComment(NULL,1);
1645 | BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} }
1646 | YY_BREAK
1647 | case 42:
1648 | YY_RULE_SETUP
1649 | #line 169 "parse.l"
1650 | { if(!option_no_comments) SeenComment(NULL,2);
1651 | if(!in_header && comment_init_state==CPP_DEFINE_ARGS) SeenDefineFuncArgComment();
1652 | if(!in_header && comment_init_state==CPP_DEFINE_BODY) SeenDefineComment();
1653 | if(!in_header && comment_init_state==CPP_INCLUDE) SeenIncludeComment();
1654 | BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} }
1655 | YY_BREAK
1656 | case 43:
1657 | YY_RULE_SETUP
1658 | #line 174 "parse.l"
1659 | { if(!option_all_comments && option_warn&WARN_COMMENT)
1660 | fprintf(stderr,"%s:%d: Warning unbalanced cxref comment; starts special, ends simple.\n",parse_file,parse_line);
1661 | if(option_all_comments) SeenComment(NULL,3); else if(!option_no_comments) SeenComment(NULL,2);
1662 | if(!in_header && comment_init_state==CPP_DEFINE_ARGS) SeenDefineFuncArgComment();
1663 | if(!in_header && comment_init_state==CPP_DEFINE_BODY) SeenDefineComment();
1664 | if(!in_header && comment_init_state==CPP_INCLUDE) SeenIncludeComment();
1665 | BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} }
1666 | YY_BREAK
1667 | case 44:
1668 | YY_RULE_SETUP
1669 | #line 182 "parse.l"
1670 | { if(!option_no_comments) SeenComment(yytext,0); }
1671 | YY_BREAK
1672 | case 45:
1673 | YY_RULE_SETUP
1674 | #line 183 "parse.l"
1675 | { if(!option_no_comments) SeenComment(yytext,0); }
1676 | YY_BREAK
1677 | case 46:
1678 | YY_RULE_SETUP
1679 | #line 184 "parse.l"
1680 | { if(!option_no_comments) SeenComment(NULL,2);
1681 | if(!in_header && comment_init_state==CPP_DEFINE_ARGS) SeenDefineFuncArgComment();
1682 | if(!in_header && comment_init_state==CPP_DEFINE_BODY) SeenDefineComment();
1683 | if(!in_header && comment_init_state==CPP_INCLUDE) SeenIncludeComment();
1684 | parse_line++; BEGIN(comment_init_state); while(push_past) {push_past--;unput(yylval[push_past]);} }
1685 | YY_BREAK
1686 | /* Preprocessor directives, only valid at the top level. */
1687 | case 47:
1688 | YY_RULE_SETUP
1689 | #line 192 "parse.l"
1690 | { BEGIN(CPP_START); }
1691 | YY_BREAK
1692 | case 48:
1693 | YY_RULE_SETUP
1694 | #line 194 "parse.l"
1695 | { parse_line=atoi(yytext); BEGIN(CPP_INC_FILE);}
1696 | YY_BREAK
1697 | case 49:
1698 | YY_RULE_SETUP
1699 | #line 195 "parse.l"
1700 | { BEGIN(CPP_DEFINE); }
1701 | YY_BREAK
1702 | case 50:
1703 | YY_RULE_SETUP
1704 | #line 196 "parse.l"
1705 | { BEGIN(CPP_INCLUDE); }
1706 | YY_BREAK
1707 | case 51:
1708 | YY_RULE_SETUP
1709 | #line 197 "parse.l"
1710 | { BEGIN(CPP); }
1711 | YY_BREAK
1712 | case 52:
1713 | YY_RULE_SETUP
1714 | #line 199 "parse.l"
1715 | { }
1716 | YY_BREAK
1717 | case 53:
1718 | YY_RULE_SETUP
1719 | #line 200 "parse.l"
1720 | { parse_line++; }
1721 | YY_BREAK
1722 | case 54:
1723 | YY_RULE_SETUP
1724 | #line 201 "parse.l"
1725 | { parse_line++; BEGIN(INITIAL); }
1726 | YY_BREAK
1727 | case 55:
1728 | YY_RULE_SETUP
1729 | #line 203 "parse.l"
1730 | { if(!in_header) SeenDefine(yytext); BEGIN(CPP_DEFINE_ARGP); }
1731 | YY_BREAK
1732 | case 56:
1733 | YY_RULE_SETUP
1734 | #line 204 "parse.l"
1735 | { parse_line++; }
1736 | YY_BREAK
1737 | case 57:
1738 | YY_RULE_SETUP
1739 | #line 205 "parse.l"
1740 | { }
1741 | YY_BREAK
1742 | case 58:
1743 | YY_RULE_SETUP
1744 | #line 207 "parse.l"
1745 | { BEGIN(CPP_DEFINE_ARGS); }
1746 | YY_BREAK
1747 | case 59:
1748 | YY_RULE_SETUP
1749 | #line 208 "parse.l"
1750 | { parse_line++; BEGIN(INITIAL); }
1751 | YY_BREAK
1752 | case 60:
1753 | YY_RULE_SETUP
1754 | #line 209 "parse.l"
1755 | { define_value=NULL; BEGIN(CPP_DEFINE_BODY); }
1756 | YY_BREAK
1757 | case 61:
1758 | YY_RULE_SETUP
1759 | #line 210 "parse.l"
1760 | { parse_line++; }
1761 | YY_BREAK
1762 | case 62:
1763 | YY_RULE_SETUP
1764 | #line 212 "parse.l"
1765 | { if(!in_header) SeenDefineFunctionArg(yytext); }
1766 | YY_BREAK
1767 | case 63:
1768 | YY_RULE_SETUP
1769 | #line 213 "parse.l"
1770 | { if(!in_header) SeenDefineFunctionArg(yytext); }
1771 | YY_BREAK
1772 | case 64:
1773 | YY_RULE_SETUP
1774 | #line 214 "parse.l"
1775 | { }
1776 | YY_BREAK
1777 | case 65:
1778 | YY_RULE_SETUP
1779 | #line 215 "parse.l"
1780 | { }
1781 | YY_BREAK
1782 | case 66:
1783 | YY_RULE_SETUP
1784 | #line 216 "parse.l"
1785 | { parse_line++; }
1786 | YY_BREAK
1787 | case 67:
1788 | YY_RULE_SETUP
1789 | #line 217 "parse.l"
1790 | { define_value=(char*)1; BEGIN(CPP_DEFINE_BODY); }
1791 | YY_BREAK
1792 | case 68:
1793 | YY_RULE_SETUP
1794 | #line 219 "parse.l"
1795 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} }
1796 | YY_BREAK
1797 | case 69:
1798 | YY_RULE_SETUP
1799 | #line 220 "parse.l"
1800 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} }
1801 | YY_BREAK
1802 | case 70:
1803 | YY_RULE_SETUP
1804 | #line 221 "parse.l"
1805 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} }
1806 | YY_BREAK
1807 | case 71:
1808 | YY_RULE_SETUP
1809 | #line 222 "parse.l"
1810 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} }
1811 | YY_BREAK
1812 | case 72:
1813 | YY_RULE_SETUP
1814 | #line 223 "parse.l"
1815 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} }
1816 | YY_BREAK
1817 | case 73:
1818 | YY_RULE_SETUP
1819 | #line 224 "parse.l"
1820 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} }
1821 | YY_BREAK
1822 | case 74:
1823 | YY_RULE_SETUP
1824 | #line 225 "parse.l"
1825 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} }
1826 | YY_BREAK
1827 | case 75:
1828 | YY_RULE_SETUP
1829 | #line 226 "parse.l"
1830 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} }
1831 | YY_BREAK
1832 | case 76:
1833 | YY_RULE_SETUP
1834 | #line 227 "parse.l"
1835 | { if(!in_header) {if(!define_value) define_value=CopyString(yytext); else define_value=(char*)1;} }
1836 | YY_BREAK
1837 | case 77:
1838 | YY_RULE_SETUP
1839 | #line 228 "parse.l"
1840 | { }
1841 | YY_BREAK
1842 | case 78:
1843 | YY_RULE_SETUP
1844 | #line 229 "parse.l"
1845 | { parse_line++; }
1846 | YY_BREAK
1847 | case 79:
1848 | YY_RULE_SETUP
1849 | #line 230 "parse.l"
1850 | { parse_line++; if(define_value>(char*)1) SeenDefineValue(define_value); BEGIN(INITIAL); }
1851 | YY_BREAK
1852 | case 80:
1853 | YY_RULE_SETUP
1854 | #line 232 "parse.l"
1855 | { SeenInclude(yytext); }
1856 | YY_BREAK
1857 | case 81:
1858 | YY_RULE_SETUP
1859 | #line 233 "parse.l"
1860 | { }
1861 | YY_BREAK
1862 | case 82:
1863 | YY_RULE_SETUP
1864 | #line 234 "parse.l"
1865 | { parse_line++; }
1866 | YY_BREAK
1867 | case 83:
1868 | YY_RULE_SETUP
1869 | #line 235 "parse.l"
1870 | { parse_line++; BEGIN(INITIAL); }
1871 | YY_BREAK
1872 | case 84:
1873 | YY_RULE_SETUP
1874 | #line 237 "parse.l"
1875 | { inc_file=CopyString(yytext+1); inc_file[strlen(inc_file)-1]=0;
1876 | if(!parse_file) parse_file=inc_file;
1877 | GetCurrentComment();
1878 | inc_file_flags=0; BEGIN(CPP_INC_FLAGS); }
1879 | YY_BREAK
1880 | case 85:
1881 | YY_RULE_SETUP
1882 | #line 241 "parse.l"
1883 | { inc_file_flags+=1<<atoi(yytext); }
1884 | YY_BREAK
1885 | case 86:
1886 | YY_RULE_SETUP
1887 | #line 242 "parse.l"
1888 | { if(inc_file_flags&6) parse_file=SeenFileChange(inc_file,inc_file_flags);
1889 | BEGIN(INITIAL); }
1890 | YY_BREAK
1891 | /* GNU C strangeness. */
1892 | case 87:
1893 | YY_RULE_SETUP
1894 | #line 247 "parse.l"
1895 | { yylval="alignof" ; return(SIZEOF); }
1896 | YY_BREAK
1897 | case 88:
1898 | YY_RULE_SETUP
1899 | #line 249 "parse.l"
1900 | { yylval="signed" ; return(SIGNED); }
1901 | YY_BREAK
1902 | case 89:
1903 | YY_RULE_SETUP
1904 | #line 250 "parse.l"
1905 | { yylval="unsigned" ; return(UNSIGNED); }
1906 | YY_BREAK
1907 | case 90:
1908 | YY_RULE_SETUP
1909 | #line 252 "parse.l"
1910 | { yylval="volatile" ; return(VOLATILE); }
1911 | YY_BREAK
1912 | case 91:
1913 | YY_RULE_SETUP
1914 | #line 253 "parse.l"
1915 | { yylval="const" ; return(CONST); }
1916 | YY_BREAK
1917 | case 92:
1918 | YY_RULE_SETUP
1919 | #line 255 "parse.l"
1920 | { yylval="inline" ; return(INLINE); }
1921 | YY_BREAK
1922 | case 93:
1923 | YY_RULE_SETUP
1924 | #line 257 "parse.l"
1925 | { yylval="asm" ; return(ASM); }
1926 | YY_BREAK
1927 | case 94:
1928 | YY_RULE_SETUP
1929 | #line 259 "parse.l"
1930 | { BEGIN(GNU_LABEL); }
1931 | YY_BREAK
1932 | case 95:
1933 | YY_RULE_SETUP
1934 | #line 260 "parse.l"
1935 | { }
1936 | YY_BREAK
1937 | case 96:
1938 | YY_RULE_SETUP
1939 | #line 261 "parse.l"
1940 | { BEGIN(INITIAL); }
1941 | YY_BREAK
1942 | case 97:
1943 | YY_RULE_SETUP
1944 | #line 263 "parse.l"
1945 | { gnu_att_depth=0; BEGIN(GNU_ATTRIBUTE); }
1946 | YY_BREAK
1947 | case 98:
1948 | YY_RULE_SETUP
1949 | #line 264 "parse.l"
1950 | { gnu_att_depth++; }
1951 | YY_BREAK
1952 | case 99:
1953 | YY_RULE_SETUP
1954 | #line 265 "parse.l"
1955 | { }
1956 | YY_BREAK
1957 | case 100:
1958 | YY_RULE_SETUP
1959 | #line 266 "parse.l"
1960 | { if(--gnu_att_depth==0) BEGIN(INITIAL); }
1961 | YY_BREAK
1962 | case 101:
1963 | YY_RULE_SETUP
1964 | #line 268 "parse.l"
1965 | { gnu_typ_depth=0; BEGIN(GNU_TYPEOF); }
1966 | YY_BREAK
1967 | case 102:
1968 | YY_RULE_SETUP
1969 | #line 269 "parse.l"
1970 | { gnu_typ_depth++; }
1971 | YY_BREAK
1972 | case 103:
1973 | YY_RULE_SETUP
1974 | #line 270 "parse.l"
1975 | { }
1976 | YY_BREAK
1977 | case 104:
1978 | YY_RULE_SETUP
1979 | #line 271 "parse.l"
1980 | { if(--gnu_typ_depth==0) {BEGIN(INITIAL); yylval="typeof"; return(TYPE_NAME);} }
1981 | YY_BREAK
1982 | case 105:
1983 | YY_RULE_SETUP
1984 | #line 273 "parse.l"
1985 | { }
1986 | YY_BREAK
1987 | case 106:
1988 | YY_RULE_SETUP
1989 | #line 275 "parse.l"
1990 | { }
1991 | YY_BREAK
1992 | case 107:
1993 | YY_RULE_SETUP
1994 | #line 277 "parse.l"
1995 | { }
1996 | YY_BREAK
1997 | case 108:
1998 | YY_RULE_SETUP
1999 | #line 279 "parse.l"
2000 | { yylval="__FUNCTION__"; return(STRING_LITERAL); }
2001 | YY_BREAK
2002 | case 109:
2003 | YY_RULE_SETUP
2004 | #line 281 "parse.l"
2005 | { yylval="__builtin_va_list" ; return(TYPE_NAME); }
2006 | YY_BREAK
2007 | /* VOS char_varying type */
2008 | case 110:
2009 | YY_RULE_SETUP
2010 | #line 285 "parse.l"
2011 | { yylval=CopyString(yytext); BEGIN(CHAR_VARYING); return(CHAR); }
2012 | YY_BREAK
2013 | case 111:
2014 | YY_RULE_SETUP
2015 | #line 286 "parse.l"
2016 | { unput(*yytext); yylval=""; BEGIN(INITIAL); return('*'); }
2017 | YY_BREAK
2018 | /* C language keywords. */
2019 | case 112:
2020 | YY_RULE_SETUP
2021 | #line 290 "parse.l"
2022 | { yylval="auto" ; return(AUTO); }
2023 | YY_BREAK
2024 | case 113:
2025 | YY_RULE_SETUP
2026 | #line 291 "parse.l"
2027 | { yylval="break" ; return(BREAK); }
2028 | YY_BREAK
2029 | case 114:
2030 | YY_RULE_SETUP
2031 | #line 292 "parse.l"
2032 | { yylval="case" ; return(CASE); }
2033 | YY_BREAK
2034 | case 115:
2035 | YY_RULE_SETUP
2036 | #line 293 "parse.l"
2037 | { yylval="char" ; return(CHAR); }
2038 | YY_BREAK
2039 | case 116:
2040 | YY_RULE_SETUP
2041 | #line 294 "parse.l"
2042 | { yylval="const" ; return(CONST); }
2043 | YY_BREAK
2044 | case 117:
2045 | YY_RULE_SETUP
2046 | #line 295 "parse.l"
2047 | { yylval="continue"; return(CONTINUE); }
2048 | YY_BREAK
2049 | case 118:
2050 | YY_RULE_SETUP
2051 | #line 296 "parse.l"
2052 | { yylval="default" ; return(DEFAULT); }
2053 | YY_BREAK
2054 | case 119:
2055 | YY_RULE_SETUP
2056 | #line 297 "parse.l"
2057 | { yylval="do" ; return(DO); }
2058 | YY_BREAK
2059 | case 120:
2060 | YY_RULE_SETUP
2061 | #line 298 "parse.l"
2062 | { yylval="double" ; return(DOUBLE); }
2063 | YY_BREAK
2064 | case 121:
2065 | YY_RULE_SETUP
2066 | #line 299 "parse.l"
2067 | { yylval="else" ; return(ELSE); }
2068 | YY_BREAK
2069 | case 122:
2070 | YY_RULE_SETUP
2071 | #line 300 "parse.l"
2072 | { yylval="enum" ; return(ENUM); }
2073 | YY_BREAK
2074 | case 123:
2075 | YY_RULE_SETUP
2076 | #line 301 "parse.l"
2077 | { yylval="extern" ; return(EXTERN); }
2078 | YY_BREAK
2079 | case 124:
2080 | YY_RULE_SETUP
2081 | #line 302 "parse.l"
2082 | { yylval="float" ; return(FLOAT); }
2083 | YY_BREAK
2084 | case 125:
2085 | YY_RULE_SETUP
2086 | #line 303 "parse.l"
2087 | { yylval="for" ; return(FOR); }
2088 | YY_BREAK
2089 | case 126:
2090 | YY_RULE_SETUP
2091 | #line 304 "parse.l"
2092 | { yylval="goto" ; return(GOTO); }
2093 | YY_BREAK
2094 | case 127:
2095 | YY_RULE_SETUP
2096 | #line 305 "parse.l"
2097 | { yylval="if" ; return(IF); }
2098 | YY_BREAK
2099 | case 128:
2100 | YY_RULE_SETUP
2101 | #line 306 "parse.l"
2102 | { yylval="int" ; return(INT); }
2103 | YY_BREAK
2104 | case 129:
2105 | YY_RULE_SETUP
2106 | #line 307 "parse.l"
2107 | { yylval="inline" ; return(INLINE); }
2108 | YY_BREAK
2109 | case 130:
2110 | YY_RULE_SETUP
2111 | #line 308 "parse.l"
2112 | { yylval="long" ; return(LONG); }
2113 | YY_BREAK
2114 | case 131:
2115 | YY_RULE_SETUP
2116 | #line 309 "parse.l"
2117 | { yylval="register"; return(REGISTER); }
2118 | YY_BREAK
2119 | case 132:
2120 | YY_RULE_SETUP
2121 | #line 310 "parse.l"
2122 | { yylval="return" ; return(RETURN); }
2123 | YY_BREAK
2124 | case 133:
2125 | YY_RULE_SETUP
2126 | #line 311 "parse.l"
2127 | { yylval="short" ; return(SHORT); }
2128 | YY_BREAK
2129 | case 134:
2130 | YY_RULE_SETUP
2131 | #line 312 "parse.l"
2132 | { yylval="signed" ; return(SIGNED); }
2133 | YY_BREAK
2134 | case 135:
2135 | YY_RULE_SETUP
2136 | #line 313 "parse.l"
2137 | { yylval="sizeof" ; return(SIZEOF); }
2138 | YY_BREAK
2139 | case 136:
2140 | YY_RULE_SETUP
2141 | #line 314 "parse.l"
2142 | { yylval="static" ; return(STATIC); }
2143 | YY_BREAK
2144 | case 137:
2145 | YY_RULE_SETUP
2146 | #line 315 "parse.l"
2147 | { yylval="struct" ; return(STRUCT); }
2148 | YY_BREAK
2149 | case 138:
2150 | YY_RULE_SETUP
2151 | #line 316 "parse.l"
2152 | { yylval="switch" ; return(SWITCH); }
2153 | YY_BREAK
2154 | case 139:
2155 | YY_RULE_SETUP
2156 | #line 317 "parse.l"
2157 | { yylval="typedef" ; return(TYPEDEF); }
2158 | YY_BREAK
2159 | case 140:
2160 | YY_RULE_SETUP
2161 | #line 318 "parse.l"
2162 | { yylval="union" ; return(UNION); }
2163 | YY_BREAK
2164 | case 141:
2165 | YY_RULE_SETUP
2166 | #line 319 "parse.l"
2167 | { yylval="unsigned"; return(UNSIGNED); }
2168 | YY_BREAK
2169 | case 142:
2170 | YY_RULE_SETUP
2171 | #line 320 "parse.l"
2172 | { yylval="void" ; return(VOID); }
2173 | YY_BREAK
2174 | case 143:
2175 | YY_RULE_SETUP
2176 | #line 321 "parse.l"
2177 | { yylval="volatile"; return(VOLATILE); }
2178 | YY_BREAK
2179 | case 144:
2180 | YY_RULE_SETUP
2181 | #line 322 "parse.l"
2182 | { yylval="while" ; return(WHILE); }
2183 | YY_BREAK
2184 | /* C language operators. */
2185 | case 145:
2186 | YY_RULE_SETUP
2187 | #line 326 "parse.l"
2188 | { yylval="..."; return(ELLIPSES); }
2189 | YY_BREAK
2190 | case 146:
2191 | YY_RULE_SETUP
2192 | #line 327 "parse.l"
2193 | { yylval=">>="; return(RIGHT_ASSIGN); }
2194 | YY_BREAK
2195 | case 147:
2196 | YY_RULE_SETUP
2197 | #line 328 "parse.l"
2198 | { yylval="<<="; return(LEFT_ASSIGN); }
2199 | YY_BREAK
2200 | case 148:
2201 | YY_RULE_SETUP
2202 | #line 329 "parse.l"
2203 | { yylval="+="; return(ADD_ASSIGN); }
2204 | YY_BREAK
2205 | case 149:
2206 | YY_RULE_SETUP
2207 | #line 330 "parse.l"
2208 | { yylval="-="; return(SUB_ASSIGN); }
2209 | YY_BREAK
2210 | case 150:
2211 | YY_RULE_SETUP
2212 | #line 331 "parse.l"
2213 | { yylval="*="; return(MUL_ASSIGN); }
2214 | YY_BREAK
2215 | case 151:
2216 | YY_RULE_SETUP
2217 | #line 332 "parse.l"
2218 | { yylval="/="; return(DIV_ASSIGN); }
2219 | YY_BREAK
2220 | case 152:
2221 | YY_RULE_SETUP
2222 | #line 333 "parse.l"
2223 | { yylval="%="; return(MOD_ASSIGN); }
2224 | YY_BREAK
2225 | case 153:
2226 | YY_RULE_SETUP
2227 | #line 334 "parse.l"
2228 | { yylval="&="; return(AND_ASSIGN); }
2229 | YY_BREAK
2230 | case 154:
2231 | YY_RULE_SETUP
2232 | #line 335 "parse.l"
2233 | { yylval="^="; return(XOR_ASSIGN); }
2234 | YY_BREAK
2235 | case 155:
2236 | YY_RULE_SETUP
2237 | #line 336 "parse.l"
2238 | { yylval="|="; return(OR_ASSIGN); }
2239 | YY_BREAK
2240 | case 156:
2241 | YY_RULE_SETUP
2242 | #line 337 "parse.l"
2243 | { yylval=">>"; return(RIGHT_SHIFT);}
2244 | YY_BREAK
2245 | case 157:
2246 | YY_RULE_SETUP
2247 | #line 338 "parse.l"
2248 | { yylval="<<"; return(LEFT_SHIFT); }
2249 | YY_BREAK
2250 | case 158:
2251 | YY_RULE_SETUP
2252 | #line 339 "parse.l"
2253 | { yylval="++"; return(INC_OP); }
2254 | YY_BREAK
2255 | case 159:
2256 | YY_RULE_SETUP
2257 | #line 340 "parse.l"
2258 | { yylval="--"; return(DEC_OP); }
2259 | YY_BREAK
2260 | case 160:
2261 | YY_RULE_SETUP
2262 | #line 341 "parse.l"
2263 | { yylval="->"; return(PTR_OP); }
2264 | YY_BREAK
2265 | case 161:
2266 | YY_RULE_SETUP
2267 | #line 342 "parse.l"
2268 | { yylval="&&"; return(AND_OP); }
2269 | YY_BREAK
2270 | case 162:
2271 | YY_RULE_SETUP
2272 | #line 343 "parse.l"
2273 | { yylval="||"; return(OR_OP); }
2274 | YY_BREAK
2275 | case 163:
2276 | YY_RULE_SETUP
2277 | #line 344 "parse.l"
2278 | { yylval="<="; return(LE_OP); }
2279 | YY_BREAK
2280 | case 164:
2281 | YY_RULE_SETUP
2282 | #line 345 "parse.l"
2283 | { yylval=">="; return(GE_OP); }
2284 | YY_BREAK
2285 | case 165:
2286 | YY_RULE_SETUP
2287 | #line 346 "parse.l"
2288 | { yylval="=="; return(EQ_OP); }
2289 | YY_BREAK
2290 | case 166:
2291 | YY_RULE_SETUP
2292 | #line 347 "parse.l"
2293 | { yylval="!="; return(NE_OP); }
2294 | YY_BREAK
2295 | case 167:
2296 | YY_RULE_SETUP
2297 | #line 348 "parse.l"
2298 | { yylval="; "; push_past=2;
2299 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); }
2300 | YY_BREAK
2301 | case 168:
2302 | YY_RULE_SETUP
2303 | #line 350 "parse.l"
2304 | { yylval=";"; return(';'); }
2305 | YY_BREAK
2306 | case 169:
2307 | YY_RULE_SETUP
2308 | #line 351 "parse.l"
2309 | { yylval="{"; return('{'); }
2310 | YY_BREAK
2311 | case 170:
2312 | YY_RULE_SETUP
2313 | #line 352 "parse.l"
2314 | { yylval="}; "; push_past=3;
2315 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); }
2316 | YY_BREAK
2317 | case 171:
2318 | YY_RULE_SETUP
2319 | #line 354 "parse.l"
2320 | { yylval="}, "; push_past=3;
2321 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); }
2322 | YY_BREAK
2323 | case 172:
2324 | YY_RULE_SETUP
2325 | #line 356 "parse.l"
2326 | { yylval="}"; return('}'); }
2327 | YY_BREAK
2328 | case 173:
2329 | YY_RULE_SETUP
2330 | #line 357 "parse.l"
2331 | { yylval=", "; push_past=2;
2332 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); }
2333 | YY_BREAK
2334 | case 174:
2335 | YY_RULE_SETUP
2336 | #line 359 "parse.l"
2337 | { yylval=","; return(','); }
2338 | YY_BREAK
2339 | case 175:
2340 | YY_RULE_SETUP
2341 | #line 360 "parse.l"
2342 | { yylval=":"; return(':'); }
2343 | YY_BREAK
2344 | case 176:
2345 | YY_RULE_SETUP
2346 | #line 361 "parse.l"
2347 | { yylval="="; return('='); }
2348 | YY_BREAK
2349 | case 177:
2350 | YY_RULE_SETUP
2351 | #line 362 "parse.l"
2352 | { yylval="("; return('('); }
2353 | YY_BREAK
2354 | case 178:
2355 | YY_RULE_SETUP
2356 | #line 363 "parse.l"
2357 | { yylval=") "; push_past=2;
2358 | comment_init_state=INITIAL; BEGIN(yytext[strlen(yytext)-1]=='*'?START_COMMENT:START_COMMENT_CPP); }
2359 | YY_BREAK
2360 | case 179:
2361 | YY_RULE_SETUP
2362 | #line 365 "parse.l"
2363 | { yylval=")"; return(')'); }
2364 | YY_BREAK
2365 | case 180:
2366 | YY_RULE_SETUP
2367 | #line 366 "parse.l"
2368 | { yylval="["; return('['); }
2369 | YY_BREAK
2370 | case 181:
2371 | YY_RULE_SETUP
2372 | #line 367 "parse.l"
2373 | { yylval="]"; return(']'); }
2374 | YY_BREAK
2375 | case 182:
2376 | YY_RULE_SETUP
2377 | #line 368 "parse.l"
2378 | { yylval="."; return('.'); }
2379 | YY_BREAK
2380 | case 183:
2381 | YY_RULE_SETUP
2382 | #line 369 "parse.l"
2383 | { yylval="&"; return('&'); }
2384 | YY_BREAK
2385 | case 184:
2386 | YY_RULE_SETUP
2387 | #line 370 "parse.l"
2388 | { yylval="!"; return('!'); }
2389 | YY_BREAK
2390 | case 185:
2391 | YY_RULE_SETUP
2392 | #line 371 "parse.l"
2393 | { yylval="~"; return('~'); }
2394 | YY_BREAK
2395 | case 186:
2396 | YY_RULE_SETUP
2397 | #line 372 "parse.l"
2398 | { yylval="-"; return('-'); }
2399 | YY_BREAK
2400 | case 187:
2401 | YY_RULE_SETUP
2402 | #line 373 "parse.l"
2403 | { yylval="+"; return('+'); }
2404 | YY_BREAK
2405 | case 188:
2406 | YY_RULE_SETUP
2407 | #line 374 "parse.l"
2408 | { yylval="*"; return('*'); }
2409 | YY_BREAK
2410 | case 189:
2411 | YY_RULE_SETUP
2412 | #line 375 "parse.l"
2413 | { yylval="/"; return('/'); }
2414 | YY_BREAK
2415 | case 190:
2416 | YY_RULE_SETUP
2417 | #line 376 "parse.l"
2418 | { yylval="%"; return('%'); }
2419 | YY_BREAK
2420 | case 191:
2421 | YY_RULE_SETUP
2422 | #line 377 "parse.l"
2423 | { yylval="<"; return('<'); }
2424 | YY_BREAK
2425 | case 192:
2426 | YY_RULE_SETUP
2427 | #line 378 "parse.l"
2428 | { yylval=">"; return('>'); }
2429 | YY_BREAK
2430 | case 193:
2431 | YY_RULE_SETUP
2432 | #line 379 "parse.l"
2433 | { yylval="^"; return('^'); }
2434 | YY_BREAK
2435 | case 194:
2436 | YY_RULE_SETUP
2437 | #line 380 "parse.l"
2438 | { yylval="|"; return('|'); }
2439 | YY_BREAK
2440 | case 195:
2441 | YY_RULE_SETUP
2442 | #line 381 "parse.l"
2443 | { yylval="?"; return('?'); }
2444 | YY_BREAK
2445 | /* Variable / Function / Type names */
2446 | case 196:
2447 | YY_RULE_SETUP
2448 | #line 385 "parse.l"
2449 | {
2450 | yylval=CopyString(yytext);
2451 | if(IsAScopeVariable(yytext))
2452 | return(IDENTIFIER);
2453 | else
2454 | if(IsATypeName(yytext))
2455 | return(TYPE_NAME);
2456 | else
2457 | return(IDENTIFIER);
2458 | }
2459 | YY_BREAK
2460 | /* Literals */
2461 | case 197:
2462 | YY_RULE_SETUP
2463 | #line 398 "parse.l"
2464 | { yylval=CopyString(yytext); return(LITERAL); }
2465 | YY_BREAK
2466 | case 198:
2467 | YY_RULE_SETUP
2468 | #line 399 "parse.l"
2469 | { yylval=CopyString(yytext); return(LITERAL); }
2470 | YY_BREAK
2471 | case 199:
2472 | YY_RULE_SETUP
2473 | #line 400 "parse.l"
2474 | { yylval=CopyString(yytext); return(LITERAL); }
2475 | YY_BREAK
2476 | case 200:
2477 | YY_RULE_SETUP
2478 | #line 401 "parse.l"
2479 | { yylval=CopyString(yytext); return(LITERAL); }
2480 | YY_BREAK
2481 | case 201:
2482 | YY_RULE_SETUP
2483 | #line 402 "parse.l"
2484 | { yylval=CopyString(yytext); return(LITERAL); }
2485 | YY_BREAK
2486 | case 202:
2487 | YY_RULE_SETUP
2488 | #line 404 "parse.l"
2489 | { yylval=CopyString(yytext); return(LITERAL); }
2490 | YY_BREAK
2491 | case 203:
2492 | YY_RULE_SETUP
2493 | #line 405 "parse.l"
2494 | { yylval=CopyString(yytext); return(LITERAL); }
2495 | YY_BREAK
2496 | case 204:
2497 | YY_RULE_SETUP
2498 | #line 406 "parse.l"
2499 | { yylval=CopyString(yytext); return(LITERAL); }
2500 | YY_BREAK
2501 | case 205:
2502 | YY_RULE_SETUP
2503 | #line 408 "parse.l"
2504 | { yylval=CopyString(yytext); return(STRING_LITERAL); }
2505 | YY_BREAK
2506 | case 206:
2507 | YY_RULE_SETUP
2508 | #line 409 "parse.l"
2509 | { yylval=CopyString(yytext); return(STRING_LITERAL); }
2510 | YY_BREAK
2511 | /* Other text. */
2512 | case 207:
2513 | YY_RULE_SETUP
2514 | #line 413 "parse.l"
2515 | { parse_line++; }
2516 | YY_BREAK
2517 | case 208:
2518 | YY_RULE_SETUP
2519 | #line 414 "parse.l"
2520 | { /* Ignore bad characters */ }
2521 | YY_BREAK
2522 | case 209:
2523 | YY_RULE_SETUP
2524 | #line 416 "parse.l"
2525 | ECHO;
2526 | YY_BREAK
2527 | #line 2528 "lex.yy.c"
2528 | case YY_STATE_EOF(INITIAL):
2529 | case YY_STATE_EOF(START_COMMENT):
2530 | case YY_STATE_EOF(COMMENT):
2531 | case YY_STATE_EOF(SPECIAL_COMMENT):
2532 | case YY_STATE_EOF(START_COMMENT_CPP):
2533 | case YY_STATE_EOF(COMMENT_CPP):
2534 | case YY_STATE_EOF(SPECIAL_COMMENT_CPP):
2535 | case YY_STATE_EOF(CPP):
2536 | case YY_STATE_EOF(CPP_START):
2537 | case YY_STATE_EOF(CPP_INCLUDE):
2538 | case YY_STATE_EOF(CPP_INC_FILE):
2539 | case YY_STATE_EOF(CPP_INC_FLAGS):
2540 | case YY_STATE_EOF(CPP_DEFINE):
2541 | case YY_STATE_EOF(CPP_DEFINE_ARGP):
2542 | case YY_STATE_EOF(CPP_DEFINE_BODY):
2543 | case YY_STATE_EOF(CPP_DEFINE_ARGS):
2544 | case YY_STATE_EOF(GNU_LABEL):
2545 | case YY_STATE_EOF(GNU_ATTRIBUTE):
2546 | case YY_STATE_EOF(GNU_EXTENSION):
2547 | case YY_STATE_EOF(GNU_TYPEOF):
2548 | case YY_STATE_EOF(CHAR_VARYING):
2549 | yyterminate();
2550 |
2551 | case YY_END_OF_BUFFER:
2552 | {
2553 | /* Amount of text matched not including the EOB char. */
2554 | int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
2555 |
2556 | /* Undo the effects of YY_DO_BEFORE_ACTION. */
2557 | *yy_cp = yy_hold_char;
2558 | YY_RESTORE_YY_MORE_OFFSET
2559 |
2560 | if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
2561 | {
2562 | /* We're scanning a new file or input source. It's
2563 | * possible that this happened because the user
2564 | * just pointed yyin at a new source and called
2565 | * yylex(). If so, then we have to assure
2566 | * consistency between yy_current_buffer and our
2567 | * globals. Here is the right place to do so, because
2568 | * this is the first action (other than possibly a
2569 | * back-up) that will match for the new input source.
2570 | */
2571 | yy_n_chars = yy_current_buffer->yy_n_chars;
2572 | yy_current_buffer->yy_input_file = yyin;
2573 | yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
2574 | }
2575 |
2576 | /* Note that here we test for yy_c_buf_p "<=" to the position
2577 | * of the first EOB in the buffer, since yy_c_buf_p will
2578 | * already have been incremented past the NUL character
2579 | * (since all states make transitions on EOB to the
2580 | * end-of-buffer state). Contrast this with the test
2581 | * in input().
2582 | */
2583 | if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2584 | { /* This was really a NUL. */
2585 | yy_state_type yy_next_state;
2586 |
2587 | yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
2588 |
2589 | yy_current_state = yy_get_previous_state();
2590 |
2591 | /* Okay, we're now positioned to make the NUL
2592 | * transition. We couldn't have
2593 | * yy_get_previous_state() go ahead and do it
2594 | * for us because it doesn't know how to deal
2595 | * with the possibility of jamming (and we don't
2596 | * want to build jamming into it because then it
2597 | * will run more slowly).
2598 | */
2599 |
2600 | yy_next_state = yy_try_NUL_trans( yy_current_state );
2601 |
2602 | yy_bp = yytext_ptr + YY_MORE_ADJ;
2603 |
2604 | if ( yy_next_state )
2605 | {
2606 | /* Consume the NUL. */
2607 | yy_cp = ++yy_c_buf_p;
2608 | yy_current_state = yy_next_state;
2609 | goto yy_match;
2610 | }
2611 |
2612 | else
2613 | {
2614 | yy_cp = yy_c_buf_p;
2615 | goto yy_find_action;
2616 | }
2617 | }
2618 |
2619 | else switch ( yy_get_next_buffer() )
2620 | {
2621 | case EOB_ACT_END_OF_FILE:
2622 | {
2623 | yy_did_buffer_switch_on_eof = 0;
2624 |
2625 | if ( yywrap() )
2626 | {
2627 | /* Note: because we've taken care in
2628 | * yy_get_next_buffer() to have set up
2629 | * yytext, we can now set up
2630 | * yy_c_buf_p so that if some total
2631 | * hoser (like flex itself) wants to
2632 | * call the scanner after we return the
2633 | * YY_NULL, it'll still work - another
2634 | * YY_NULL will get returned.
2635 | */
2636 | yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
2637 |
2638 | yy_act = YY_STATE_EOF(YY_START);
2639 | goto do_action;
2640 | }
2641 |
2642 | else
2643 | {
2644 | if ( ! yy_did_buffer_switch_on_eof )
2645 | YY_NEW_FILE;
2646 | }
2647 | break;
2648 | }
2649 |
2650 | case EOB_ACT_CONTINUE_SCAN:
2651 | yy_c_buf_p =
2652 | yytext_ptr + yy_amount_of_matched_text;
2653 |
2654 | yy_current_state = yy_get_previous_state();
2655 |
2656 | yy_cp = yy_c_buf_p;
2657 | yy_bp = yytext_ptr + YY_MORE_ADJ;
2658 | goto yy_match;
2659 |
2660 | case EOB_ACT_LAST_MATCH:
2661 | yy_c_buf_p =
2662 | &yy_current_buffer->yy_ch_buf[yy_n_chars];
2663 |
2664 | yy_current_state = yy_get_previous_state();
2665 |
2666 | yy_cp = yy_c_buf_p;
2667 | yy_bp = yytext_ptr + YY_MORE_ADJ;
2668 | goto yy_find_action;
2669 | }
2670 | break;
2671 | }
2672 |
2673 | default:
2674 | YY_FATAL_ERROR(
2675 | "fatal flex scanner internal error--no action found" );
2676 | } /* end of action switch */
2677 | } /* end of scanning one token */
2678 | } /* end of yylex */
2679 |
2680 |
2681 | /* yy_get_next_buffer - try to read in a new buffer
2682 | *
2683 | * Returns a code representing an action:
2684 | * EOB_ACT_LAST_MATCH -
2685 | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2686 | * EOB_ACT_END_OF_FILE - end of file
2687 | */
2688 |
2689 | static int yy_get_next_buffer()
2690 | {
2691 | register char *dest = yy_current_buffer->yy_ch_buf;
2692 | register char *source = yytext_ptr;
2693 | register int number_to_move, i;
2694 | int ret_val;
2695 |
2696 | if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
2697 | YY_FATAL_ERROR(
2698 | "fatal flex scanner internal error--end of buffer missed" );
2699 |
2700 | if ( yy_current_buffer->yy_fill_buffer == 0 )
2701 | { /* Don't try to fill the buffer, so this is an EOF. */
2702 | if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2703 | {
2704 | /* We matched a single character, the EOB, so
2705 | * treat this as a final EOF.
2706 | */
2707 | return EOB_ACT_END_OF_FILE;
2708 | }
2709 |
2710 | else
2711 | {
2712 | /* We matched some text prior to the EOB, first
2713 | * process it.
2714 | */
2715 | return EOB_ACT_LAST_MATCH;
2716 | }
2717 | }
2718 |
2719 | /* Try to read more data. */
2720 |
2721 | /* First move last chars to start of buffer. */
2722 | number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2723 |
2724 | for ( i = 0; i < number_to_move; ++i )
2725 | *(dest++) = *(source++);
2726 |
2727 | if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2728 | /* don't do the read, it's not guaranteed to return an EOF,
2729 | * just force an EOF
2730 | */
2731 | yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2732 |
2733 | else
2734 | {
2735 | int num_to_read =
2736 | yy_current_buffer->yy_buf_size - number_to_move - 1;
2737 |
2738 | while ( num_to_read <= 0 )
2739 | { /* Not enough room in the buffer - grow it. */
2740 | #ifdef YY_USES_REJECT
2741 | YY_FATAL_ERROR(
2742 | "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2743 | #else
2744 |
2745 | /* just a shorter name for the current buffer */
2746 | YY_BUFFER_STATE b = yy_current_buffer;
2747 |
2748 | int yy_c_buf_p_offset =
2749 | (int) (yy_c_buf_p - b->yy_ch_buf);
2750 |
2751 | if ( b->yy_is_our_buffer )
2752 | {
2753 | int new_size = b->yy_buf_size * 2;
2754 |
2755 | if ( new_size <= 0 )
2756 | b->yy_buf_size += b->yy_buf_size / 8;
2757 | else
2758 | b->yy_buf_size *= 2;
2759 |
2760 | b->yy_ch_buf = (char *)
2761 | /* Include room in for 2 EOB chars. */
2762 | yy_flex_realloc( (void *) b->yy_ch_buf,
2763 | b->yy_buf_size + 2 );
2764 | }
2765 | else
2766 | /* Can't grow it, we don't own it. */
2767 | b->yy_ch_buf = 0;
2768 |
2769 | if ( ! b->yy_ch_buf )
2770 | YY_FATAL_ERROR(
2771 | "fatal error - scanner input buffer overflow" );
2772 |
2773 | yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2774 |
2775 | num_to_read = yy_current_buffer->yy_buf_size -
2776 | number_to_move - 1;
2777 | #endif
2778 | }
2779 |
2780 | if ( num_to_read > YY_READ_BUF_SIZE )
2781 | num_to_read = YY_READ_BUF_SIZE;
2782 |
2783 | /* Read in more data. */
2784 | YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2785 | yy_n_chars, num_to_read );
2786 |
2787 | yy_current_buffer->yy_n_chars = yy_n_chars;
2788 | }
2789 |
2790 | if ( yy_n_chars == 0 )
2791 | {
2792 | if ( number_to_move == YY_MORE_ADJ )
2793 | {
2794 | ret_val = EOB_ACT_END_OF_FILE;
2795 | yyrestart( yyin );
2796 | }
2797 |
2798 | else
2799 | {
2800 | ret_val = EOB_ACT_LAST_MATCH;
2801 | yy_current_buffer->yy_buffer_status =
2802 | YY_BUFFER_EOF_PENDING;
2803 | }
2804 | }
2805 |
2806 | else
2807 | ret_val = EOB_ACT_CONTINUE_SCAN;
2808 |
2809 | yy_n_chars += number_to_move;
2810 | yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2811 | yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2812 |
2813 | yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2814 |
2815 | return ret_val;
2816 | }
2817 |
2818 |
2819 | /* yy_get_previous_state - get the state just before the EOB char was reached */
2820 |
2821 | static yy_state_type yy_get_previous_state()
2822 | {
2823 | register yy_state_type yy_current_state;
2824 | register char *yy_cp;
2825 |
2826 | yy_current_state = yy_start;
2827 |
2828 | for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2829 | {
2830 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2831 | if ( yy_accept[yy_current_state] )
2832 | {
2833 | yy_last_accepting_state = yy_current_state;
2834 | yy_last_accepting_cpos = yy_cp;
2835 | }
2836 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2837 | {
2838 | yy_current_state = (int) yy_def[yy_current_state];
2839 | if ( yy_current_state >= 698 )
2840 | yy_c = yy_meta[(unsigned int) yy_c];
2841 | }
2842 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2843 | }
2844 |
2845 | return yy_current_state;
2846 | }
2847 |
2848 |
2849 | /* yy_try_NUL_trans - try to make a transition on the NUL character
2850 | *
2851 | * synopsis
2852 | * next_state = yy_try_NUL_trans( current_state );
2853 | */
2854 |
2855 | #ifdef YY_USE_PROTOS
2856 | static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2857 | #else
2858 | static yy_state_type yy_try_NUL_trans( yy_current_state )
2859 | yy_state_type yy_current_state;
2860 | #endif
2861 | {
2862 | register int yy_is_jam;
2863 | register char *yy_cp = yy_c_buf_p;
2864 |
2865 | register YY_CHAR yy_c = 1;
2866 | if ( yy_accept[yy_current_state] )
2867 | {
2868 | yy_last_accepting_state = yy_current_state;
2869 | yy_last_accepting_cpos = yy_cp;
2870 | }
2871 | while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2872 | {
2873 | yy_current_state = (int) yy_def[yy_current_state];
2874 | if ( yy_current_state >= 698 )
2875 | yy_c = yy_meta[(unsigned int) yy_c];
2876 | }
2877 | yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2878 | yy_is_jam = (yy_current_state == 697);
2879 |
2880 | return yy_is_jam ? 0 : yy_current_state;
2881 | }
2882 |
2883 |
2884 | #ifndef YY_NO_UNPUT
2885 | #ifdef YY_USE_PROTOS
2886 | static void yyunput( int c, register char *yy_bp )
2887 | #else
2888 | static void yyunput( c, yy_bp )
2889 | int c;
2890 | register char *yy_bp;
2891 | #endif
2892 | {
2893 | register char *yy_cp = yy_c_buf_p;
2894 |
2895 | /* undo effects of setting up yytext */
2896 | *yy_cp = yy_hold_char;
2897 |
2898 | if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2899 | { /* need to shift things up to make room */
2900 | /* +2 for EOB chars. */
2901 | register int number_to_move = yy_n_chars + 2;
2902 | register char *dest = &yy_current_buffer->yy_ch_buf[
2903 | yy_current_buffer->yy_buf_size + 2];
2904 | register char *source =
2905 | &yy_current_buffer->yy_ch_buf[number_to_move];
2906 |
2907 | while ( source > yy_current_buffer->yy_ch_buf )
2908 | *--dest = *--source;
2909 |
2910 | yy_cp += (int) (dest - source);
2911 | yy_bp += (int) (dest - source);
2912 | yy_current_buffer->yy_n_chars =
2913 | yy_n_chars = yy_current_buffer->yy_buf_size;
2914 |
2915 | if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2916 | YY_FATAL_ERROR( "flex scanner push-back overflow" );
2917 | }
2918 |
2919 | *--yy_cp = (char) c;
2920 |
2921 |
2922 | yytext_ptr = yy_bp;
2923 | yy_hold_char = *yy_cp;
2924 | yy_c_buf_p = yy_cp;
2925 | }
2926 | #endif /* ifndef YY_NO_UNPUT */
2927 |
2928 |
2929 | #ifdef __cplusplus
2930 | static int yyinput()
2931 | #else
2932 | static int input()
2933 | #endif
2934 | {
2935 | int c;
2936 |
2937 | *yy_c_buf_p = yy_hold_char;
2938 |
2939 | if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2940 | {
2941 | /* yy_c_buf_p now points to the character we want to return.
2942 | * If this occurs *before* the EOB characters, then it's a
2943 | * valid NUL; if not, then we've hit the end of the buffer.
2944 | */
2945 | if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2946 | /* This was really a NUL. */
2947 | *yy_c_buf_p = '\0';
2948 |
2949 | else
2950 | { /* need more input */
2951 | int offset = yy_c_buf_p - yytext_ptr;
2952 | ++yy_c_buf_p;
2953 |
2954 | switch ( yy_get_next_buffer() )
2955 | {
2956 | case EOB_ACT_LAST_MATCH:
2957 | /* This happens because yy_g_n_b()
2958 | * sees that we've accumulated a
2959 | * token and flags that we need to
2960 | * try matching the token before
2961 | * proceeding. But for input(),
2962 | * there's no matching to consider.
2963 | * So convert the EOB_ACT_LAST_MATCH
2964 | * to EOB_ACT_END_OF_FILE.
2965 | */
2966 |
2967 | /* Reset buffer status. */
2968 | yyrestart( yyin );
2969 |
2970 | /* fall through */
2971 |
2972 | case EOB_ACT_END_OF_FILE:
2973 | {
2974 | if ( yywrap() )
2975 | return EOF;
2976 |
2977 | if ( ! yy_did_buffer_switch_on_eof )
2978 | YY_NEW_FILE;
2979 | #ifdef __cplusplus
2980 | return yyinput();
2981 | #else
2982 | return input();
2983 | #endif
2984 | }
2985 |
2986 | case EOB_ACT_CONTINUE_SCAN:
2987 | yy_c_buf_p = yytext_ptr + offset;
2988 | break;
2989 | }
2990 | }
2991 | }
2992 |
2993 | c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2994 | *yy_c_buf_p = '\0'; /* preserve yytext */
2995 | yy_hold_char = *++yy_c_buf_p;
2996 |
2997 |
2998 | return c;
2999 | }
3000 |
3001 |
3002 | #ifdef YY_USE_PROTOS
3003 | void yyrestart( FILE *input_file )
3004 | #else
3005 | void yyrestart( input_file )
3006 | FILE *input_file;
3007 | #endif
3008 | {
3009 | if ( ! yy_current_buffer )
3010 | yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
3011 |
3012 | yy_init_buffer( yy_current_buffer, input_file );
3013 | yy_load_buffer_state();
3014 | }
3015 |
3016 |
3017 | #ifdef YY_USE_PROTOS
3018 | void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
3019 | #else
3020 | void yy_switch_to_buffer( new_buffer )
3021 | YY_BUFFER_STATE new_buffer;
3022 | #endif
3023 | {
3024 | if ( yy_current_buffer == new_buffer )
3025 | return;
3026 |
3027 | if ( yy_current_buffer )
3028 | {
3029 | /* Flush out information for old buffer. */
3030 | *yy_c_buf_p = yy_hold_char;
3031 | yy_current_buffer->yy_buf_pos = yy_c_buf_p;
3032 | yy_current_buffer->yy_n_chars = yy_n_chars;
3033 | }
3034 |
3035 | yy_current_buffer = new_buffer;
3036 | yy_load_buffer_state();
3037 |
3038 | /* We don't actually know whether we did this switch during
3039 | * EOF (yywrap()) processing, but the only time this flag
3040 | * is looked at is after yywrap() is called, so it's safe
3041 | * to go ahead and always set it.
3042 | */
3043 | yy_did_buffer_switch_on_eof = 1;
3044 | }
3045 |
3046 |
3047 | #ifdef YY_USE_PROTOS
3048 | void yy_load_buffer_state( void )
3049 | #else
3050 | void yy_load_buffer_state()
3051 | #endif
3052 | {
3053 | yy_n_chars = yy_current_buffer->yy_n_chars;
3054 | yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
3055 | yyin = yy_current_buffer->yy_input_file;
3056 | yy_hold_char = *yy_c_buf_p;
3057 | }
3058 |
3059 |
3060 | #ifdef YY_USE_PROTOS
3061 | YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
3062 | #else
3063 | YY_BUFFER_STATE yy_create_buffer( file, size )
3064 | FILE *file;
3065 | int size;
3066 | #endif
3067 | {
3068 | YY_BUFFER_STATE b;
3069 |
3070 | b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
3071 | if ( ! b )
3072 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
3073 |
3074 | b->yy_buf_size = size;
3075 |
3076 | /* yy_ch_buf has to be 2 characters longer than the size given because
3077 | * we need to put in 2 end-of-buffer characters.
3078 | */
3079 | b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
3080 | if ( ! b->yy_ch_buf )
3081 | YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
3082 |
3083 | b->yy_is_our_buffer = 1;
3084 |
3085 | yy_init_buffer( b, file );
3086 |
3087 | return b;
3088 | }
3089 |
3090 |
3091 | #ifdef YY_USE_PROTOS
3092 | void yy_delete_buffer( YY_BUFFER_STATE b )
3093 | #else
3094 | void yy_delete_buffer( b )
3095 | YY_BUFFER_STATE b;
3096 | #endif
3097 | {
3098 | if ( ! b )
3099 | return;
3100 |
3101 | if ( b == yy_current_buffer )
3102 | yy_current_buffer = (YY_BUFFER_STATE) 0;
3103 |
3104 | if ( b->yy_is_our_buffer )
3105 | yy_flex_free( (void *) b->yy_ch_buf );
3106 |
3107 | yy_flex_free( (void *) b );
3108 | }
3109 |
3110 |
3111 | #ifndef YY_ALWAYS_INTERACTIVE
3112 | #ifndef YY_NEVER_INTERACTIVE
3113 | extern int isatty YY_PROTO(( int ));
3114 | #endif
3115 | #endif
3116 |
3117 | #ifdef YY_USE_PROTOS
3118 | void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
3119 | #else
3120 | void yy_init_buffer( b, file )
3121 | YY_BUFFER_STATE b;
3122 | FILE *file;
3123 | #endif
3124 |
3125 |
3126 | {
3127 | yy_flush_buffer( b );
3128 |
3129 | b->yy_input_file = file;
3130 | b->yy_fill_buffer = 1;
3131 |
3132 | #if YY_ALWAYS_INTERACTIVE
3133 | b->yy_is_interactive = 1;
3134 | #else
3135 | #if YY_NEVER_INTERACTIVE
3136 | b->yy_is_interactive = 0;
3137 | #else
3138 | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
3139 | #endif
3140 | #endif
3141 | }
3142 |
3143 |
3144 | #ifdef YY_USE_PROTOS
3145 | void yy_flush_buffer( YY_BUFFER_STATE b )
3146 | #else
3147 | void yy_flush_buffer( b )
3148 | YY_BUFFER_STATE b;
3149 | #endif
3150 |
3151 | {
3152 | if ( ! b )
3153 | return;
3154 |
3155 | b->yy_n_chars = 0;
3156 |
3157 | /* We always need two end-of-buffer characters. The first causes
3158 | * a transition to the end-of-buffer state. The second causes
3159 | * a jam in that state.
3160 | */
3161 | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
3162 | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
3163 |
3164 | b->yy_buf_pos = &b->yy_ch_buf[0];
3165 |
3166 | b->yy_at_bol = 1;
3167 | b->yy_buffer_status = YY_BUFFER_NEW;
3168 |
3169 | if ( b == yy_current_buffer )
3170 | yy_load_buffer_state();
3171 | }
3172 |
3173 |
3174 | #ifndef YY_NO_SCAN_BUFFER
3175 | #ifdef YY_USE_PROTOS
3176 | YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
3177 | #else
3178 | YY_BUFFER_STATE yy_scan_buffer( base, size )
3179 | char *base;
3180 | yy_size_t size;
3181 | #endif
3182 | {
3183 | YY_BUFFER_STATE b;
3184 |
3185 | if ( size < 2 ||
3186 | base[size-2] != YY_END_OF_BUFFER_CHAR ||
3187 | base[size-1] != YY_END_OF_BUFFER_CHAR )
3188 | /* They forgot to leave room for the EOB's. */
3189 | return 0;
3190 |
3191 | b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
3192 | if ( ! b )
3193 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
3194 |
3195 | b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
3196 | b->yy_buf_pos = b->yy_ch_buf = base;
3197 | b->yy_is_our_buffer = 0;
3198 | b->yy_input_file = 0;
3199 | b->yy_n_chars = b->yy_buf_size;
3200 | b->yy_is_interactive = 0;
3201 | b->yy_at_bol = 1;
3202 | b->yy_fill_buffer = 0;
3203 | b->yy_buffer_status = YY_BUFFER_NEW;
3204 |
3205 | yy_switch_to_buffer( b );
3206 |
3207 | return b;
3208 | }
3209 | #endif
3210 |
3211 |
3212 | #ifndef YY_NO_SCAN_STRING
3213 | #ifdef YY_USE_PROTOS
3214 | YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
3215 | #else
3216 | YY_BUFFER_STATE yy_scan_string( yy_str )
3217 | yyconst char *yy_str;
3218 | #endif
3219 | {
3220 | int len;
3221 | for ( len = 0; yy_str[len]; ++len )
3222 | ;
3223 |
3224 | return yy_scan_bytes( yy_str, len );
3225 | }
3226 | #endif
3227 |
3228 |
3229 | #ifndef YY_NO_SCAN_BYTES
3230 | #ifdef YY_USE_PROTOS
3231 | YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
3232 | #else
3233 | YY_BUFFER_STATE yy_scan_bytes( bytes, len )
3234 | yyconst char *bytes;
3235 | int len;
3236 | #endif
3237 | {
3238 | YY_BUFFER_STATE b;
3239 | char *buf;
3240 | yy_size_t n;
3241 | int i;
3242 |
3243 | /* Get memory for full buffer, including space for trailing EOB's. */
3244 | n = len + 2;
3245 | buf = (char *) yy_flex_alloc( n );
3246 | if ( ! buf )
3247 | YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
3248 |
3249 | for ( i = 0; i < len; ++i )
3250 | buf[i] = bytes[i];
3251 |
3252 | buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
3253 |
3254 | b = yy_scan_buffer( buf, n );
3255 | if ( ! b )
3256 | YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
3257 |
3258 | /* It's okay to grow etc. this buffer, and we should throw it
3259 | * away when we're done.
3260 | */
3261 | b->yy_is_our_buffer = 1;
3262 |
3263 | return b;
3264 | }
3265 | #endif
3266 |
3267 |
3268 | #ifndef YY_NO_PUSH_STATE
3269 | #ifdef YY_USE_PROTOS
3270 | static void yy_push_state( int new_state )
3271 | #else
3272 | static void yy_push_state( new_state )
3273 | int new_state;
3274 | #endif
3275 | {
3276 | if ( yy_start_stack_ptr >= yy_start_stack_depth )
3277 | {
3278 | yy_size_t new_size;
3279 |
3280 | yy_start_stack_depth += YY_START_STACK_INCR;
3281 | new_size = yy_start_stack_depth * sizeof( int );
3282 |
3283 | if ( ! yy_start_stack )
3284 | yy_start_stack = (int *) yy_flex_alloc( new_size );
3285 |
3286 | else
3287 | yy_start_stack = (int *) yy_flex_realloc(
3288 | (void *) yy_start_stack, new_size );
3289 |
3290 | if ( ! yy_start_stack )
3291 | YY_FATAL_ERROR(
3292 | "out of memory expanding start-condition stack" );
3293 | }
3294 |
3295 | yy_start_stack[yy_start_stack_ptr++] = YY_START;
3296 |
3297 | BEGIN(new_state);
3298 | }
3299 | #endif
3300 |
3301 |
3302 | #ifndef YY_NO_POP_STATE
3303 | static void yy_pop_state()
3304 | {
3305 | if ( --yy_start_stack_ptr < 0 )
3306 | YY_FATAL_ERROR( "start-condition stack underflow" );
3307 |
3308 | BEGIN(yy_start_stack[yy_start_stack_ptr]);
3309 | }
3310 | #endif
3311 |
3312 |
3313 | #ifndef YY_NO_TOP_STATE
3314 | static int yy_top_state()
3315 | {
3316 | return yy_start_stack[yy_start_stack_ptr - 1];
3317 | }
3318 | #endif
3319 |
3320 | #ifndef YY_EXIT_FAILURE
3321 | #define YY_EXIT_FAILURE 2
3322 | #endif
3323 |
3324 | #ifdef YY_USE_PROTOS
3325 | static void yy_fatal_error( yyconst char msg[] )
3326 | #else
3327 | static void yy_fatal_error( msg )
3328 | char msg[];
3329 | #endif
3330 | {
3331 | (void) fprintf( stderr, "%s\n", msg );
3332 | exit( YY_EXIT_FAILURE );
3333 | }
3334 |
3335 |
3336 |
3337 | /* Redefine yyless() so it works in section 3 code. */
3338 |
3339 | #undef yyless
3340 | #define yyless(n) \
3341 | do \
3342 | { \
3343 | /* Undo effects of setting up yytext. */ \
3344 | yytext[yyleng] = yy_hold_char; \
3345 | yy_c_buf_p = yytext + n; \
3346 | yy_hold_char = *yy_c_buf_p; \
3347 | *yy_c_buf_p = '\0'; \
3348 | yyleng = n; \
3349 | } \
3350 | while ( 0 )
3351 |
3352 |
3353 | /* Internal utility routines. */
3354 |
3355 | #ifndef yytext_ptr
3356 | #ifdef YY_USE_PROTOS
3357 | static void yy_flex_strncpy( char *s1, yyconst char *s2, int n )
3358 | #else
3359 | static void yy_flex_strncpy( s1, s2, n )
3360 | char *s1;
3361 | yyconst char *s2;
3362 | int n;
3363 | #endif
3364 | {
3365 | register int i;
3366 | for ( i = 0; i < n; ++i )
3367 | s1[i] = s2[i];
3368 | }
3369 | #endif
3370 |
3371 | #ifdef YY_NEED_STRLEN
3372 | #ifdef YY_USE_PROTOS
3373 | static int yy_flex_strlen( yyconst char *s )
3374 | #else
3375 | static int yy_flex_strlen( s )
3376 | yyconst char *s;
3377 | #endif
3378 | {
3379 | register int n;
3380 | for ( n = 0; s[n]; ++n )
3381 | ;
3382 |
3383 | return n;
3384 | }
3385 | #endif
3386 |
3387 |
3388 | #ifdef YY_USE_PROTOS
3389 | static void *yy_flex_alloc( yy_size_t size )
3390 | #else
3391 | static void *yy_flex_alloc( size )
3392 | yy_size_t size;
3393 | #endif
3394 | {
3395 | return (void *) malloc( size );
3396 | }
3397 |
3398 | #ifdef YY_USE_PROTOS
3399 | static void *yy_flex_realloc( void *ptr, yy_size_t size )
3400 | #else
3401 | static void *yy_flex_realloc( ptr, size )
3402 | void *ptr;
3403 | yy_size_t size;
3404 | #endif
3405 | {
3406 | /* The cast to (char *) in the following accommodates both
3407 | * implementations that use char* generic pointers, and those
3408 | * that use void* generic pointers. It works with the latter
3409 | * because both ANSI C and C++ allow castless assignment from
3410 | * any pointer type to void*, and deal with argument conversions
3411 | * as though doing an assignment.
3412 | */
3413 | return (void *) realloc( (char *) ptr, size );
3414 | }
3415 |
3416 | #ifdef YY_USE_PROTOS
3417 | static void yy_flex_free( void *ptr )
3418 | #else
3419 | static void yy_flex_free( ptr )
3420 | void *ptr;
3421 | #endif
3422 | {
3423 | free( ptr );
3424 | }
3425 |
3426 | #if YY_MAIN
3427 | int main()
3428 | {
3429 | yylex();
3430 | return 0;
3431 | }
3432 | #endif
3433 | #line 416 "parse.l"
3434 |