Debian Codegraph @

common/loader.c

raw symbols SCIP
1
2 #line 3 "loader.c"
3
4 #define YY_INT_ALIGNED short int
5
6 /* A lexical scanner generated by flex */
7
8 #define FLEX_SCANNER
9 #define YY_FLEX_MAJOR_VERSION 2
10 #define YY_FLEX_MINOR_VERSION 5
11 #define YY_FLEX_SUBMINOR_VERSION 37
12 #if YY_FLEX_SUBMINOR_VERSION > 0
13 #define FLEX_BETA
14 #endif
15
16 /* First, we deal with platform-specific or compiler-specific issues. */
17
18 #if defined(__FreeBSD__)
19 #ifndef __STDC_LIMIT_MACROS
20 #define __STDC_LIMIT_MACROS
21 #endif
22 #include <sys/cdefs.h>
23 #include <stdint.h>
24 #else
25 #define __dead2
26 #endif
27
28 /* begin standard C headers. */
29 #include <stdio.h>
30 #include <string.h>
31 #include <errno.h>
32 #include <stdlib.h>
33
34 /* end standard C headers. */
35
36 /* flex integer type definitions */
37
38 #ifndef FLEXINT_H
39 #define FLEXINT_H
40
41 /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
42
43 #if defined(__FreeBSD__) || \
44 (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
45
46 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
47 * if you want the limit (max/min) macros for int types.
48 */
49 #ifndef __STDC_LIMIT_MACROS
50 #define __STDC_LIMIT_MACROS 1
51 #endif
52
53 #include <inttypes.h>
54 typedef int8_t flex_int8_t;
55 typedef uint8_t flex_uint8_t;
56 typedef int16_t flex_int16_t;
57 typedef uint16_t flex_uint16_t;
58 typedef int32_t flex_int32_t;
59 typedef uint32_t flex_uint32_t;
60 #else
61 typedef signed char flex_int8_t;
62 typedef short int flex_int16_t;
63 typedef int flex_int32_t;
64 typedef unsigned char flex_uint8_t;
65 typedef unsigned short int flex_uint16_t;
66 typedef unsigned int flex_uint32_t;
67
68 /* Limits of integral types. */
69 #ifndef INT8_MIN
70 #define INT8_MIN (-128)
71 #endif
72 #ifndef INT16_MIN
73 #define INT16_MIN (-32767-1)
74 #endif
75 #ifndef INT32_MIN
76 #define INT32_MIN (-2147483647-1)
77 #endif
78 #ifndef INT8_MAX
79 #define INT8_MAX (127)
80 #endif
81 #ifndef INT16_MAX
82 #define INT16_MAX (32767)
83 #endif
84 #ifndef INT32_MAX
85 #define INT32_MAX (2147483647)
86 #endif
87 #ifndef UINT8_MAX
88 #define UINT8_MAX (255U)
89 #endif
90 #ifndef UINT16_MAX
91 #define UINT16_MAX (65535U)
92 #endif
93 #ifndef UINT32_MAX
94 #define UINT32_MAX (4294967295U)
95 #endif
96
97 #endif /* ! C99 */
98
99 #endif /* ! FLEXINT_H */
100
101 #ifdef __cplusplus
102
103 /* The "const" storage-class-modifier is valid. */
104 #define YY_USE_CONST
105
106 #else /* ! __cplusplus */
107
108 /* C99 requires __STDC__ to be defined as 1. */
109 #if defined (__STDC__)
110
111 #define YY_USE_CONST
112
113 #endif /* defined (__STDC__) */
114 #endif /* ! __cplusplus */
115
116 #ifdef YY_USE_CONST
117 #define yyconst const
118 #else
119 #define yyconst
120 #endif
121
122 /* Returned upon end-of-file. */
123 #define YY_NULL 0
124
125 /* Promotes a possibly negative, possibly signed char to an unsigned
126 * integer for use as an array index. If the signed char is negative,
127 * we want to instead treat it as an 8-bit unsigned char, hence the
128 * double cast.
129 */
130 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
131
132 /* Enter a start condition. This macro really ought to take a parameter,
133 * but we do it the disgusting crufty way forced on us by the ()-less
134 * definition of BEGIN.
135 */
136 #define BEGIN (yy_start) = 1 + 2 *
137
138 /* Translate the current start state into a value that can be later handed
139 * to BEGIN to return to the state. The YYSTATE alias is for lex
140 * compatibility.
141 */
142 #define YY_START (((yy_start) - 1) / 2)
143 #define YYSTATE YY_START
144
145 /* Action number for EOF rule of a given start state. */
146 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
147
148 /* Special action meaning "start processing a new file". */
149 #define YY_NEW_FILE yyrestart(yyin )
150
151 #define YY_END_OF_BUFFER_CHAR 0
152
153 /* Size of default input buffer. */
154 #ifndef YY_BUF_SIZE
155 #define YY_BUF_SIZE 16384
156 #endif
157
158 /* The state buf must be large enough to hold one state per character in the main buffer.
159 */
160 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
161
162 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
163 #define YY_TYPEDEF_YY_BUFFER_STATE
164 typedef struct yy_buffer_state *YY_BUFFER_STATE;
165 #endif
166
167 #ifndef YY_TYPEDEF_YY_SIZE_T
168 #define YY_TYPEDEF_YY_SIZE_T
169 typedef size_t yy_size_t;
170 #endif
171
172 extern yy_size_t yyleng;
173
174 extern FILE *yyin, *yyout;
175
176 #define EOB_ACT_CONTINUE_SCAN 0
177 #define EOB_ACT_END_OF_FILE 1
178 #define EOB_ACT_LAST_MATCH 2
179
180 #define YY_LESS_LINENO(n)
181
182 /* Return all but the first "n" matched characters back to the input stream. */
183 #define yyless(n) \
184 do \
185 { \
186 /* Undo effects of setting up yytext. */ \
187 int yyless_macro_arg = (n); \
188 YY_LESS_LINENO(yyless_macro_arg);\
189 *yy_cp = (yy_hold_char); \
190 YY_RESTORE_YY_MORE_OFFSET \
191 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
192 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
193 } \
194 while ( 0 )
195
196 #define unput(c) yyunput( c, (yytext_ptr) )
197
198 #ifndef YY_STRUCT_YY_BUFFER_STATE
199 #define YY_STRUCT_YY_BUFFER_STATE
200 struct yy_buffer_state
201 {
202 FILE *yy_input_file;
203
204 char *yy_ch_buf; /* input buffer */
205 char *yy_buf_pos; /* current position in input buffer */
206
207 /* Size of input buffer in bytes, not including room for EOB
208 * characters.
209 */
210 yy_size_t yy_buf_size;
211
212 /* Number of characters read into yy_ch_buf, not including EOB
213 * characters.
214 */
215 yy_size_t yy_n_chars;
216
217 /* Whether we "own" the buffer - i.e., we know we created it,
218 * and can realloc() it to grow it, and should free() it to
219 * delete it.
220 */
221 int yy_is_our_buffer;
222
223 /* Whether this is an "interactive" input source; if so, and
224 * if we're using stdio for input, then we want to use getc()
225 * instead of fread(), to make sure we stop fetching input after
226 * each newline.
227 */
228 int yy_is_interactive;
229
230 /* Whether we're considered to be at the beginning of a line.
231 * If so, '^' rules will be active on the next match, otherwise
232 * not.
233 */
234 int yy_at_bol;
235
236 int yy_bs_lineno; /**< The line count. */
237 int yy_bs_column; /**< The column count. */
238
239 /* Whether to try to fill the input buffer when we reach the
240 * end of it.
241 */
242 int yy_fill_buffer;
243
244 int yy_buffer_status;
245
246 #define YY_BUFFER_NEW 0
247 #define YY_BUFFER_NORMAL 1
248 /* When an EOF's been seen but there's still some text to process
249 * then we mark the buffer as YY_EOF_PENDING, to indicate that we
250 * shouldn't try reading from the input source any more. We might
251 * still have a bunch of tokens to match, though, because of
252 * possible backing-up.
253 *
254 * When we actually see the EOF, we change the status to "new"
255 * (via yyrestart()), so that the user can continue scanning by
256 * just pointing yyin at a new input file.
257 */
258 #define YY_BUFFER_EOF_PENDING 2
259
260 };
261 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
262
263 /* Stack of input buffers. */
264 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
265 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
266 static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
267
268 /* We provide macros for accessing buffer states in case in the
269 * future we want to put the buffer states in a more general
270 * "scanner state".
271 *
272 * Returns the top of the stack, or NULL.
273 */
274 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
275 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
276 : NULL)
277 #define yy_current_buffer YY_CURRENT_BUFFER
278
279 /* Same as previous macro, but useful when we know that the buffer stack is not
280 * NULL or when we need an lvalue. For internal use only.
281 */
282 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
283
284 /* yy_hold_char holds the character lost when yytext is formed. */
285 static char yy_hold_char;
286 static yy_size_t yy_n_chars; /* number of characters read into yy_ch_buf */
287 yy_size_t yyleng;
288
289 /* Points to current character in buffer. */
290 static char *yy_c_buf_p = (char *) 0;
291 static int yy_init = 0; /* whether we need to initialize */
292 static int yy_start = 0; /* start state number */
293
294 /* Flag which is used to allow yywrap()'s to do buffer switches
295 * instead of setting up a fresh yyin. A bit of a hack ...
296 */
297 static int yy_did_buffer_switch_on_eof;
298
299 void yyrestart (FILE *input_file );
300 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
301 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
302 void yy_delete_buffer (YY_BUFFER_STATE b );
303 void yy_flush_buffer (YY_BUFFER_STATE b );
304 void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
305 void yypop_buffer_state (void );
306
307 static void yyensure_buffer_stack (void );
308 static void yy_load_buffer_state (void );
309 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
310
311 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
312
313 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
314 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
315 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,yy_size_t len );
316
317 void *yyalloc (yy_size_t );
318 void *yyrealloc (void *,yy_size_t );
319 void yyfree (void * );
320
321 #define yy_new_buffer yy_create_buffer
322
323 #define yy_set_interactive(is_interactive) \
324 { \
325 if ( ! YY_CURRENT_BUFFER ){ \
326 yyensure_buffer_stack (); \
327 YY_CURRENT_BUFFER_LVALUE = \
328 yy_create_buffer(yyin,YY_BUF_SIZE ); \
329 } \
330 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
331 }
332
333 #define yy_set_bol(at_bol) \
334 { \
335 if ( ! YY_CURRENT_BUFFER ){\
336 yyensure_buffer_stack (); \
337 YY_CURRENT_BUFFER_LVALUE = \
338 yy_create_buffer(yyin,YY_BUF_SIZE ); \
339 } \
340 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
341 }
342
343 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
344
345 /* Begin user sect3 */
346
347 #define yywrap() 1
348 #define YY_SKIP_YYWRAP
349
350 typedef unsigned char YY_CHAR;
351
352 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
353
354 typedef int yy_state_type;
355
356 extern int yylineno;
357
358 int yylineno = 1;
359
360 extern char *yytext;
361 #define yytext_ptr yytext
362
363 static yy_state_type yy_get_previous_state (void );
364 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
365 static int yy_get_next_buffer (void );
366 static void yy_fatal_error (yyconst char msg[] ) __dead2;
367
368 /* Done after the current pattern has been matched and before the
369 * corresponding action - sets up yytext.
370 */
371 #define YY_DO_BEFORE_ACTION \
372 (yytext_ptr) = yy_bp; \
373 yyleng = (size_t) (yy_cp - yy_bp); \
374 (yy_hold_char) = *yy_cp; \
375 *yy_cp = '\0'; \
376 (yy_c_buf_p) = yy_cp;
377
378 #define YY_NUM_RULES 228
379 #define YY_END_OF_BUFFER 229
380 /* This struct is not used in this scanner,
381 but its presence is necessary. */
382 struct yy_trans_info
383 {
384 flex_int32_t yy_verify;
385 flex_int32_t yy_nxt;
386 };
387 static yyconst flex_int16_t yy_accept[2072] =
388 { 0,
389 227, 227, 3, 3, 6, 6, 0, 0, 229, 227,
390 225, 227, 227, 227, 227, 227, 227, 227, 227, 227,
391 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
392 227, 227, 227, 227, 227, 227, 3, 3, 3, 6,
393 6, 6, 228, 228, 227, 227, 226, 227, 225, 227,
394 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
395 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
396 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
397 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
398 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
399
400 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
401 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
402 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
403 227, 227, 3, 3, 3, 3, 6, 6, 6, 6,
404 0, 225, 227, 227, 227, 227, 227, 227, 227, 227,
405 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
406 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
407 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
408 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
409 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
410
411 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
412 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
413 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
414 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
415 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
416 227, 227, 52, 52, 227, 53, 53, 3, 6, 51,
417 51, 227, 227, 227, 227, 227, 227, 227, 227, 227,
418 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
419 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
420 227, 227, 227, 227, 20, 227, 227, 227, 227, 227,
421
422 227, 227, 227, 227, 227, 227, 39, 39, 227, 227,
423 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
424 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
425 227, 227, 227, 227, 227, 227, 227, 227, 227, 1,
426 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
427 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
428 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
429 227, 227, 227, 41, 41, 227, 227, 227, 227, 227,
430 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
431 227, 227, 227, 227, 227, 50, 50, 227, 227, 227,
432
433 227, 227, 227, 3, 6, 227, 227, 227, 227, 227,
434 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
435 227, 227, 227, 227, 227, 227, 227, 227, 227, 36,
436 36, 227, 227, 34, 34, 227, 227, 227, 227, 227,
437 49, 49, 227, 227, 33, 33, 227, 227, 227, 45,
438 45, 227, 227, 227, 227, 227, 227, 227, 227, 227,
439 227, 227, 37, 37, 227, 227, 227, 227, 227, 227,
440 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
441 227, 227, 227, 227, 4, 227, 227, 227, 227, 227,
442 227, 227, 227, 227, 227, 19, 227, 227, 227, 227,
443
444 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
445 227, 227, 227, 227, 227, 227, 227, 227, 38, 38,
446 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
447 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
448 227, 32, 32, 227, 227, 227, 227, 227, 227, 227,
449 227, 227, 227, 227, 227, 227, 227, 227, 227, 35,
450 35, 114, 114, 227, 3, 6, 227, 227, 227, 227,
451 227, 15, 15, 227, 227, 227, 227, 227, 227, 227,
452 216, 227, 227, 227, 227, 227, 227, 227, 227, 227,
453 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
454
455 227, 227, 227, 227, 227, 31, 31, 48, 48, 227,
456 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
457 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
458 227, 227, 227, 227, 227, 227, 227, 227, 227, 119,
459 119, 227, 227, 227, 227, 227, 227, 227, 227, 227,
460 227, 227, 227, 227, 8, 8, 227, 227, 227, 227,
461 227, 227, 227, 227, 227, 227, 227, 54, 54, 227,
462 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
463 13, 13, 227, 227, 227, 227, 227, 227, 227, 227,
464 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
465
466 227, 227, 227, 227, 227, 227, 227, 227, 227, 57,
467 57, 227, 227, 227, 227, 227, 227, 227, 227, 227,
468 227, 227, 3, 6, 227, 71, 71, 227, 227, 227,
469 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
470 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
471 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
472 227, 227, 227, 227, 227, 227, 227, 43, 43, 227,
473 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
474 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
475 227, 227, 227, 227, 55, 55, 227, 69, 69, 227,
476
477 227, 227, 227, 40, 40, 42, 42, 227, 227, 227,
478 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
479 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
480 227, 227, 227, 227, 227, 227, 227, 227, 227, 218,
481 218, 227, 227, 227, 227, 227, 227, 227, 11, 11,
482 227, 142, 142, 227, 227, 227, 25, 25, 227, 227,
483 227, 227, 70, 70, 227, 227, 227, 30, 30, 227,
484 227, 227, 227, 227, 227, 227, 61, 61, 227, 227,
485 227, 227, 227, 138, 138, 3, 2, 6, 227, 227,
486 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
487
488 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
489 227, 227, 227, 227, 227, 227, 227, 227, 178, 178,
490 227, 179, 179, 227, 227, 227, 227, 188, 188, 227,
491 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
492 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
493 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
494 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
495 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
496 227, 227, 7, 7, 227, 227, 227, 227, 227, 227,
497 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
498
499 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
500 227, 227, 227, 227, 227, 109, 109, 227, 227, 227,
501 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
502 227, 227, 227, 108, 108, 189, 189, 73, 73, 227,
503 227, 227, 227, 62, 62, 227, 6, 5, 227, 227,
504 227, 227, 72, 72, 227, 227, 227, 227, 227, 205,
505 205, 180, 180, 227, 227, 209, 209, 227, 227, 227,
506 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
507 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
508 227, 227, 227, 227, 227, 227, 227, 104, 104, 227,
509
510 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
511 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
512 227, 22, 22, 227, 227, 227, 227, 227, 227, 85,
513 85, 227, 227, 227, 81, 81, 227, 227, 227, 9,
514 9, 86, 86, 227, 227, 126, 126, 227, 227, 75,
515 75, 227, 227, 227, 204, 204, 227, 227, 227, 227,
516 227, 227, 227, 227, 121, 121, 227, 227, 227, 227,
517 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
518 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
519 227, 227, 227, 227, 227, 227, 227, 227, 14, 14,
520
521 227, 227, 227, 227, 227, 227, 227, 176, 176, 58,
522 58, 227, 227, 227, 227, 227, 115, 115, 227, 227,
523 227, 227, 227, 227, 227, 16, 16, 227, 227, 227,
524 227, 227, 227, 227, 227, 227, 227, 96, 96, 227,
525 227, 227, 227, 227, 227, 227, 227, 227, 63, 63,
526 227, 102, 102, 227, 227, 175, 175, 227, 227, 227,
527 227, 227, 217, 217, 227, 227, 89, 89, 227, 227,
528 227, 227, 227, 227, 227, 227, 199, 199, 227, 227,
529 139, 139, 193, 193, 227, 227, 227, 227, 194, 194,
530 227, 227, 227, 227, 227, 24, 24, 227, 227, 140,
531
532 140, 227, 227, 59, 59, 227, 44, 44, 227, 227,
533 82, 82, 227, 227, 227, 227, 227, 227, 227, 113,
534 113, 227, 203, 203, 227, 227, 227, 227, 227, 227,
535 227, 227, 47, 47, 227, 227, 227, 227, 227, 227,
536 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
537 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
538 227, 227, 227, 227, 227, 227, 120, 120, 227, 227,
539 227, 227, 227, 227, 227, 227, 227, 227, 227, 94,
540 94, 227, 227, 227, 227, 227, 227, 18, 18, 227,
541 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
542
543 207, 207, 227, 227, 227, 227, 227, 227, 227, 227,
544 227, 227, 227, 227, 177, 177, 125, 125, 227, 227,
545 56, 56, 227, 227, 90, 90, 227, 227, 227, 227,
546 227, 227, 68, 68, 227, 227, 227, 227, 227, 92,
547 92, 227, 227, 192, 192, 227, 227, 227, 227, 227,
548 21, 21, 227, 214, 214, 227, 227, 227, 83, 83,
549 227, 227, 80, 80, 87, 87, 88, 88, 227, 227,
550 227, 227, 227, 227, 224, 224, 227, 227, 227, 227,
551 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
552 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
553
554 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
555 227, 227, 227, 29, 29, 227, 227, 227, 103, 103,
556 227, 227, 118, 118, 46, 46, 227, 227, 227, 227,
557 227, 227, 124, 124, 227, 64, 64, 227, 93, 93,
558 227, 106, 106, 227, 227, 208, 208, 227, 227, 227,
559 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
560 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
561 100, 100, 191, 191, 227, 227, 227, 227, 227, 99,
562 99, 122, 122, 227, 227, 227, 23, 23, 227, 227,
563 79, 79, 78, 78, 227, 174, 174, 227, 227, 227,
564
565 227, 17, 17, 227, 227, 227, 227, 227, 227, 227,
566 101, 101, 227, 227, 227, 227, 227, 227, 227, 227,
567 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
568 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
569 227, 227, 227, 227, 26, 26, 227, 105, 105, 227,
570 227, 211, 211, 227, 127, 127, 227, 227, 10, 10,
571 227, 227, 227, 227, 227, 227, 227, 133, 133, 227,
572 227, 227, 227, 227, 227, 227, 227, 227, 215, 215,
573 12, 12, 227, 227, 227, 227, 198, 198, 227, 227,
574 227, 227, 74, 74, 227, 201, 201, 227, 98, 98,
575
576 227, 227, 227, 227, 227, 227, 227, 227, 141, 141,
577 144, 144, 227, 227, 67, 67, 227, 202, 202, 227,
578 227, 227, 227, 153, 153, 227, 227, 227, 151, 151,
579 227, 227, 227, 227, 227, 227, 227, 161, 161, 149,
580 149, 227, 227, 227, 227, 227, 227, 227, 227, 227,
581 158, 158, 227, 227, 227, 227, 213, 213, 227, 143,
582 143, 227, 227, 227, 227, 227, 227, 227, 186, 186,
583 227, 227, 227, 227, 227, 227, 136, 136, 227, 227,
584 227, 227, 212, 212, 227, 227, 220, 220, 227, 227,
585 227, 227, 227, 227, 227, 222, 222, 117, 117, 227,
586
587 183, 183, 227, 227, 60, 60, 227, 227, 227, 227,
588 65, 65, 227, 227, 227, 227, 227, 169, 169, 227,
589 165, 165, 227, 227, 164, 164, 227, 227, 154, 154,
590 227, 227, 227, 227, 227, 227, 148, 148, 227, 227,
591 227, 227, 227, 181, 181, 227, 223, 223, 110, 110,
592 227, 28, 28, 227, 227, 227, 227, 227, 227, 206,
593 206, 227, 227, 132, 132, 227, 227, 185, 185, 227,
594 227, 227, 227, 107, 107, 123, 123, 137, 137, 227,
595 227, 227, 184, 184, 182, 182, 227, 227, 116, 116,
596 227, 97, 97, 66, 66, 227, 227, 227, 112, 112,
597
598 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
599 227, 227, 227, 157, 157, 227, 227, 95, 95, 227,
600 227, 227, 227, 227, 130, 130, 210, 210, 227, 134,
601 134, 131, 131, 129, 129, 135, 135, 227, 227, 227,
602 227, 227, 227, 190, 190, 227, 197, 197, 227, 219,
603 219, 227, 227, 227, 227, 163, 163, 172, 172, 227,
604 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
605 227, 227, 227, 173, 173, 200, 200, 227, 227, 227,
606 227, 195, 195, 227, 227, 128, 128, 111, 111, 227,
607 227, 227, 227, 156, 156, 167, 167, 168, 168, 170,
608
609 170, 227, 159, 159, 147, 147, 227, 227, 227, 227,
610 145, 145, 227, 227, 76, 76, 227, 187, 187, 196,
611 196, 227, 227, 152, 152, 227, 227, 227, 227, 227,
612 227, 227, 227, 227, 221, 221, 84, 84, 227, 227,
613 227, 227, 227, 227, 227, 27, 27, 227, 77, 77,
614 227, 227, 150, 150, 227, 160, 160, 155, 155, 91,
615 91, 146, 146, 162, 162, 166, 166, 227, 171, 171,
616 0
617 } ;
618
619 static yyconst flex_int32_t yy_ec[256] =
620 { 0,
621 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
622 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
623 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
624 1, 2, 1, 1, 4, 5, 1, 1, 1, 1,
625 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
626 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
627 1, 1, 1, 1, 6, 7, 8, 9, 10, 11,
628 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
629 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
630 1, 1, 1, 32, 33, 1, 34, 35, 36, 37,
631
632 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
633 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
634 58, 59, 1, 1, 1, 1, 1, 1, 1, 1,
635 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
636 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
637 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
638 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
639 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
640 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
641 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
642
643 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
644 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
645 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
646 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
647 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
648 1, 1, 1, 1, 1
649 } ;
650
651 static yyconst flex_int32_t yy_meta[60] =
652 { 0,
653 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
654 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
655 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
656 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
657 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
658 1, 1, 1, 1, 1, 1, 1, 1, 1
659 } ;
660
661 static yyconst flex_int16_t yy_base[2409] =
662 { 0,
663 0, 32, 89, 90, 91, 92, 93, 94, 3780, 0,
664 3781, 3776, 0, 123, 89, 172, 129, 171, 113, 128,
665 180, 172, 82, 224, 187, 217, 229, 239, 178, 280,
666 325, 163, 98, 285, 118, 3776, 0, 4, 156, 0,
667 5, 186, 3781, 6, 0, 3774, 3781, 10, 0, 250,
668 227, 228, 222, 249, 236, 254, 299, 294, 271, 317,
669 277, 278, 291, 307, 297, 315, 323, 324, 335, 342,
670 331, 345, 334, 342, 338, 340, 355, 338, 340, 3774,
671 356, 370, 3742, 360, 351, 354, 359, 376, 368, 384,
672 414, 377, 389, 385, 379, 3741, 388, 394, 400, 399,
673
674 403, 393, 398, 414, 399, 434, 423, 429, 445, 442,
675 442, 454, 437, 433, 476, 467, 454, 460, 443, 444,
676 462, 461, 498, 473, 478, 474, 3771, 502, 482, 3770,
677 497, 3769, 0, 11, 0, 500, 0, 12, 0, 506,
678 16, 3781, 3768, 503, 493, 504, 507, 512, 514, 523,
679 510, 514, 514, 515, 534, 516, 3736, 526, 526, 552,
680 545, 557, 536, 537, 561, 3766, 554, 559, 544, 17,
681 571, 562, 566, 568, 574, 553, 577, 3734, 579, 3764,
682 568, 3763, 587, 624, 573, 567, 573, 595, 601, 606,
683 602, 611, 617, 3731, 618, 630, 610, 626, 628, 20,
684
685 630, 620, 677, 636, 638, 3730, 621, 647, 638, 666,
686 661, 663, 668, 3760, 677, 681, 674, 678, 3728, 671,
687 3727, 679, 667, 689, 675, 684, 686, 3757, 696, 693,
688 717, 704, 3756, 688, 694, 711, 724, 731, 729, 731,
689 734, 724, 741, 3724, 722, 3723, 3753, 728, 738, 734,
690 3752, 3751, 0, 3750, 722, 0, 3749, 735, 737, 0,
691 3748, 728, 747, 753, 746, 3747, 750, 754, 3715, 3714,
692 753, 742, 753, 3713, 790, 743, 770, 3743, 780, 774,
693 3742, 769, 786, 794, 792, 783, 3741, 795, 789, 3740,
694 800, 784, 790, 22, 3781, 3739, 789, 3738, 3737, 798,
695
696 795, 795, 3705, 812, 802, 823, 0, 3735, 815, 3734,
697 824, 832, 832, 835, 848, 838, 842, 844, 846, 836,
698 858, 3702, 843, 3701, 846, 841, 24, 3731, 858, 3699,
699 850, 846, 847, 850, 852, 849, 26, 3698, 28, 3781,
700 261, 852, 856, 890, 890, 899, 893, 892, 3728, 902,
701 898, 3696, 889, 897, 898, 3695, 3694, 3693, 3723, 3722,
702 896, 908, 909, 896, 915, 912, 917, 908, 912, 906,
703 3690, 903, 920, 0, 3720, 921, 909, 928, 927, 950,
704 944, 3719, 933, 3687, 954, 949, 943, 3717, 956, 963,
705 944, 957, 964, 963, 946, 0, 3716, 955, 963, 3684,
706
707 3714, 3713, 953, 954, 959, 975, 3712, 957, 959, 974,
708 3711, 979, 970, 981, 984, 970, 998, 992, 0, 1011,
709 1013, 1002, 1003, 1017, 1004, 1015, 1002, 1013, 1009, 0,
710 3710, 1015, 1005, 0, 3709, 1007, 1024, 1019, 1025, 1017,
711 0, 3708, 1029, 1019, 0, 3707, 1015, 1027, 1019, 0,
712 3706, 1026, 3705, 3704, 1037, 1043, 1043, 1049, 3703, 1063,
713 1067, 1062, 0, 3702, 1064, 1059, 1066, 1067, 1068, 1057,
714 1064, 1068, 1074, 1064, 1065, 1079, 1065, 1071, 1072, 3670,
715 1110, 3700, 1090, 105, 3781, 3699, 3698, 1083, 1092, 1085,
716 1096, 3697, 3696, 1095, 108, 3781, 1157, 3695, 1107, 1123,
717
718 1106, 1114, 1117, 1109, 1127, 1132, 1127, 1132, 3694, 1118,
719 1130, 1139, 3662, 1140, 1117, 1170, 1142, 1132, 0, 3692,
720 3691, 1143, 284, 1170, 1159, 1157, 1178, 1169, 1171, 3690,
721 1175, 3689, 1177, 1183, 3657, 1195, 1173, 3656, 1189, 3686,
722 1176, 0, 3685, 1181, 1194, 3684, 3652, 1182, 3682, 1188,
723 1205, 1207, 1210, 1200, 3681, 1211, 1213, 1208, 1228, 0,
724 3680, 0, 3679, 3678, 1223, 1214, 1213, 3677, 1226, 1220,
725 1234, 0, 3676, 1236, 1224, 1229, 1230, 1236, 1245, 1228,
726 0, 1232, 1233, 1241, 1243, 1247, 1247, 1256, 1265, 1266,
727 1262, 1273, 1269, 3644, 1279, 1265, 1272, 3674, 3642, 3672,
728
729 1284, 1280, 1276, 3640, 3670, 0, 3669, 0, 3668, 1280,
730 1274, 3636, 1294, 3666, 1296, 1289, 1295, 1300, 1300, 1292,
731 1292, 1295, 1297, 1295, 1303, 1310, 1306, 1310, 1322, 1322,
732 1328, 1321, 1337, 1340, 1324, 1339, 1329, 3665, 1325, 0,
733 3664, 3663, 1334, 1326, 1352, 1353, 3662, 3661, 1339, 1346,
734 1347, 1357, 1354, 1336, 0, 3660, 1350, 1353, 1376, 1379,
735 1366, 3628, 1374, 1377, 1380, 1394, 1391, 0, 3658, 3657,
736 1377, 1378, 1399, 1376, 1377, 1384, 1401, 1402, 1385, 1396,
737 0, 3656, 1405, 3655, 1400, 1395, 3623, 1416, 3653, 1393,
738 1397, 3652, 1414, 3651, 1407, 1415, 1427, 3650, 1424, 1429,
739
740 1420, 1427, 3649, 1440, 1446, 1437, 3648, 1448, 1436, 0,
741 3647, 1451, 3646, 3645, 3644, 1443, 3643, 1433, 1440, 3642,
742 1445, 3641, 110, 1457, 1458, 0, 3640, 1450, 1464, 1464,
743 3639, 1451, 1448, 1461, 1459, 1461, 3638, 3637, 1469, 1463,
744 3636, 3604, 1485, 1489, 1476, 1483, 3603, 3602, 1489, 3601,
745 1493, 1506, 1500, 1503, 1504, 3631, 1496, 3630, 1503, 1498,
746 1501, 1510, 3629, 1492, 1503, 1518, 1517, 0, 3628, 1521,
747 3627, 1518, 1517, 1519, 1530, 1529, 1530, 1535, 1524, 1523,
748 1530, 1528, 1551, 3595, 1538, 1555, 1540, 1552, 1544, 1565,
749 1548, 1568, 1570, 3625, 0, 3624, 1567, 0, 3623, 1551,
750
751 1569, 1563, 1572, 0, 3622, 0, 3621, 3620, 1569, 1567,
752 1577, 3619, 1570, 1585, 1571, 3618, 3617, 1586, 1583, 3616,
753 1579, 1595, 3615, 1592, 1594, 1593, 3614, 3613, 1588, 1594,
754 3581, 1611, 1599, 1606, 1605, 1606, 3611, 1604, 1612, 0,
755 3610, 1612, 1628, 1670, 1604, 3609, 1607, 1622, 0, 3608,
756 3607, 0, 3606, 1611, 1720, 1718, 0, 3605, 1722, 1714,
757 1709, 1709, 0, 3604, 3603, 3602, 1708, 0, 3601, 1708,
758 1728, 1715, 3600, 3599, 3598, 1715, 0, 3597, 3596, 1711,
759 1718, 3595, 1722, 0, 3594, 112, 3781, 114, 3562, 1725,
760 1735, 1735, 3592, 3591, 1726, 1728, 1732, 1733, 3590, 3589,
761
762 1741, 3557, 3587, 1746, 1736, 1738, 1725, 3586, 1742, 1779,
763 3585, 1762, 3584, 1769, 1759, 3583, 1781, 1768, 0, 3582,
764 1786, 0, 3581, 1782, 1775, 1793, 1776, 0, 3580, 3579,
765 1774, 1776, 1786, 1771, 3578, 1794, 1795, 1796, 1783, 3577,
766 1803, 1787, 3576, 3575, 1805, 1793, 1816, 1815, 3574, 1833,
767 1833, 1834, 1822, 1834, 3573, 1839, 1831, 3572, 3571, 1835,
768 1827, 1860, 3570, 3569, 1832, 1845, 3568, 3567, 1826, 1830,
769 1846, 3566, 3565, 1841, 1848, 3564, 1842, 3563, 3562, 3530,
770 3560, 1848, 0, 3559, 3558, 1855, 1855, 1853, 1856, 1840,
771 1853, 1858, 3557, 3556, 1880, 1877, 1889, 1880, 1882, 1893,
772
773 1885, 1897, 1898, 1887, 1895, 1900, 1891, 1895, 1901, 1910,
774 1940, 1902, 1896, 1913, 3555, 0, 3554, 1911, 1911, 3553,
775 1944, 1928, 1950, 1946, 1946, 1945, 1947, 3552, 3551, 1943,
776 1943, 3550, 1941, 0, 3549, 0, 3548, 0, 3547, 1956,
777 3546, 1946, 1947, 0, 3545, 1952, 150, 3781, 1950, 3544,
778 1962, 1958, 0, 3543, 3542, 1963, 1948, 1946, 1963, 0,
779 3541, 0, 3540, 1950, 1955, 0, 3539, 1957, 1981, 1995,
780 3538, 3537, 1990, 1987, 1991, 2006, 2005, 2004, 3536, 2001,
781 3535, 2002, 1996, 3534, 3533, 3532, 2004, 2009, 3531, 3530,
782 2006, 2008, 3529, 3528, 2008, 2001, 3496, 0, 3526, 2019,
783
784 3525, 2020, 2021, 3524, 2025, 2013, 3523, 3522, 2027, 3521,
785 2018, 2015, 3520, 3519, 2024, 2034, 2041, 2052, 3518, 2057,
786 3517, 0, 3516, 3515, 2044, 3514, 3513, 2063, 3512, 0,
787 3511, 2042, 2055, 3510, 0, 3509, 2070, 2063, 3508, 0,
788 3507, 0, 3506, 3505, 3504, 0, 3503, 2068, 3502, 0,
789 3501, 2062, 3500, 2052, 0, 3499, 2070, 2066, 2063, 3498,
790 2062, 2072, 2066, 3497, 0, 3496, 2066, 2058, 2073, 2076,
791 2075, 2069, 2077, 2078, 2081, 2108, 2104, 2116, 2100, 2119,
792 2116, 2121, 2106, 2111, 2123, 2116, 2109, 2124, 2124, 2115,
793 2109, 2126, 2121, 2120, 2138, 3495, 2135, 2132, 0, 3494,
794
795 3493, 2137, 2129, 2131, 3492, 2153, 2156, 0, 3491, 0,
796 3490, 3489, 3488, 3487, 2164, 2160, 0, 3486, 2170, 2171,
797 2152, 2164, 3485, 3484, 2156, 0, 3483, 3482, 2176, 3481,
798 2177, 3480, 2167, 2171, 3479, 2184, 3478, 0, 3477, 3445,
799 2173, 2164, 2174, 2175, 2172, 2182, 2183, 2193, 0, 3475,
800 2182, 0, 3474, 2183, 2192, 0, 3473, 3472, 3471, 2193,
801 2194, 3470, 0, 3469, 2192, 2217, 0, 3468, 3467, 2213,
802 2210, 2228, 3466, 3465, 3464, 2227, 0, 3463, 2220, 2219,
803 0, 3462, 0, 3461, 2222, 3460, 2231, 3459, 0, 3458,
804 3457, 3456, 2218, 2233, 2236, 0, 3455, 3454, 3453, 0,
805
806 3452, 2231, 3451, 0, 3450, 2228, 0, 3449, 3448, 3447,
807 0, 3446, 3445, 2226, 3444, 3443, 3442, 3441, 2218, 0,
808 3440, 2240, 0, 3439, 2237, 2235, 3438, 2233, 3437, 2245,
809 2248, 2241, 0, 3436, 2235, 2250, 2257, 3435, 2258, 2279,
810 2281, 2272, 2284, 2273, 2285, 2284, 2278, 2273, 2282, 2290,
811 2287, 2294, 2280, 2294, 2281, 2285, 2277, 2298, 2299, 2297,
812 2306, 2289, 2290, 2287, 2297, 2303, 0, 3434, 2315, 2338,
813 3433, 2329, 2339, 3432, 3431, 2331, 3430, 3429, 3428, 0,
814 3427, 2322, 2325, 3426, 2341, 3425, 3393, 0, 3423, 3422,
815 3421, 3420, 2335, 3419, 2345, 3418, 2345, 2336, 3417, 2349,
816
817 0, 3416, 2349, 2339, 3415, 2348, 2349, 2342, 2353, 2347,
818 2344, 2357, 3383, 3413, 0, 3412, 0, 3411, 3410, 2345,
819 0, 3409, 2360, 2360, 0, 3408, 2345, 3407, 2352, 2386,
820 2370, 3406, 0, 3405, 3404, 3403, 2391, 3402, 2393, 0,
821 3401, 3400, 3399, 0, 3398, 3397, 2394, 2396, 2400, 3396,
822 0, 3395, 2400, 0, 3394, 2399, 3393, 3392, 0, 3391,
823 2400, 3390, 0, 3389, 0, 3388, 0, 3387, 2401, 2402,
824 3386, 3385, 3384, 2393, 0, 3383, 2405, 3382, 2405, 3381,
825 2398, 2403, 3380, 2394, 2402, 3379, 2411, 2411, 2399, 3378,
826 2398, 2400, 2413, 2417, 2422, 2417, 2425, 3377, 3376, 2432,
827
828 2438, 2431, 2437, 3344, 2453, 2445, 2449, 2445, 3374, 3342,
829 2446, 2457, 2451, 0, 3372, 3371, 2459, 3370, 0, 3369,
830 3368, 3367, 0, 3366, 0, 3365, 2460, 3333, 3363, 2462,
831 3362, 2451, 0, 3361, 3360, 0, 3359, 2463, 0, 3358,
832 3357, 0, 3356, 2458, 2450, 0, 3355, 2461, 2473, 2454,
833 3354, 2471, 3353, 2465, 2466, 2467, 2472, 3352, 2490, 3351,
834 3350, 3349, 2492, 2492, 2493, 3348, 2489, 2495, 2505, 2515,
835 0, 3347, 0, 3346, 3345, 3344, 3343, 3342, 3341, 0,
836 3340, 0, 3339, 2513, 3338, 2506, 0, 3337, 2507, 3336,
837 0, 3335, 0, 3334, 2506, 0, 3333, 2503, 2508, 3332,
838
839 3331, 0, 3330, 2505, 3329, 3328, 2520, 3327, 2520, 2521,
840 0, 3326, 2518, 2516, 3325, 3324, 2518, 3323, 3322, 2512,
841 2527, 3321, 2513, 2515, 3320, 2517, 3319, 3318, 2535, 2534,
842 2549, 2551, 2547, 3317, 2542, 2565, 2555, 3316, 2549, 2558,
843 3315, 2568, 3314, 3313, 0, 3312, 3311, 0, 3310, 3309,
844 2559, 0, 3308, 2578, 0, 3307, 2555, 2572, 0, 3306,
845 2565, 3305, 2568, 2563, 3304, 2564, 2565, 0, 3303, 3302,
846 3301, 2572, 2582, 3300, 2573, 3299, 2587, 2564, 0, 3298,
847 0, 3297, 3296, 2584, 3295, 3294, 0, 3293, 3292, 2576,
848 2587, 2587, 0, 3291, 3290, 0, 3289, 3288, 0, 3287,
849
850 3286, 3285, 3284, 2608, 3283, 2619, 3282, 2601, 0, 3281,
851 0, 3280, 96, 101, 0, 103, 116, 0, 148, 2608,
852 2605, 2612, 152, 0, 154, 155, 2613, 156, 0, 158,
853 2617, 2610, 160, 2624, 2625, 163, 2623, 0, 193, 0,
854 197, 2624, 2629, 2617, 2635, 2617, 200, 2612, 2638, 229,
855 0, 244, 2626, 2629, 245, 258, 0, 265, 310, 0,
856 311, 400, 2629, 405, 2632, 2626, 2634, 2627, 0, 409,
857 463, 489, 600, 2644, 619, 620, 0, 622, 665, 706,
858 883, 1092, 0, 1093, 2645, 2655, 0, 1133, 2667, 1134,
859 1147, 1151, 2665, 2666, 2664, 0, 1152, 0, 1198, 1631,
860
861 0, 1641, 1642, 1644, 0, 1645, 2668, 1646, 1648, 1649,
862 0, 1654, 1657, 2661, 1663, 2677, 1665, 0, 1666, 2683,
863 0, 1667, 2670, 2667, 0, 1671, 1755, 1796, 0, 2581,
864 2685, 2669, 2672, 2687, 2680, 2688, 0, 2697, 2690, 2684,
865 2701, 2695, 2699, 0, 2704, 2705, 0, 2706, 0, 2714,
866 2687, 0, 2725, 2720, 2718, 2724, 2733, 2734, 2735, 0,
867 2736, 2737, 2738, 0, 2739, 2740, 2741, 0, 2742, 2743,
868 2737, 2739, 2738, 0, 2747, 0, 2748, 0, 2749, 2735,
869 2751, 2735, 0, 2753, 0, 2754, 2755, 2735, 0, 2759,
870 2761, 0, 2762, 0, 2763, 2764, 2765, 2766, 0, 2767,
871
872 2745, 2752, 2751, 2771, 2775, 2764, 2777, 2779, 2781, 2782,
873 2779, 2784, 2785, 0, 2787, 2780, 2779, 0, 2790, 2781,
874 2783, 2793, 2790, 2795, 0, 2799, 0, 2800, 2801, 0,
875 2802, 0, 2803, 0, 2805, 0, 2806, 2789, 2808, 2788,
876 2810, 2812, 2813, 0, 2814, 2787, 0, 2818, 2821, 0,
877 2823, 2824, 2813, 2826, 2819, 0, 2828, 0, 2829, 2807,
878 2831, 2832, 2833, 2834, 2821, 2838, 2839, 2836, 2829, 2834,
879 2821, 2845, 2824, 0, 2847, 0, 2848, 2833, 2850, 2851,
880 2852, 0, 2854, 2856, 2857, 0, 2859, 0, 2860, 2843,
881 2862, 2848, 2837, 0, 2866, 0, 2867, 0, 2871, 0,
882
883 2873, 2863, 0, 2876, 0, 2878, 2872, 2874, 2864, 2882,
884 0, 2883, 2876, 2885, 0, 2886, 2887, 0, 2888, 0,
885 2890, 2892, 2877, 0, 2895, 2881, 2897, 2881, 2899, 2900,
886 2901, 2902, 2904, 2905, 0, 2906, 0, 2910, 2911, 2913,
887 2914, 2905, 2916, 2917, 2918, 0, 2919, 2920, 0, 2921,
888 2923, 2925, 0, 2927, 2928, 0, 2929, 0, 2930, 0,
889 2931, 0, 2932, 0, 2933, 0, 2934, 2935, 0, 2936,
890 3781, 2945, 2947, 2949, 2951, 2938, 2953, 2939, 2940, 2941,
891 2942, 2943, 2955, 2956, 2957, 2958, 2959, 2960, 2961, 2962,
892 2963, 2964, 2965, 2966, 2967, 2968, 2969, 2970, 2971, 2972,
893
894 2973, 2974, 2975, 2976, 2977, 2978, 2979, 2980, 2981, 2982,
895 2983, 2984, 2985, 2986, 2987, 2988, 2989, 2990, 2991, 2992,
896 2993, 2994, 2995, 2996, 2997, 2998, 2999, 3000, 3001, 3002,
897 3003, 3004, 3005, 3006, 3007, 3008, 3009, 3010, 3011, 3012,
898 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022,
899 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031, 3032,
900 3033, 3034, 3035, 3036, 3037, 3038, 3039, 3040, 3041, 3042,
901 3043, 3044, 3045, 3046, 3047, 3048, 3049, 3050, 3051, 3052,
902 3053, 3054, 3055, 3056, 3057, 3058, 3059, 3060, 3061, 3062,
903 3063, 3064, 3065, 3066, 3067, 3068, 3069, 3070, 3071, 3072,
904
905 3073, 3074, 3075, 3076, 3077, 3078, 3079, 3080, 3081, 3082,
906 3083, 3084, 3085, 3086, 3087, 3088, 3089, 3090, 3091, 3092,
907 3093, 3094, 3095, 3096, 3097, 3098, 3099, 3100, 3101, 3102,
908 3103, 3104, 3105, 3106, 3107, 3108, 3109, 3110, 3111, 3112,
909 3113, 3114, 3115, 3116, 3117, 3118, 3119, 3120, 3121, 3122,
910 3123, 3124, 3125, 3126, 3127, 3128, 3129, 3130, 3131, 3132,
911 3133, 3134, 3135, 3136, 3137, 3138, 3139, 3140, 3141, 3142,
912 3143, 3144, 3145, 3146, 3147, 3148, 3149, 3150, 3151, 3152,
913 3153, 3154, 3155, 3156, 3157, 3158, 3159, 3160, 3161, 3162,
914 3163, 3164, 3165, 3166, 3167, 3168, 3169, 3170, 3171, 3172,
915
916 3173, 3174, 3175, 3176, 3177, 3178, 3179, 3180, 3181, 3182,
917 3183, 3184, 3185, 3186, 3187, 3188, 3189, 3190, 3191, 3192,
918 3193, 3194, 3195, 3196, 3197, 3198, 3199, 3200, 3201, 3202,
919 3203, 3204, 3205, 3206, 3207, 3208, 3209, 3210, 3211, 3212,
920 3213, 3214, 3215, 3216, 3217, 3218, 3219, 3220, 3221, 3222,
921 3223, 3224, 3225, 3226, 3227, 3228, 3229, 3230, 3231, 3232,
922 3233, 3234, 3235, 3236, 3237, 3238, 3239, 3240, 3241, 3242,
923 3243, 3244, 3245, 3246, 3247, 3248, 3249, 3250, 3251, 3252,
924 3253, 3254, 3255, 3256, 3257, 3258, 3259, 3260, 3261, 3262,
925 3263, 3264, 3265, 3266, 3267, 3268, 3269, 3270, 3271, 3272,
926
927 3273, 3274, 3275, 3276, 3277, 3278, 3279, 3280
928 } ;
929
930 static yyconst flex_int16_t yy_def[2409] =
931 { 0,
932 2072, 2071, 2073, 2073, 2074, 2074, 2075, 2075, 2071, 2076,
933 2071, 2077, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
934 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
935 2076, 2076, 2076, 2076, 2076, 2076, 2078, 2078, 2078, 2079,
936 2079, 2079, 2071, 2071, 2076, 2077, 2071, 2076, 2076, 2076,
937 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
938 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
939 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
940 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
941 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
942
943 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
944 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
945 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2080,
946 2076, 2081, 2078, 2078, 2078, 2078, 2079, 2079, 2079, 2079,
947 2071, 2071, 2082, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
948 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
949 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
950 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2083,
951 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
952 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
953
954 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
955 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
956 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2084, 2076, 2076,
957 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
958 2076, 2076, 2076, 2076, 2076, 2076, 2085, 2076, 2076, 2076,
959 2076, 2076, 2080, 2080, 2076, 2081, 2081, 2078, 2079, 2082,
960 2082, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
961 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2086, 2076, 2076,
962 2087, 2076, 2076, 2076, 2076, 2076, 2088, 2076, 2076, 2089,
963 2076, 2076, 2076, 2076, 2071, 2090, 2076, 2076, 2076, 2076,
964
965 2076, 2076, 2076, 2076, 2076, 2076, 2083, 2083, 2076, 2091,
966 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
967 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
968 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2071,
969 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
970 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2092, 2076,
971 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
972 2076, 2076, 2076, 2084, 2084, 2076, 2076, 2076, 2076, 2076,
973 2076, 2093, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
974 2076, 2076, 2076, 2076, 2076, 2085, 2085, 2076, 2076, 2076,
975
976 2094, 2095, 2076, 2078, 2079, 2076, 2076, 2076, 2076, 2076,
977 2096, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2097, 2076,
978 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2086,
979 2086, 2076, 2076, 2087, 2087, 2076, 2076, 2076, 2076, 2076,
980 2088, 2088, 2076, 2076, 2089, 2089, 2076, 2076, 2076, 2090,
981 2090, 2076, 2098, 2099, 2076, 2076, 2076, 2076, 2076, 2076,
982 2076, 2076, 2091, 2091, 2076, 2076, 2076, 2076, 2076, 2076,
983 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
984 2076, 2076, 2076, 2076, 2071, 2100, 2076, 2076, 2076, 2076,
985 2076, 2076, 2076, 2076, 2076, 2071, 2076, 2101, 2076, 2076,
986
987 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2102, 2076,
988 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2092, 2092,
989 2103, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
990 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
991 2076, 2093, 2093, 2076, 2076, 2076, 2076, 2076, 2104, 2076,
992 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2094,
993 2094, 2095, 2095, 2076, 2078, 2079, 2076, 2105, 2076, 2076,
994 2076, 2096, 2096, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
995 2097, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
996 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
997
998 2076, 2076, 2076, 2076, 2076, 2098, 2098, 2099, 2099, 2076,
999 2076, 2076, 2076, 2106, 2076, 2076, 2076, 2076, 2076, 2076,
1000 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1001 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2107, 2076, 2100,
1002 2100, 2108, 2076, 2076, 2076, 2076, 2109, 2110, 2076, 2076,
1003 2076, 2076, 2076, 2076, 2101, 2101, 2076, 2076, 2076, 2076,
1004 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2102, 2102, 2076,
1005 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1006 2103, 2103, 2076, 2111, 2076, 2076, 2076, 2076, 2076, 2076,
1007 2076, 2112, 2076, 2113, 2076, 2076, 2076, 2114, 2076, 2076,
1008
1009 2076, 2076, 2115, 2076, 2076, 2076, 2116, 2076, 2076, 2104,
1010 2104, 2076, 2076, 2076, 2076, 2076, 2117, 2076, 2076, 2076,
1011 2076, 2118, 2078, 2079, 2076, 2105, 2105, 2076, 2076, 2076,
1012 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1013 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1014 2076, 2076, 2076, 2076, 2076, 2119, 2076, 2120, 2076, 2076,
1015 2076, 2076, 2121, 2076, 2076, 2076, 2076, 2106, 2106, 2076,
1016 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1017 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1018 2076, 2076, 2076, 2076, 2107, 2107, 2076, 2108, 2108, 2076,
1019
1020 2076, 2076, 2076, 2109, 2109, 2110, 2110, 2076, 2076, 2076,
1021 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1022 2076, 2076, 2076, 2076, 2076, 2076, 2122, 2076, 2076, 2076,
1023 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2111,
1024 2111, 2076, 2076, 2071, 2076, 2123, 2076, 2076, 2112, 2112,
1025 2076, 2113, 2113, 2076, 2076, 2076, 2114, 2114, 2076, 2076,
1026 2076, 2076, 2115, 2115, 2076, 2076, 2076, 2116, 2116, 2076,
1027 2076, 2076, 2124, 2125, 2126, 2076, 2117, 2117, 2076, 2076,
1028 2076, 2127, 2076, 2118, 2118, 2078, 2071, 2079, 2076, 2076,
1029 2076, 2076, 2128, 2076, 2076, 2076, 2076, 2076, 2129, 2130,
1030
1031 2076, 2076, 2131, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1032 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2119, 2119,
1033 2076, 2120, 2120, 2076, 2076, 2076, 2076, 2121, 2121, 2076,
1034 2076, 2076, 2076, 2076, 2132, 2076, 2076, 2076, 2076, 2076,
1035 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1036 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2133, 2076, 2076,
1037 2076, 2076, 2076, 2134, 2076, 2076, 2076, 2135, 2076, 2076,
1038 2076, 2136, 2137, 2076, 2076, 2138, 2076, 2076, 2139, 2076,
1039 2076, 2076, 2122, 2122, 2140, 2076, 2076, 2076, 2076, 2076,
1040 2076, 2076, 2076, 2141, 2076, 2076, 2076, 2076, 2076, 2076,
1041
1042 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1043 2076, 2076, 2076, 2076, 2076, 2123, 2123, 2076, 2076, 2142,
1044 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2143, 2144, 2076,
1045 2076, 2076, 2076, 2124, 2124, 2125, 2125, 2126, 2126, 2076,
1046 2145, 2076, 2076, 2127, 2127, 2076, 2079, 2071, 2076, 2076,
1047 2076, 2076, 2128, 2128, 2146, 2076, 2076, 2076, 2076, 2129,
1048 2129, 2130, 2130, 2076, 2076, 2131, 2131, 2076, 2076, 2076,
1049 2076, 2147, 2076, 2076, 2076, 2076, 2076, 2076, 2148, 2076,
1050 2149, 2076, 2076, 2150, 2076, 2076, 2076, 2076, 2076, 2151,
1051 2076, 2076, 2152, 2076, 2076, 2076, 2076, 2132, 2132, 2076,
1052
1053 2076, 2076, 2076, 2153, 2076, 2076, 2154, 2155, 2076, 2076,
1054 2076, 2076, 2156, 2076, 2076, 2076, 2076, 2076, 2157, 2076,
1055 2076, 2158, 2158, 2159, 2076, 2076, 2160, 2076, 2161, 2162,
1056 2162, 2076, 2076, 2163, 2164, 2164, 2076, 2076, 2076, 2165,
1057 2165, 2166, 2166, 2076, 2076, 2167, 2167, 2076, 2168, 2169,
1058 2169, 2076, 2170, 2076, 2171, 2171, 2076, 2076, 2076, 2076,
1059 2076, 2076, 2076, 2172, 2173, 2173, 2076, 2076, 2076, 2076,
1060 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1061 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1062 2076, 2076, 2076, 2076, 2076, 2174, 2076, 2076, 2175, 2175,
1063
1064 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2176, 2176, 2177,
1065 2177, 2076, 2076, 2178, 2076, 2076, 2179, 2179, 2076, 2076,
1066 2076, 2076, 2180, 2076, 2076, 2181, 2181, 2076, 2076, 2076,
1067 2076, 2076, 2076, 2076, 2076, 2076, 2182, 2183, 2183, 2076,
1068 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2184, 2184,
1069 2076, 2185, 2185, 2076, 2076, 2186, 2186, 2187, 2188, 2076,
1070 2076, 2189, 2190, 2190, 2076, 2076, 2191, 2191, 2192, 2076,
1071 2076, 2076, 2076, 2193, 2076, 2076, 2194, 2194, 2076, 2076,
1072 2195, 2195, 2196, 2196, 2076, 2197, 2076, 2076, 2198, 2198,
1073 2199, 2076, 2076, 2076, 2076, 2200, 2200, 2076, 2201, 2202,
1074
1075 2202, 2076, 2203, 2204, 2204, 2076, 2205, 2205, 2076, 2076,
1076 2206, 2206, 2207, 2076, 2076, 2208, 2209, 2210, 2076, 2211,
1077 2211, 2076, 2212, 2212, 2076, 2076, 2076, 2076, 2213, 2076,
1078 2076, 2076, 2214, 2214, 2076, 2076, 2076, 2076, 2076, 2076,
1079 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1080 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1081 2076, 2076, 2076, 2076, 2076, 2076, 2215, 2215, 2076, 2076,
1082 2216, 2076, 2076, 2076, 2217, 2076, 2076, 2218, 2219, 2220,
1083 2220, 2076, 2076, 2076, 2076, 2076, 2076, 2221, 2221, 2222,
1084 2076, 2223, 2076, 2224, 2076, 2225, 2076, 2076, 2226, 2076,
1085
1086 2227, 2227, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1087 2076, 2076, 2076, 2076, 2228, 2228, 2229, 2229, 2076, 2076,
1088 2230, 2230, 2076, 2076, 2231, 2231, 2076, 2076, 2076, 2076,
1089 2076, 2232, 2233, 2233, 2234, 2076, 2076, 2076, 2076, 2235,
1090 2235, 2076, 2236, 2237, 2237, 2238, 2076, 2076, 2076, 2239,
1091 2240, 2240, 2076, 2241, 2241, 2076, 2242, 2243, 2244, 2244,
1092 2076, 2245, 2246, 2246, 2247, 2247, 2248, 2248, 2076, 2076,
1093 2076, 2076, 2249, 2076, 2250, 2250, 2076, 2076, 2076, 2076,
1094 2076, 2076, 2251, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1095 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1096
1097 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076,
1098 2076, 2076, 2076, 2252, 2252, 2076, 2076, 2253, 2254, 2254,
1099 2076, 2255, 2256, 2256, 2257, 2257, 2076, 2076, 2258, 2076,
1100 2259, 2076, 2260, 2260, 2261, 2262, 2262, 2076, 2263, 2263,
1101 2076, 2264, 2264, 2076, 2076, 2265, 2265, 2076, 2076, 2076,
1102 2266, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2267,
1103 2268, 2076, 2076, 2076, 2076, 2269, 2076, 2076, 2076, 2076,
1104 2270, 2270, 2271, 2271, 2272, 2076, 2273, 2076, 2274, 2275,
1105 2275, 2276, 2276, 2076, 2076, 2076, 2277, 2277, 2076, 2076,
1106 2278, 2278, 2279, 2279, 2076, 2280, 2280, 2076, 2076, 2281,
1107
1108 2282, 2283, 2283, 2076, 2076, 2284, 2076, 2285, 2076, 2076,
1109 2286, 2286, 2076, 2076, 2287, 2076, 2076, 2076, 2288, 2076,
1110 2076, 2076, 2076, 2076, 2076, 2076, 2289, 2290, 2076, 2076,
1111 2076, 2076, 2076, 2076, 2076, 2076, 2076, 2291, 2076, 2076,
1112 2076, 2076, 2292, 2076, 2293, 2293, 2294, 2295, 2295, 2076,
1113 2076, 2296, 2296, 2076, 2297, 2297, 2076, 2076, 2298, 2298,
1114 2076, 2299, 2076, 2076, 2076, 2076, 2076, 2300, 2300, 2076,
1115 2301, 2076, 2076, 2076, 2076, 2302, 2076, 2076, 2303, 2303,
1116 2304, 2304, 2305, 2076, 2076, 2076, 2306, 2306, 2076, 2076,
1117 2076, 2076, 2307, 2307, 2308, 2309, 2309, 2310, 2311, 2311,
1118
1119 2076, 2312, 2076, 2076, 2313, 2076, 2076, 2076, 2314, 2314,
1120 2315, 2315, 2076, 2316, 2317, 2317, 2076, 2318, 2318, 2076,
1121 2076, 2076, 2076, 2287, 2287, 2319, 2076, 2320, 2321, 2321,
1122 2076, 2076, 2322, 2076, 2076, 2323, 2076, 2324, 2324, 2325,
1123 2325, 2076, 2076, 2076, 2076, 2076, 2326, 2076, 2076, 2076,
1124 2327, 2327, 2076, 2076, 2328, 2076, 2329, 2329, 2330, 2331,
1125 2331, 2332, 2076, 2333, 2076, 2076, 2076, 2076, 2334, 2334,
1126 2076, 2076, 2335, 2076, 2076, 2336, 2337, 2337, 2076, 2076,
1127 2338, 2076, 2339, 2339, 2076, 2076, 2340, 2340, 2076, 2341,
1128 2342, 2343, 2076, 2076, 2076, 2344, 2344, 2345, 2345, 2346,
1129
1130 2347, 2347, 2348, 2076, 2349, 2349, 2076, 2350, 2076, 2351,
1131 2352, 2352, 2353, 2076, 2076, 2076, 2354, 2355, 2355, 2076,
1132 2356, 2356, 2076, 2076, 2357, 2357, 2076, 2076, 2358, 2358,
1133 2076, 2076, 2076, 2076, 2076, 2076, 2359, 2359, 2076, 2076,
1134 2360, 2076, 2076, 2361, 2361, 2362, 2363, 2363, 2332, 2332,
1135 2076, 2333, 2333, 2076, 2076, 2076, 2076, 2364, 2365, 2366,
1136 2366, 2076, 2367, 2368, 2368, 2369, 2370, 2371, 2371, 2372,
1137 2076, 2076, 2076, 2373, 2373, 2374, 2374, 2375, 2375, 2076,
1138 2076, 2076, 2346, 2346, 2348, 2348, 2376, 2076, 2350, 2350,
1139 2377, 2351, 2351, 2353, 2353, 2076, 2378, 2076, 2354, 2354,
1140
1141 2076, 2076, 2076, 2379, 2380, 2076, 2076, 2076, 2076, 2076,
1142 2076, 2076, 2076, 2360, 2360, 2076, 2076, 2362, 2362, 2076,
1143 2076, 2076, 2076, 2381, 2364, 2364, 2365, 2365, 2382, 2367,
1144 2367, 2369, 2369, 2370, 2370, 2372, 2372, 2076, 2076, 2076,
1145 2076, 2383, 2076, 2376, 2376, 2076, 2377, 2377, 2384, 2378,
1146 2378, 2385, 2076, 2076, 2076, 2379, 2379, 2380, 2380, 2076,
1147 2386, 2387, 2388, 2389, 2076, 2390, 2391, 2076, 2076, 2076,
1148 2076, 2392, 2076, 2381, 2381, 2382, 2382, 2076, 2393, 2076,
1149 2394, 2383, 2383, 2395, 2076, 2384, 2384, 2385, 2385, 2076,
1150 2396, 2076, 2076, 2386, 2386, 2387, 2387, 2388, 2388, 2389,
1151
1152 2389, 2076, 2390, 2390, 2391, 2391, 2076, 2076, 2076, 2076,
1153 2392, 2392, 2076, 2076, 2393, 2393, 2397, 2394, 2394, 2395,
1154 2395, 2398, 2076, 2396, 2396, 2076, 2076, 2076, 2076, 2076,
1155 2076, 2399, 2076, 2400, 2397, 2397, 2398, 2398, 2076, 2076,
1156 2401, 2076, 2402, 2403, 2404, 2399, 2399, 2405, 2400, 2400,
1157 2406, 2407, 2401, 2401, 2076, 2402, 2402, 2403, 2403, 2404,
1158 2404, 2405, 2405, 2406, 2406, 2407, 2407, 2408, 2408, 2408,
1159 0, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1160 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1161 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1162
1163 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1164 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1165 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1166 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1167 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1168 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1169 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1170 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1171 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1172 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1173
1174 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1175 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1176 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1177 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1178 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1179 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1180 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1181 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1182 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1183 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1184
1185 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1186 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1187 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1188 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1189 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1190 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1191 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1192 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1193 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1194 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1195
1196 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071
1197 } ;
1198
1199 static yyconst flex_int16_t yy_nxt[3841] =
1200 { 0,
1201 2071, 48, 11, 12, 49, 134, 138, 141, 135, 139,
1202 142, 48, 134, 138, 49, 135, 139, 141, 294, 295,
1203 142, 339, 340, 294, 295, 484, 485, 495, 496, 339,
1204 340, 13, 10, 10, 11, 12, 10, 14, 15, 16,
1205 17, 18, 19, 20, 21, 22, 10, 23, 24, 25,
1206 26, 27, 28, 10, 29, 30, 31, 32, 33, 34,
1207 35, 36, 10, 13, 10, 14, 15, 16, 17, 18,
1208 19, 20, 21, 22, 10, 23, 24, 25, 26, 27,
1209 28, 10, 29, 30, 31, 32, 33, 34, 35, 36,
1210 10, 11, 11, 11, 11, 11, 11, 1810, 57, 39,
1211
1212 85, 42, 1812, 125, 1716, 58, 484, 485, 59, 495,
1213 496, 886, 887, 886, 887, 1047, 1048, 1813, 72, 130,
1214 38, 38, 41, 41, 44, 44, 57, 39, 85, 42,
1215 50, 125, 73, 58, 65, 74, 59, 75, 66, 51,
1216 131, 52, 67, 53, 76, 54, 72, 55, 56, 1719,
1217 77, 1047, 1048, 1817, 68, 1725, 1819, 1822, 50, 1730,
1218 73, 1826, 65, 74, 1830, 75, 66, 51, 131, 52,
1219 67, 53, 76, 54, 136, 55, 56, 60, 77, 69,
1220 81, 123, 68, 106, 61, 78, 124, 107, 62, 70,
1221 82, 63, 91, 79, 1739, 83, 84, 64, 1741, 71,
1222
1223 80, 1838, 136, 108, 140, 60, 92, 69, 81, 123,
1224 93, 106, 61, 78, 124, 107, 62, 70, 82, 63,
1225 91, 79, 94, 83, 84, 64, 95, 71, 80, 86,
1226 1841, 108, 140, 87, 92, 98, 96, 88, 93, 97,
1227 145, 146, 147, 89, 102, 1752, 1845, 99, 103, 90,
1228 94, 143, 104, 100, 95, 101, 148, 86, 105, 1846,
1229 150, 87, 498, 98, 96, 88, 1758, 97, 145, 146,
1230 147, 89, 102, 149, 144, 99, 103, 90, 151, 156,
1231 104, 100, 160, 101, 148, 684, 105, 109, 150, 110,
1232 126, 161, 127, 499, 128, 111, 112, 113, 129, 114,
1233
1234 115, 149, 144, 154, 116, 117, 151, 156, 152, 162,
1235 160, 1848, 1761, 155, 165, 109, 685, 110, 126, 161,
1236 127, 153, 128, 111, 112, 113, 129, 114, 115, 163,
1237 164, 154, 116, 117, 118, 157, 152, 162, 119, 158,
1238 159, 155, 165, 166, 120, 167, 168, 121, 169, 153,
1239 170, 171, 172, 173, 122, 174, 175, 163, 164, 176,
1240 177, 178, 118, 157, 179, 181, 119, 158, 159, 185,
1241 186, 166, 120, 167, 168, 121, 169, 187, 170, 171,
1242 172, 173, 122, 174, 175, 188, 189, 176, 177, 178,
1243 190, 191, 179, 181, 182, 197, 183, 185, 186, 198,
1244
1245 200, 1850, 201, 199, 202, 187, 1853, 204, 205, 206,
1246 1770, 208, 209, 188, 189, 210, 207, 211, 190, 191,
1247 212, 213, 182, 197, 183, 192, 214, 198, 200, 193,
1248 201, 199, 202, 217, 194, 204, 205, 206, 195, 208,
1249 209, 215, 196, 210, 207, 211, 218, 219, 212, 213,
1250 220, 221, 216, 192, 214, 222, 226, 193, 227, 223,
1251 234, 217, 194, 224, 1858, 235, 195, 236, 237, 215,
1252 196, 238, 231, 225, 218, 219, 232, 228, 220, 221,
1253 216, 239, 244, 222, 226, 229, 227, 223, 234, 233,
1254 1859, 224, 230, 235, 245, 236, 237, 246, 250, 238,
1255
1256 231, 225, 255, 240, 232, 251, 241, 248, 258, 239,
1257 244, 242, 252, 229, 259, 249, 262, 233, 243, 263,
1258 230, 264, 245, 265, 266, 246, 250, 267, 268, 269,
1259 255, 240, 270, 251, 241, 248, 258, 271, 272, 242,
1260 252, 273, 259, 249, 262, 274, 243, 263, 276, 264,
1261 277, 265, 266, 278, 280, 267, 268, 269, 281, 285,
1262 270, 286, 287, 291, 292, 271, 272, 282, 293, 273,
1263 279, 298, 296, 274, 299, 283, 276, 300, 277, 288,
1264 303, 284, 280, 301, 304, 306, 309, 285, 297, 286,
1265 322, 291, 292, 289, 323, 282, 293, 324, 279, 298,
1266
1267 311, 1861, 299, 283, 325, 300, 302, 288, 303, 284,
1268 326, 301, 304, 306, 309, 327, 297, 328, 322, 312,
1269 1863, 1865, 323, 1778, 329, 324, 330, 332, 311, 313,
1270 314, 315, 325, 336, 316, 337, 317, 338, 326, 341,
1271 318, 333, 334, 327, 342, 328, 349, 350, 319, 320,
1272 352, 321, 329, 335, 330, 332, 353, 313, 314, 315,
1273 354, 336, 316, 337, 317, 338, 1866, 341, 318, 333,
1274 334, 355, 342, 356, 349, 350, 319, 320, 352, 321,
1275 357, 335, 343, 358, 353, 344, 360, 345, 354, 361,
1276 363, 364, 362, 366, 346, 368, 369, 347, 370, 355,
1277
1278 348, 356, 371, 372, 373, 376, 377, 1867, 357, 381,
1279 343, 358, 383, 344, 360, 345, 384, 361, 363, 364,
1280 362, 366, 346, 368, 369, 347, 370, 385, 348, 386,
1281 371, 372, 373, 376, 377, 378, 387, 381, 388, 379,
1282 383, 380, 389, 390, 384, 391, 392, 394, 398, 399,
1283 400, 403, 404, 405, 406, 385, 407, 386, 408, 410,
1284 412, 413, 416, 378, 387, 417, 388, 379, 418, 380,
1285 389, 390, 428, 391, 392, 394, 398, 399, 400, 403,
1286 404, 405, 406, 429, 407, 409, 408, 410, 412, 413,
1287 416, 432, 433, 417, 436, 437, 418, 420, 421, 438,
1288
1289 428, 439, 440, 422, 443, 423, 444, 447, 448, 449,
1290 424, 429, 425, 426, 452, 427, 455, 456, 457, 432,
1291 433, 459, 436, 437, 460, 420, 421, 438, 461, 439,
1292 440, 422, 443, 423, 444, 447, 448, 449, 424, 462,
1293 425, 426, 452, 427, 455, 456, 457, 465, 466, 459,
1294 467, 468, 460, 470, 471, 472, 461, 473, 474, 476,
1295 469, 480, 482, 477, 483, 487, 489, 462, 490, 491,
1296 492, 475, 493, 494, 500, 465, 466, 478, 467, 468,
1297 501, 470, 471, 472, 1869, 473, 474, 476, 469, 480,
1298 482, 477, 483, 487, 489, 502, 490, 491, 492, 475,
1299
1300 493, 494, 500, 504, 505, 478, 506, 507, 501, 510,
1301 511, 513, 503, 514, 515, 522, 508, 523, 524, 525,
1302 526, 527, 528, 502, 530, 531, 532, 534, 535, 536,
1303 529, 504, 505, 537, 506, 507, 538, 510, 511, 513,
1304 503, 514, 515, 522, 508, 523, 524, 525, 526, 527,
1305 528, 539, 530, 531, 532, 534, 535, 536, 529, 540,
1306 541, 537, 544, 546, 538, 547, 548, 550, 551, 552,
1307 553, 554, 555, 556, 557, 558, 564, 565, 566, 539,
1308 567, 569, 570, 571, 574, 575, 576, 540, 541, 577,
1309 544, 546, 578, 547, 548, 550, 551, 552, 553, 554,
1310
1311 555, 556, 557, 558, 564, 565, 566, 579, 567, 569,
1312 570, 571, 574, 575, 576, 580, 582, 577, 584, 585,
1313 578, 586, 587, 588, 589, 590, 591, 592, 593, 594,
1314 595, 596, 597, 598, 599, 579, 583, 600, 601, 602,
1315 603, 604, 605, 580, 582, 610, 584, 585, 611, 586,
1316 587, 588, 589, 590, 591, 592, 593, 594, 595, 596,
1317 597, 598, 599, 612, 583, 600, 601, 602, 603, 604,
1318 605, 613, 615, 610, 616, 617, 611, 618, 619, 620,
1319 621, 622, 623, 624, 625, 626, 627, 628, 629, 630,
1320 631, 612, 632, 1870, 1784, 639, 643, 644, 645, 613,
1321
1322 615, 646, 616, 617, 649, 618, 619, 620, 621, 622,
1323 623, 624, 625, 626, 627, 628, 629, 630, 631, 634,
1324 632, 635, 636, 639, 643, 644, 645, 657, 658, 646,
1325 659, 660, 649, 637, 1788, 1875, 661, 662, 663, 664,
1326 665, 666, 670, 671, 672, 674, 675, 634, 1877, 635,
1327 636, 679, 1879, 1797, 667, 657, 658, 680, 659, 660,
1328 683, 637, 650, 651, 661, 662, 663, 664, 665, 666,
1329 670, 671, 672, 674, 675, 676, 652, 686, 677, 679,
1330 653, 654, 667, 687, 688, 680, 689, 690, 683, 691,
1331 650, 651, 678, 693, 695, 696, 698, 700, 702, 1799,
1332
1333 704, 705, 706, 676, 652, 686, 677, 709, 653, 654,
1334 712, 687, 688, 713, 689, 690, 714, 691, 715, 716,
1335 678, 693, 695, 696, 718, 700, 702, 699, 704, 705,
1336 706, 719, 720, 721, 723, 709, 724, 725, 712, 728,
1337 729, 713, 731, 732, 714, 730, 715, 716, 733, 735,
1338 736, 737, 718, 738, 739, 740, 734, 741, 742, 719,
1339 720, 721, 723, 743, 724, 725, 744, 728, 729, 745,
1340 731, 732, 746, 730, 747, 748, 733, 735, 736, 737,
1341 749, 738, 739, 740, 750, 741, 742, 751, 753, 754,
1342 755, 743, 759, 760, 744, 761, 764, 745, 765, 767,
1343
1344 746, 770, 747, 748, 771, 772, 773, 774, 749, 775,
1345 776, 777, 750, 778, 779, 751, 753, 754, 755, 780,
1346 759, 760, 781, 761, 764, 782, 765, 767, 783, 770,
1347 784, 785, 771, 772, 773, 774, 786, 775, 776, 777,
1348 787, 778, 779, 788, 789, 791, 792, 780, 793, 794,
1349 781, 797, 800, 782, 790, 801, 783, 802, 784, 785,
1350 803, 808, 809, 810, 786, 815, 816, 811, 787, 817,
1351 813, 788, 789, 791, 792, 812, 793, 794, 814, 797,
1352 800, 818, 790, 801, 819, 802, 820, 822, 803, 808,
1353 809, 810, 823, 815, 816, 811, 824, 817, 813, 825,
1354
1355 826, 828, 829, 812, 830, 831, 814, 832, 833, 818,
1356 834, 835, 819, 836, 820, 822, 837, 842, 838, 843,
1357 823, 845, 847, 848, 824, 851, 854, 825, 826, 828,
1358 829, 855, 830, 831, 856, 832, 833, 839, 834, 835,
1359 859, 836, 860, 861, 837, 842, 838, 843, 862, 845,
1360 847, 848, 865, 851, 854, 866, 867, 870, 871, 855,
1361 872, 876, 856, 879, 880, 883, 888, 889, 859, 890,
1362 860, 861, 881, 891, 892, 894, 862, 895, 896, 897,
1363 865, 898, 901, 866, 867, 870, 871, 902, 872, 876,
1364 905, 879, 880, 883, 888, 889, 906, 890, 907, 908,
1365
1366 911, 891, 892, 894, 913, 895, 896, 897, 916, 898,
1367 901, 914, 917, 918, 921, 902, 924, 925, 905, 926,
1368 927, 930, 931, 932, 906, 933, 907, 908, 911, 934,
1369 915, 936, 913, 937, 938, 939, 916, 940, 941, 914,
1370 917, 918, 921, 942, 924, 925, 943, 926, 927, 930,
1371 931, 932, 944, 933, 945, 946, 947, 934, 915, 936,
1372 949, 937, 938, 939, 950, 940, 941, 951, 952, 953,
1373 954, 942, 955, 956, 943, 957, 959, 960, 961, 962,
1374 944, 963, 945, 946, 947, 965, 966, 967, 949, 969,
1375 970, 971, 950, 974, 975, 951, 952, 953, 954, 977,
1376
1377 955, 956, 978, 957, 959, 960, 961, 962, 980, 963,
1378 981, 982, 986, 965, 966, 967, 987, 969, 970, 971,
1379 989, 974, 975, 990, 991, 992, 993, 977, 995, 996,
1380 978, 997, 1884, 1015, 1018, 1019, 980, 1021, 981, 982,
1381 986, 998, 1802, 1886, 987, 1887, 1806, 1890, 989, 1891,
1382 1893, 990, 991, 992, 993, 1812, 995, 996, 1895, 997,
1383 999, 1015, 1018, 1019, 1897, 1021, 1900, 1819, 1822, 998,
1384 45, 45, 1826, 45, 45, 1000, 1001, 1002, 1003, 1004,
1385 1005, 1006, 1007, 1008, 45, 45, 1009, 1010, 45, 45,
1386 1011, 45, 45, 1012, 1013, 45, 45, 1014, 45, 45,
1387
1388 45, 45, 45, 1000, 1001, 1002, 1003, 1004, 1005, 1006,
1389 1007, 1008, 45, 45, 1009, 1010, 45, 45, 1011, 45,
1390 45, 1012, 1013, 45, 45, 1014, 45, 45, 45, 1022,
1391 1023, 1024, 1025, 1026, 1027, 1030, 1031, 1032, 1033, 1040,
1392 1042, 1043, 1046, 1050, 1051, 1052, 1056, 1057, 1058, 1059,
1393 1064, 1068, 1069, 1070, 1071, 1073, 1904, 1022, 1023, 1024,
1394 1025, 1026, 1027, 1030, 1031, 1032, 1033, 1040, 1042, 1043,
1395 1046, 1050, 1051, 1052, 1056, 1057, 1058, 1059, 1064, 1068,
1396 1069, 1070, 1071, 1073, 1074, 1075, 1080, 1082, 1083, 1085,
1397 1086, 1087, 1088, 1089, 1090, 1092, 1094, 1905, 1095, 1096,
1398
1399 1097, 1076, 1077, 1100, 1101, 1102, 1078, 1103, 1105, 1106,
1400 1109, 1110, 1074, 1075, 1080, 1082, 1083, 1085, 1086, 1087,
1401 1088, 1089, 1111, 1092, 1094, 1091, 1095, 1096, 1097, 1076,
1402 1077, 1100, 1101, 1102, 1078, 1103, 1105, 1106, 1109, 1110,
1403 1112, 1114, 1115, 1116, 1117, 1118, 1120, 1121, 1125, 1126,
1404 1111, 1132, 1133, 1137, 1138, 1139, 1144, 1145, 1148, 1154,
1405 1157, 1127, 1158, 1159, 1160, 1161, 1162, 1163, 1112, 1114,
1406 1115, 1116, 1117, 1118, 1120, 1121, 1125, 1126, 1128, 1132,
1407 1133, 1137, 1138, 1139, 1144, 1145, 1148, 1154, 1157, 1167,
1408 1158, 1159, 1160, 1161, 1162, 1163, 1168, 1169, 1170, 1171,
1409
1410 1173, 1174, 1175, 1181, 1182, 1172, 1128, 1178, 1183, 1176,
1411 1186, 1179, 1184, 1187, 1188, 1189, 1177, 1167, 1193, 1185,
1412 1180, 1194, 1195, 1197, 1168, 1169, 1170, 1171, 1173, 1174,
1413 1175, 1181, 1182, 1172, 1198, 1178, 1183, 1176, 1186, 1179,
1414 1184, 1187, 1188, 1189, 1177, 1190, 1193, 1185, 1180, 1194,
1415 1195, 1197, 1191, 1201, 1202, 1203, 1204, 1205, 1206, 1192,
1416 1207, 1212, 1198, 1213, 1215, 1216, 1219, 1220, 1221, 1222,
1417 1224, 1225, 1228, 1190, 1229, 1230, 1231, 1232, 1233, 1234,
1418 1191, 1201, 1202, 1203, 1204, 1205, 1206, 1192, 1207, 1212,
1419 1235, 1213, 1215, 1216, 1219, 1220, 1221, 1222, 1224, 1225,
1420
1421 1228, 1236, 1229, 1230, 1231, 1232, 1233, 1234, 1240, 1241,
1422 1242, 1243, 1245, 1248, 1251, 1254, 1255, 1246, 1235, 1244,
1423 1247, 1260, 1261, 1265, 1266, 1270, 1271, 1273, 1275, 1236,
1424 1276, 1279, 1280, 1285, 1287, 1288, 1240, 1241, 1242, 1243,
1425 1245, 1248, 1251, 1254, 1255, 1246, 1292, 1244, 1247, 1260,
1426 1261, 1265, 1266, 1270, 1271, 1273, 1275, 1293, 1276, 1279,
1427 1280, 1285, 1287, 1288, 1294, 1295, 1298, 1302, 1306, 1309,
1428 1310, 1313, 1315, 1319, 1292, 1322, 1325, 1326, 1327, 1328,
1429 1330, 1331, 1332, 1335, 1336, 1293, 1337, 1338, 1339, 1340,
1430 1341, 1342, 1294, 1295, 1298, 1302, 1306, 1309, 1310, 1343,
1431
1432 1315, 1319, 1314, 1322, 1325, 1326, 1327, 1328, 1330, 1331,
1433 1332, 1335, 1336, 1344, 1337, 1338, 1339, 1340, 1341, 1342,
1434 1345, 1348, 1346, 1350, 1351, 1352, 1353, 1343, 1354, 1347,
1435 1355, 1356, 1357, 1358, 1359, 1360, 1349, 1361, 1362, 1363,
1436 1364, 1344, 1365, 1366, 1369, 1370, 1372, 1373, 1345, 1348,
1437 1346, 1350, 1351, 1352, 1353, 1374, 1354, 1347, 1355, 1356,
1438 1357, 1358, 1359, 1360, 1349, 1361, 1362, 1363, 1364, 1376,
1439 1365, 1366, 1369, 1370, 1372, 1373, 1377, 1382, 1383, 1384,
1440 1385, 1386, 1387, 1374, 1391, 1393, 1395, 1397, 1398, 1400,
1441 1404, 1405, 1406, 1407, 1408, 1409, 1410, 1376, 1411, 1412,
1442
1443 1413, 1414, 1419, 1420, 1377, 1382, 1383, 1384, 1385, 1386,
1444 1387, 1423, 1391, 1393, 1395, 1397, 1398, 1400, 1404, 1405,
1445 1406, 1407, 1408, 1409, 1410, 1424, 1411, 1412, 1413, 1414,
1446 1419, 1420, 1427, 1428, 1429, 1436, 1437, 1438, 1439, 1423,
1447 1442, 1447, 1448, 1449, 1453, 1456, 1461, 1469, 1470, 1471,
1448 1472, 1430, 1474, 1424, 1477, 1431, 1478, 1479, 1480, 1481,
1449 1427, 1428, 1429, 1436, 1437, 1438, 1439, 1482, 1442, 1447,
1450 1448, 1449, 1453, 1456, 1461, 1469, 1470, 1471, 1472, 1430,
1451 1474, 1484, 1477, 1431, 1478, 1479, 1480, 1481, 1485, 1486,
1452 1487, 1488, 1489, 1490, 1491, 1482, 1492, 1493, 1494, 1495,
1453
1454 1496, 1497, 1498, 1499, 1500, 1501, 1502, 1503, 1504, 1484,
1455 1505, 1506, 1507, 1508, 1509, 1510, 1485, 1486, 1487, 1488,
1456 1489, 1490, 1491, 1511, 1492, 1493, 1494, 1495, 1496, 1497,
1457 1498, 1499, 1500, 1501, 1502, 1503, 1504, 1512, 1505, 1506,
1458 1507, 1508, 1509, 1510, 1513, 1516, 1517, 1521, 1527, 1528,
1459 1530, 1511, 1538, 1541, 1544, 1545, 1548, 1549, 1550, 1552,
1460 1553, 1554, 1555, 1556, 1557, 1512, 1558, 1562, 1563, 1564,
1461 1565, 1567, 1513, 1516, 1517, 1521, 1527, 1528, 1530, 1570,
1462 1538, 1541, 1544, 1545, 1548, 1549, 1550, 1552, 1553, 1554,
1463 1555, 1556, 1557, 1568, 1558, 1562, 1563, 1564, 1565, 1567,
1464
1465 1576, 1569, 1578, 1584, 1585, 1586, 1589, 1570, 1590, 1595,
1466 1598, 1599, 1604, 1605, 1607, 1609, 1610, 1613, 1614, 1616,
1467 1617, 1568, 1618, 1620, 1621, 1622, 1623, 1624, 1576, 1569,
1468 1578, 1584, 1585, 1586, 1589, 1625, 1590, 1595, 1598, 1599,
1469 1604, 1605, 1607, 1609, 1610, 1613, 1614, 1616, 1617, 1626,
1470 1618, 1620, 1621, 1622, 1623, 1624, 1629, 1630, 1631, 1632,
1471 1634, 1635, 1636, 1625, 1637, 1640, 1641, 1642, 1644, 1650,
1472 1654, 1657, 1661, 1658, 1663, 1664, 1665, 1626, 1666, 1667,
1473 1670, 1672, 1673, 1674, 1629, 1630, 1631, 1632, 1634, 1635,
1474 1636, 1675, 1637, 1640, 1641, 1642, 1644, 1650, 1654, 1657,
1475
1476 1661, 1658, 1663, 1664, 1665, 1684, 1666, 1667, 1670, 1672,
1477 1673, 1674, 1677, 1678, 1685, 1686, 1689, 1690, 1691, 1675,
1478 1692, 1701, 1703, 1704, 1706, 1707, 1708, 1713, 1717, 1720,
1479 1721, 1722, 1723, 1684, 1727, 1731, 1732, 1734, 1735, 1737,
1480 1677, 1678, 1685, 1686, 1689, 1690, 1691, 1742, 1692, 1701,
1481 1703, 1704, 1706, 1707, 1708, 1713, 1717, 1720, 1721, 1722,
1482 1723, 1743, 1727, 1731, 1732, 1734, 1735, 1737, 1744, 1745,
1483 1746, 1748, 1749, 1750, 1753, 1742, 1754, 1756, 1763, 1764,
1484 1766, 1767, 1830, 1768, 1771, 1772, 1774, 1775, 1779, 1743,
1485 1780, 1782, 1785, 1786, 1789, 1793, 1744, 1745, 1746, 1748,
1486
1487 1749, 1750, 1753, 1794, 1754, 1756, 1763, 1795, 1766, 1767,
1488 1765, 1768, 1771, 1772, 1774, 1775, 1779, 1804, 1780, 1782,
1489 1785, 1786, 1789, 1793, 1807, 1809, 1814, 1815, 1816, 1820,
1490 1823, 1794, 1824, 1827, 1828, 1795, 1831, 1832, 1833, 1834,
1491 1835, 1836, 1839, 1840, 1842, 1804, 1843, 1851, 1854, 1855,
1492 1856, 1857, 1807, 1809, 1814, 1815, 1816, 1820, 1823, 1862,
1493 1824, 1827, 1828, 1871, 1831, 1832, 1833, 1834, 1835, 1836,
1494 1839, 1840, 1842, 1872, 1843, 1851, 1854, 1855, 1856, 1857,
1495 1873, 1880, 1881, 1882, 1888, 1896, 1898, 1862, 1901, 1902,
1496 1903, 1871, 1906, 1907, 1908, 1909, 1910, 1911, 1838, 1912,
1497
1498 1913, 1872, 1915, 1916, 1917, 1845, 1919, 1848, 1873, 1880,
1499 1881, 1882, 1888, 1896, 1898, 1850, 1901, 1902, 1903, 1920,
1500 1906, 1907, 1908, 1909, 1910, 1911, 1853, 1912, 1913, 1921,
1501 1922, 1916, 1917, 1923, 1924, 1926, 1928, 1861, 1929, 1931,
1502 1865, 1933, 1935, 1869, 1937, 1938, 1939, 1940, 1875, 1877,
1503 1879, 1941, 1942, 1943, 1884, 1886, 1945, 1921, 1922, 1946,
1504 1890, 1923, 1948, 1893, 1895, 1949, 1951, 1952, 1900, 1953,
1505 1954, 1955, 1957, 1938, 1939, 1940, 1959, 1960, 1961, 1941,
1506 1962, 1943, 1963, 1964, 1965, 1966, 1967, 1946, 1915, 1968,
1507 1969, 1919, 1970, 1971, 1972, 1973, 1975, 1953, 1954, 1955,
1508
1509 1926, 1928, 1977, 1931, 1933, 1960, 1935, 1937, 1978, 1979,
1510 1980, 1981, 1965, 1983, 1984, 1945, 1985, 1968, 1969, 1948,
1511 1970, 1971, 1987, 1973, 1951, 1989, 1990, 1991, 1992, 1957,
1512 1959, 1993, 1995, 1997, 1999, 2001, 1978, 2002, 1980, 2004,
1513 2006, 2007, 2008, 2009, 1985, 2010, 2012, 2013, 1975, 1977,
1514 2014, 2016, 2017, 2019, 1990, 1983, 1992, 2021, 2022, 1993,
1515 1987, 1989, 2023, 2025, 2026, 2002, 2027, 1995, 1997, 2007,
1516 2008, 2009, 1999, 2010, 2001, 2013, 2028, 2004, 2014, 2006,
1517 2029, 2030, 2031, 2032, 2012, 2033, 2034, 2016, 2036, 2019,
1518 2023, 2021, 2026, 2038, 2027, 2039, 2025, 2040, 2041, 2042,
1519
1520 2043, 2044, 2045, 2047, 2028, 2048, 2050, 2036, 2029, 2030,
1521 2031, 2038, 2051, 2033, 2052, 2054, 2055, 2057, 2059, 2061,
1522 2047, 2063, 2050, 2039, 2065, 2040, 2067, 2042, 2054, 2068,
1523 2057, 2059, 2061, 2063, 2065, 2067, 2070, 2070, 45, 133,
1524 137, 253, 256, 260, 2055, 10, 10, 37, 37, 40,
1525 40, 43, 43, 46, 46, 307, 374, 396, 430, 434,
1526 441, 445, 450, 463, 519, 542, 560, 562, 572, 581,
1527 606, 608, 640, 655, 668, 681, 710, 726, 768, 795,
1528 798, 804, 806, 840, 849, 852, 857, 863, 868, 877,
1529 884, 919, 922, 928, 983, 1016, 1034, 1036, 1038, 1044,
1530
1531 1053, 1060, 1062, 1066, 1098, 1122, 1130, 1135, 1140, 1142,
1532 1146, 1150, 1155, 1165, 1199, 1208, 1210, 1217, 1226, 1238,
1533 1249, 1252, 1256, 1263, 1267, 1277, 1281, 1283, 1289, 1296,
1534 1122, 1300, 1304, 1307, 1130, 1311, 1135, 1140, 1142, 1146,
1535 1320, 1150, 1323, 1155, 1333, 1165, 1367, 1199, 1208, 1210,
1536 1380, 1217, 1388, 1226, 1401, 1238, 1249, 1252, 1256, 1415,
1537 1417, 1421, 1263, 1267, 1425, 1433, 1277, 1281, 1283, 1440,
1538 1289, 1444, 1296, 1451, 1300, 1454, 1304, 1307, 1311, 1459,
1539 1463, 1465, 1467, 1320, 1323, 1475, 1333, 1367, 1514, 1519,
1540 1523, 1525, 1380, 1388, 1533, 1536, 1539, 1542, 1546, 1401,
1541
1542 1415, 1417, 1421, 1425, 1571, 1433, 1573, 1440, 1580, 1444,
1543 1582, 1587, 1451, 1454, 1591, 1593, 1459, 1596, 1463, 1465,
1544 1467, 1602, 1475, 1611, 1514, 1645, 1519, 1648, 1523, 1525,
1545 1652, 1655, 1533, 1659, 1536, 1539, 1542, 1546, 1668, 1679,
1546 1681, 1687, 1571, 1573, 1693, 1696, 1699, 1580, 1582, 1587,
1547 1591, 1593, 1596, 1709, 1711, 1602, 1715, 1718, 1611, 1724,
1548 1729, 1738, 1740, 1751, 1757, 1645, 1760, 1648, 1652, 1655,
1549 1659, 1769, 1668, 1777, 1783, 1679, 1681, 1787, 1687, 1693,
1550 1796, 1696, 1798, 1699, 1801, 1805, 1709, 1711, 1811, 1715,
1551 1718, 1818, 1821, 1729, 1825, 1829, 1738, 1740, 1837, 1751,
1552
1553 1844, 1757, 1847, 1760, 1849, 1852, 1769, 1860, 1864, 1777,
1554 1868, 1783, 1787, 1874, 1876, 1878, 1796, 1798, 1883, 1801,
1555 1885, 1805, 1889, 1892, 1811, 1894, 1899, 1818, 1821, 1825,
1556 1829, 1837, 1914, 1844, 1918, 1847, 1925, 1927, 1860, 1930,
1557 1864, 1932, 1934, 1868, 1936, 1874, 1876, 1878, 1944, 1947,
1558 1950, 1956, 1958, 1974, 1976, 1982, 1986, 1988, 1994, 1996,
1559 1998, 2000, 2003, 2005, 2011, 2015, 2018, 2020, 2024, 2035,
1560 2037, 2046, 2049, 2053, 2056, 2058, 2060, 2062, 2064, 2066,
1561 2069, 1712, 1710, 1808, 1806, 1803, 1802, 1800, 1700, 1799,
1562 1697, 1797, 1694, 1792, 1688, 1791, 1790, 1788, 1682, 1680,
1563
1564 1784, 1781, 1778, 1776, 1669, 1773, 1770, 1660, 1656, 1653,
1565 1762, 1649, 1761, 1646, 1759, 1758, 1755, 1752, 1747, 1741,
1566 1739, 1736, 1733, 1730, 1728, 1726, 1725, 1612, 1719, 1716,
1567 1714, 1603, 1712, 1710, 1597, 1594, 1592, 1705, 1588, 1702,
1568 1583, 1581, 1700, 1698, 1697, 1695, 1694, 1574, 1572, 1688,
1569 1683, 1682, 1680, 1676, 1671, 1669, 1547, 1543, 1662, 1540,
1570 1537, 1660, 1534, 1656, 1653, 1651, 1526, 1524, 1649, 1647,
1571 1520, 1646, 1643, 1515, 1639, 1638, 1633, 1628, 1627, 1619,
1572 1615, 1612, 1608, 1606, 1476, 1603, 1601, 1600, 1468, 1466,
1573 1464, 1597, 1460, 1594, 1592, 1455, 1452, 1588, 1583, 1445,
1574
1575 1581, 1579, 1441, 1577, 1575, 1574, 1434, 1572, 1566, 1426,
1576 1422, 1561, 1418, 1416, 1560, 1559, 1551, 1402, 1547, 1543,
1577 1540, 1537, 1535, 1534, 1389, 1532, 1531, 1529, 1381, 1526,
1578 1524, 1522, 1520, 1518, 1515, 1368, 1483, 1334, 1476, 1473,
1579 1324, 1321, 1468, 1466, 1464, 1462, 1460, 1312, 1458, 1457,
1580 1308, 1305, 1455, 1301, 1452, 1450, 1297, 1446, 1445, 1290,
1581 1443, 1441, 1284, 1282, 1278, 1435, 1434, 1432, 1426, 1268,
1582 1264, 1422, 1418, 1416, 1257, 1253, 1250, 1403, 1239, 1402,
1583 1399, 1396, 1394, 1392, 1227, 1390, 1389, 1218, 1381, 1379,
1584 1378, 1211, 1209, 1375, 1371, 1200, 1368, 1166, 1334, 1329,
1585
1586 1156, 1324, 1151, 1321, 1147, 1318, 1317, 1143, 1141, 1316,
1587 1136, 1312, 1131, 1308, 1305, 1303, 1301, 1123, 1299, 1297,
1588 1291, 1290, 1286, 1284, 1282, 1278, 1274, 1099, 1272, 1269,
1589 1268, 1264, 1262, 1259, 1258, 1257, 1253, 1250, 1239, 1237,
1590 1067, 1063, 1061, 1227, 1054, 1223, 1045, 1218, 1039, 1037,
1591 1035, 1214, 1211, 1209, 1200, 1017, 1196, 1166, 1164, 1156,
1592 984, 1153, 1152, 1151, 1149, 1147, 1143, 1141, 1136, 1134,
1593 1131, 1129, 1124, 1123, 1119, 1113, 1108, 1107, 1104, 1099,
1594 1093, 929, 923, 920, 1084, 1081, 1079, 1072, 1067, 1065,
1595 1063, 1061, 1055, 1054, 1049, 885, 1045, 1041, 878, 1039,
1596
1597 1037, 1035, 869, 1029, 1028, 864, 858, 853, 1020, 850,
1598 1017, 841, 994, 988, 985, 984, 979, 976, 973, 972,
1599 968, 964, 807, 805, 799, 796, 958, 948, 935, 769,
1600 929, 923, 920, 912, 910, 909, 904, 903, 900, 899,
1601 893, 727, 885, 882, 878, 875, 874, 873, 711, 869,
1602 864, 858, 853, 850, 846, 844, 841, 682, 827, 669,
1603 821, 656, 807, 805, 799, 641, 796, 769, 766, 609,
1604 607, 763, 762, 758, 757, 756, 752, 573, 727, 722,
1605 563, 561, 717, 711, 708, 707, 543, 703, 701, 697,
1606 694, 692, 682, 520, 673, 669, 656, 648, 647, 642,
1607
1608 641, 638, 633, 464, 614, 609, 607, 451, 446, 442,
1609 435, 431, 573, 568, 563, 561, 559, 397, 549, 545,
1610 543, 375, 533, 521, 520, 518, 517, 516, 512, 509,
1611 497, 488, 486, 481, 479, 464, 308, 458, 454, 453,
1612 451, 446, 442, 435, 431, 419, 415, 414, 411, 261,
1613 257, 254, 402, 401, 397, 395, 393, 382, 375, 367,
1614 365, 359, 351, 331, 310, 308, 305, 290, 275, 261,
1615 257, 254, 247, 203, 184, 180, 47, 132, 47, 2071,
1616 9, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1617 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1618
1619 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1620 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1621 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
1622 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071
1623 } ;
1624
1625 static yyconst flex_int16_t yy_chk[3841] =
1626 { 0,
1627 0, 13, 1, 1, 13, 38, 41, 44, 38, 41,
1628 44, 48, 134, 138, 48, 134, 138, 141, 170, 170,
1629 141, 200, 200, 294, 294, 327, 327, 337, 337, 339,
1630 339, 1, 2, 2, 2, 2, 2, 2, 2, 2,
1631 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1632 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1633 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1634 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1635 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1636 2, 3, 4, 5, 6, 7, 8, 1713, 15, 4,
1637
1638 23, 6, 1714, 33, 1716, 15, 484, 484, 15, 495,
1639 495, 723, 723, 886, 886, 888, 888, 1717, 19, 35,
1640 3, 4, 5, 6, 7, 8, 15, 4, 23, 6,
1641 14, 33, 19, 15, 17, 19, 15, 20, 17, 14,
1642 35, 14, 17, 14, 20, 14, 19, 14, 14, 1719,
1643 20, 1047, 1047, 1723, 17, 1725, 1726, 1728, 14, 1730,
1644 19, 1733, 17, 19, 1736, 20, 17, 14, 35, 14,
1645 17, 14, 20, 14, 39, 14, 14, 16, 20, 18,
1646 22, 32, 17, 29, 16, 21, 32, 29, 16, 18,
1647 22, 16, 25, 21, 1739, 22, 22, 16, 1741, 18,
1648
1649 21, 1747, 39, 29, 42, 16, 25, 18, 22, 32,
1650 25, 29, 16, 21, 32, 29, 16, 18, 22, 16,
1651 25, 21, 26, 22, 22, 16, 26, 18, 21, 24,
1652 1750, 29, 42, 24, 25, 27, 26, 24, 25, 26,
1653 51, 52, 53, 24, 28, 1752, 1755, 27, 28, 24,
1654 26, 50, 28, 27, 26, 27, 54, 24, 28, 1756,
1655 55, 24, 341, 27, 26, 24, 1758, 26, 51, 52,
1656 53, 24, 28, 54, 50, 27, 28, 24, 56, 59,
1657 28, 27, 61, 27, 54, 523, 28, 30, 55, 30,
1658 34, 62, 34, 341, 34, 30, 30, 30, 34, 30,
1659
1660 30, 54, 50, 58, 30, 30, 56, 59, 57, 63,
1661 61, 1759, 1761, 58, 65, 30, 523, 30, 34, 62,
1662 34, 57, 34, 30, 30, 30, 34, 30, 30, 64,
1663 64, 58, 30, 30, 31, 60, 57, 63, 31, 60,
1664 60, 58, 65, 66, 31, 67, 68, 31, 69, 57,
1665 70, 71, 72, 73, 31, 74, 75, 64, 64, 76,
1666 77, 78, 31, 60, 79, 81, 31, 60, 60, 84,
1667 85, 66, 31, 67, 68, 31, 69, 86, 70, 71,
1668 72, 73, 31, 74, 75, 87, 88, 76, 77, 78,
1669 89, 90, 79, 81, 82, 92, 82, 84, 85, 92,
1670
1671 93, 1762, 94, 92, 95, 86, 1764, 97, 98, 99,
1672 1770, 100, 101, 87, 88, 102, 99, 102, 89, 90,
1673 103, 104, 82, 92, 82, 91, 105, 92, 93, 91,
1674 94, 92, 95, 107, 91, 97, 98, 99, 91, 100,
1675 101, 106, 91, 102, 99, 102, 107, 108, 103, 104,
1676 109, 110, 106, 91, 105, 111, 113, 91, 114, 112,
1677 117, 107, 91, 112, 1771, 118, 91, 119, 120, 106,
1678 91, 121, 116, 112, 107, 108, 116, 115, 109, 110,
1679 106, 122, 124, 111, 113, 115, 114, 112, 117, 116,
1680 1772, 112, 115, 118, 125, 119, 120, 126, 129, 121,
1681
1682 116, 112, 131, 123, 116, 129, 123, 128, 136, 122,
1683 124, 123, 129, 115, 140, 128, 144, 116, 123, 145,
1684 115, 146, 125, 147, 148, 126, 129, 149, 150, 151,
1685 131, 123, 152, 129, 123, 128, 136, 153, 154, 123,
1686 129, 155, 140, 128, 144, 156, 123, 145, 158, 146,
1687 159, 147, 148, 160, 161, 149, 150, 151, 162, 163,
1688 152, 164, 165, 167, 168, 153, 154, 162, 169, 155,
1689 160, 172, 171, 156, 173, 162, 158, 174, 159, 165,
1690 176, 162, 161, 175, 177, 179, 181, 163, 171, 164,
1691 185, 167, 168, 165, 186, 162, 169, 187, 160, 172,
1692
1693 183, 1773, 173, 162, 188, 174, 175, 165, 176, 162,
1694 189, 175, 177, 179, 181, 190, 171, 191, 185, 183,
1695 1775, 1776, 186, 1778, 192, 187, 193, 195, 183, 184,
1696 184, 184, 188, 197, 184, 198, 184, 199, 189, 201,
1697 184, 196, 196, 190, 202, 191, 204, 205, 184, 184,
1698 207, 184, 192, 196, 193, 195, 208, 184, 184, 184,
1699 209, 197, 184, 198, 184, 199, 1779, 201, 184, 196,
1700 196, 210, 202, 211, 204, 205, 184, 184, 207, 184,
1701 212, 196, 203, 213, 208, 203, 215, 203, 209, 216,
1702 217, 218, 216, 220, 203, 222, 223, 203, 224, 210,
1703
1704 203, 211, 225, 226, 227, 229, 230, 1780, 212, 232,
1705 203, 213, 234, 203, 215, 203, 235, 216, 217, 218,
1706 216, 220, 203, 222, 223, 203, 224, 236, 203, 237,
1707 225, 226, 227, 229, 230, 231, 238, 232, 239, 231,
1708 234, 231, 240, 241, 235, 242, 243, 245, 248, 249,
1709 250, 255, 258, 259, 262, 236, 263, 237, 264, 265,
1710 267, 268, 271, 231, 238, 272, 239, 231, 273, 231,
1711 240, 241, 276, 242, 243, 245, 248, 249, 250, 255,
1712 258, 259, 262, 277, 263, 264, 264, 265, 267, 268,
1713 271, 279, 280, 272, 282, 283, 273, 275, 275, 284,
1714
1715 276, 285, 286, 275, 288, 275, 289, 291, 292, 293,
1716 275, 277, 275, 275, 297, 275, 300, 301, 302, 279,
1717 280, 304, 282, 283, 305, 275, 275, 284, 306, 285,
1718 286, 275, 288, 275, 289, 291, 292, 293, 275, 309,
1719 275, 275, 297, 275, 300, 301, 302, 311, 312, 304,
1720 313, 314, 305, 315, 316, 317, 306, 318, 319, 320,
1721 314, 323, 325, 321, 326, 329, 331, 309, 332, 333,
1722 334, 319, 335, 336, 342, 311, 312, 321, 313, 314,
1723 343, 315, 316, 317, 1781, 318, 319, 320, 314, 323,
1724 325, 321, 326, 329, 331, 344, 332, 333, 334, 319,
1725
1726 335, 336, 342, 345, 346, 321, 347, 348, 343, 350,
1727 351, 353, 344, 354, 355, 361, 348, 362, 363, 364,
1728 365, 366, 367, 344, 368, 369, 370, 372, 373, 376,
1729 367, 345, 346, 377, 347, 348, 378, 350, 351, 353,
1730 344, 354, 355, 361, 348, 362, 363, 364, 365, 366,
1731 367, 379, 368, 369, 370, 372, 373, 376, 367, 380,
1732 381, 377, 383, 385, 378, 386, 387, 389, 390, 391,
1733 392, 393, 394, 395, 398, 399, 403, 404, 405, 379,
1734 406, 408, 409, 410, 412, 413, 414, 380, 381, 415,
1735 383, 385, 416, 386, 387, 389, 390, 391, 392, 393,
1736
1737 394, 395, 398, 399, 403, 404, 405, 417, 406, 408,
1738 409, 410, 412, 413, 414, 418, 420, 415, 421, 422,
1739 416, 423, 424, 425, 426, 427, 428, 429, 432, 433,
1740 436, 437, 438, 439, 440, 417, 420, 443, 444, 447,
1741 448, 449, 452, 418, 420, 455, 421, 422, 456, 423,
1742 424, 425, 426, 427, 428, 429, 432, 433, 436, 437,
1743 438, 439, 440, 457, 420, 443, 444, 447, 448, 449,
1744 452, 458, 460, 455, 461, 462, 456, 465, 466, 467,
1745 468, 469, 470, 471, 472, 473, 474, 475, 476, 477,
1746 478, 457, 479, 1782, 1784, 483, 488, 489, 490, 458,
1747
1748 460, 491, 461, 462, 494, 465, 466, 467, 468, 469,
1749 470, 471, 472, 473, 474, 475, 476, 477, 478, 481,
1750 479, 481, 481, 483, 488, 489, 490, 499, 500, 491,
1751 501, 502, 494, 481, 1788, 1790, 503, 504, 505, 506,
1752 507, 508, 510, 511, 512, 514, 515, 481, 1791, 481,
1753 481, 517, 1792, 1797, 508, 499, 500, 518, 501, 502,
1754 522, 481, 497, 497, 503, 504, 505, 506, 507, 508,
1755 510, 511, 512, 514, 515, 516, 497, 524, 516, 517,
1756 497, 497, 508, 525, 526, 518, 527, 528, 522, 529,
1757 497, 497, 516, 531, 533, 534, 536, 537, 539, 1799,
1758
1759 541, 544, 545, 516, 497, 524, 516, 548, 497, 497,
1760 550, 525, 526, 551, 527, 528, 552, 529, 553, 554,
1761 516, 531, 533, 534, 556, 537, 539, 536, 541, 544,
1762 545, 557, 558, 559, 565, 548, 566, 567, 550, 569,
1763 570, 551, 571, 574, 552, 570, 553, 554, 575, 576,
1764 577, 578, 556, 579, 580, 582, 575, 583, 584, 557,
1765 558, 559, 565, 585, 566, 567, 586, 569, 570, 587,
1766 571, 574, 588, 570, 589, 590, 575, 576, 577, 578,
1767 591, 579, 580, 582, 592, 583, 584, 593, 595, 596,
1768 597, 585, 601, 602, 586, 603, 610, 587, 611, 613,
1769
1770 588, 615, 589, 590, 616, 617, 618, 619, 591, 620,
1771 621, 622, 592, 623, 624, 593, 595, 596, 597, 625,
1772 601, 602, 626, 603, 610, 627, 611, 613, 628, 615,
1773 629, 630, 616, 617, 618, 619, 631, 620, 621, 622,
1774 632, 623, 624, 633, 633, 634, 635, 625, 636, 637,
1775 626, 639, 643, 627, 633, 644, 628, 645, 629, 630,
1776 646, 649, 650, 651, 631, 654, 657, 652, 632, 658,
1777 653, 633, 633, 634, 635, 652, 636, 637, 653, 639,
1778 643, 659, 633, 644, 660, 645, 661, 663, 646, 649,
1779 650, 651, 664, 654, 657, 652, 665, 658, 653, 666,
1780
1781 667, 671, 672, 652, 673, 674, 653, 675, 676, 659,
1782 677, 678, 660, 679, 661, 663, 680, 685, 683, 686,
1783 664, 688, 690, 691, 665, 693, 695, 666, 667, 671,
1784 672, 696, 673, 674, 697, 675, 676, 683, 677, 678,
1785 699, 679, 700, 701, 680, 685, 683, 686, 702, 688,
1786 690, 691, 704, 693, 695, 705, 706, 708, 709, 696,
1787 712, 716, 697, 718, 719, 721, 724, 725, 699, 728,
1788 700, 701, 719, 729, 730, 732, 702, 733, 734, 735,
1789 704, 736, 739, 705, 706, 708, 709, 740, 712, 716,
1790 743, 718, 719, 721, 724, 725, 744, 728, 745, 746,
1791
1792 749, 729, 730, 732, 751, 733, 734, 735, 753, 736,
1793 739, 752, 754, 755, 757, 740, 759, 760, 743, 761,
1794 762, 764, 765, 766, 744, 767, 745, 746, 749, 770,
1795 752, 772, 751, 773, 774, 775, 753, 776, 777, 752,
1796 754, 755, 757, 778, 759, 760, 779, 761, 762, 764,
1797 765, 766, 780, 767, 781, 782, 783, 770, 752, 772,
1798 785, 773, 774, 775, 786, 776, 777, 787, 788, 789,
1799 790, 778, 791, 792, 779, 793, 797, 800, 801, 802,
1800 780, 803, 781, 782, 783, 809, 810, 811, 785, 813,
1801 814, 815, 786, 818, 819, 787, 788, 789, 790, 821,
1802
1803 791, 792, 822, 793, 797, 800, 801, 802, 824, 803,
1804 825, 826, 829, 809, 810, 811, 830, 813, 814, 815,
1805 832, 818, 819, 833, 834, 835, 836, 821, 838, 839,
1806 822, 842, 1800, 845, 847, 848, 824, 854, 825, 826,
1807 829, 843, 1802, 1803, 830, 1804, 1806, 1808, 832, 1809,
1808 1810, 833, 834, 835, 836, 1812, 838, 839, 1813, 842,
1809 843, 845, 847, 848, 1815, 854, 1817, 1819, 1822, 843,
1810 844, 844, 1826, 844, 844, 844, 844, 844, 844, 844,
1811 844, 844, 844, 844, 844, 844, 844, 844, 844, 844,
1812 844, 844, 844, 844, 844, 844, 844, 844, 844, 844,
1813
1814 844, 844, 844, 844, 844, 844, 844, 844, 844, 844,
1815 844, 844, 844, 844, 844, 844, 844, 844, 844, 844,
1816 844, 844, 844, 844, 844, 844, 844, 844, 844, 855,
1817 856, 859, 860, 861, 862, 867, 870, 871, 872, 876,
1818 880, 881, 883, 890, 891, 892, 895, 896, 897, 898,
1819 901, 904, 905, 906, 907, 909, 1827, 855, 856, 859,
1820 860, 861, 862, 867, 870, 871, 872, 876, 880, 881,
1821 883, 890, 891, 892, 895, 896, 897, 898, 901, 904,
1822 905, 906, 907, 909, 910, 910, 912, 914, 915, 917,
1823 918, 921, 924, 925, 926, 927, 931, 1828, 932, 933,
1824
1825 934, 910, 910, 936, 937, 938, 910, 939, 941, 942,
1826 945, 946, 910, 910, 912, 914, 915, 917, 918, 921,
1827 924, 925, 947, 927, 931, 926, 932, 933, 934, 910,
1828 910, 936, 937, 938, 910, 939, 941, 942, 945, 946,
1829 948, 950, 951, 952, 953, 954, 956, 957, 960, 961,
1830 947, 965, 966, 969, 970, 971, 974, 975, 977, 982,
1831 986, 962, 987, 988, 989, 990, 991, 992, 948, 950,
1832 951, 952, 953, 954, 956, 957, 960, 961, 962, 965,
1833 966, 969, 970, 971, 974, 975, 977, 982, 986, 995,
1834 987, 988, 989, 990, 991, 992, 996, 997, 998, 999,
1835
1836 1000, 1001, 1002, 1004, 1005, 999, 962, 1003, 1005, 1002,
1837 1007, 1003, 1006, 1008, 1009, 1010, 1002, 995, 1012, 1006,
1838 1003, 1013, 1014, 1018, 996, 997, 998, 999, 1000, 1001,
1839 1002, 1004, 1005, 999, 1019, 1003, 1005, 1002, 1007, 1003,
1840 1006, 1008, 1009, 1010, 1002, 1011, 1012, 1006, 1003, 1013,
1841 1014, 1018, 1011, 1021, 1022, 1023, 1024, 1025, 1026, 1011,
1842 1027, 1030, 1019, 1031, 1033, 1040, 1042, 1043, 1046, 1049,
1843 1051, 1052, 1056, 1011, 1057, 1058, 1059, 1064, 1065, 1068,
1844 1011, 1021, 1022, 1023, 1024, 1025, 1026, 1011, 1027, 1030,
1845 1069, 1031, 1033, 1040, 1042, 1043, 1046, 1049, 1051, 1052,
1846
1847 1056, 1070, 1057, 1058, 1059, 1064, 1065, 1068, 1073, 1074,
1848 1075, 1076, 1077, 1078, 1080, 1082, 1083, 1077, 1069, 1076,
1849 1077, 1087, 1088, 1091, 1092, 1095, 1096, 1100, 1102, 1070,
1850 1103, 1105, 1106, 1109, 1111, 1112, 1073, 1074, 1075, 1076,
1851 1077, 1078, 1080, 1082, 1083, 1077, 1115, 1076, 1077, 1087,
1852 1088, 1091, 1092, 1095, 1096, 1100, 1102, 1116, 1103, 1105,
1853 1106, 1109, 1111, 1112, 1117, 1118, 1120, 1125, 1128, 1132,
1854 1133, 1137, 1138, 1148, 1115, 1152, 1154, 1157, 1158, 1159,
1855 1161, 1162, 1163, 1167, 1168, 1116, 1169, 1170, 1171, 1172,
1856 1173, 1174, 1117, 1118, 1120, 1125, 1128, 1132, 1133, 1175,
1857
1858 1138, 1148, 1137, 1152, 1154, 1157, 1158, 1159, 1161, 1162,
1859 1163, 1167, 1168, 1176, 1169, 1170, 1171, 1172, 1173, 1174,
1860 1177, 1178, 1177, 1179, 1180, 1181, 1182, 1175, 1183, 1177,
1861 1184, 1185, 1186, 1187, 1188, 1189, 1178, 1190, 1191, 1192,
1862 1193, 1176, 1194, 1195, 1197, 1198, 1202, 1203, 1177, 1178,
1863 1177, 1179, 1180, 1181, 1182, 1204, 1183, 1177, 1184, 1185,
1864 1186, 1187, 1188, 1189, 1178, 1190, 1191, 1192, 1193, 1206,
1865 1194, 1195, 1197, 1198, 1202, 1203, 1207, 1215, 1216, 1219,
1866 1220, 1221, 1222, 1204, 1225, 1229, 1231, 1233, 1234, 1236,
1867 1241, 1242, 1243, 1244, 1245, 1246, 1247, 1206, 1248, 1251,
1868
1869 1254, 1255, 1260, 1261, 1207, 1215, 1216, 1219, 1220, 1221,
1870 1222, 1265, 1225, 1229, 1231, 1233, 1234, 1236, 1241, 1242,
1871 1243, 1244, 1245, 1246, 1247, 1266, 1248, 1251, 1254, 1255,
1872 1260, 1261, 1270, 1271, 1272, 1276, 1279, 1280, 1285, 1265,
1873 1287, 1293, 1294, 1295, 1302, 1306, 1314, 1319, 1322, 1325,
1874 1326, 1272, 1328, 1266, 1330, 1272, 1331, 1332, 1335, 1336,
1875 1270, 1271, 1272, 1276, 1279, 1280, 1285, 1337, 1287, 1293,
1876 1294, 1295, 1302, 1306, 1314, 1319, 1322, 1325, 1326, 1272,
1877 1328, 1339, 1330, 1272, 1331, 1332, 1335, 1336, 1340, 1341,
1878 1342, 1343, 1344, 1345, 1346, 1337, 1347, 1348, 1349, 1350,
1879
1880 1351, 1352, 1353, 1354, 1355, 1356, 1357, 1358, 1359, 1339,
1881 1360, 1361, 1362, 1363, 1364, 1365, 1340, 1341, 1342, 1343,
1882 1344, 1345, 1346, 1366, 1347, 1348, 1349, 1350, 1351, 1352,
1883 1353, 1354, 1355, 1356, 1357, 1358, 1359, 1369, 1360, 1361,
1884 1362, 1363, 1364, 1365, 1370, 1372, 1373, 1376, 1382, 1383,
1885 1385, 1366, 1393, 1395, 1397, 1398, 1400, 1403, 1404, 1406,
1886 1407, 1408, 1409, 1410, 1411, 1369, 1412, 1420, 1423, 1424,
1887 1427, 1429, 1370, 1372, 1373, 1376, 1382, 1383, 1385, 1431,
1888 1393, 1395, 1397, 1398, 1400, 1403, 1404, 1406, 1407, 1408,
1889 1409, 1410, 1411, 1430, 1412, 1420, 1423, 1424, 1427, 1429,
1890
1891 1437, 1430, 1439, 1447, 1448, 1449, 1453, 1431, 1456, 1461,
1892 1469, 1470, 1474, 1477, 1479, 1481, 1482, 1484, 1485, 1487,
1893 1488, 1430, 1489, 1491, 1492, 1493, 1494, 1495, 1437, 1430,
1894 1439, 1447, 1448, 1449, 1453, 1496, 1456, 1461, 1469, 1470,
1895 1474, 1477, 1479, 1481, 1482, 1484, 1485, 1487, 1488, 1497,
1896 1489, 1491, 1492, 1493, 1494, 1495, 1500, 1501, 1502, 1503,
1897 1505, 1506, 1507, 1496, 1508, 1511, 1512, 1513, 1517, 1527,
1898 1530, 1532, 1538, 1532, 1544, 1545, 1548, 1497, 1549, 1550,
1899 1552, 1554, 1555, 1556, 1500, 1501, 1502, 1503, 1505, 1506,
1900 1507, 1557, 1508, 1511, 1512, 1513, 1517, 1527, 1530, 1532,
1901
1902 1538, 1532, 1544, 1545, 1548, 1563, 1549, 1550, 1552, 1554,
1903 1555, 1556, 1559, 1559, 1564, 1565, 1567, 1568, 1569, 1557,
1904 1570, 1584, 1586, 1589, 1595, 1598, 1599, 1604, 1607, 1609,
1905 1610, 1613, 1614, 1563, 1617, 1620, 1621, 1623, 1624, 1626,
1906 1559, 1559, 1564, 1565, 1567, 1568, 1569, 1629, 1570, 1584,
1907 1586, 1589, 1595, 1598, 1599, 1604, 1607, 1609, 1610, 1613,
1908 1614, 1630, 1617, 1620, 1621, 1623, 1624, 1626, 1631, 1632,
1909 1633, 1635, 1636, 1637, 1639, 1629, 1640, 1642, 1651, 1654,
1910 1657, 1658, 1830, 1661, 1663, 1664, 1666, 1667, 1672, 1630,
1911 1673, 1675, 1677, 1678, 1684, 1690, 1631, 1632, 1633, 1635,
1912
1913 1636, 1637, 1639, 1691, 1640, 1642, 1651, 1692, 1657, 1658,
1914 1654, 1661, 1663, 1664, 1666, 1667, 1672, 1704, 1673, 1675,
1915 1677, 1678, 1684, 1690, 1706, 1708, 1720, 1721, 1722, 1727,
1916 1731, 1691, 1732, 1734, 1735, 1692, 1737, 1742, 1743, 1744,
1917 1745, 1746, 1748, 1749, 1753, 1704, 1754, 1763, 1765, 1766,
1918 1767, 1768, 1706, 1708, 1720, 1721, 1722, 1727, 1731, 1774,
1919 1732, 1734, 1735, 1785, 1737, 1742, 1743, 1744, 1745, 1746,
1920 1748, 1749, 1753, 1786, 1754, 1763, 1765, 1766, 1767, 1768,
1921 1789, 1793, 1794, 1795, 1807, 1814, 1816, 1774, 1820, 1823,
1922 1824, 1785, 1831, 1832, 1833, 1834, 1835, 1836, 1838, 1839,
1923
1924 1840, 1786, 1841, 1842, 1843, 1845, 1846, 1848, 1789, 1793,
1925 1794, 1795, 1807, 1814, 1816, 1850, 1820, 1823, 1824, 1851,
1926 1831, 1832, 1833, 1834, 1835, 1836, 1853, 1839, 1840, 1854,
1927 1855, 1842, 1843, 1856, 1857, 1858, 1859, 1861, 1862, 1863,
1928 1865, 1866, 1867, 1869, 1870, 1871, 1872, 1873, 1875, 1877,
1929 1879, 1880, 1881, 1882, 1884, 1886, 1887, 1854, 1855, 1888,
1930 1890, 1856, 1891, 1893, 1895, 1896, 1897, 1898, 1900, 1901,
1931 1902, 1903, 1904, 1871, 1872, 1873, 1905, 1906, 1907, 1880,
1932 1908, 1882, 1909, 1910, 1911, 1912, 1913, 1888, 1915, 1916,
1933 1917, 1919, 1920, 1921, 1922, 1923, 1924, 1901, 1902, 1903,
1934
1935 1926, 1928, 1929, 1931, 1933, 1906, 1935, 1937, 1938, 1939,
1936 1940, 1941, 1911, 1942, 1943, 1945, 1946, 1916, 1917, 1948,
1937 1920, 1921, 1949, 1923, 1951, 1952, 1953, 1954, 1955, 1957,
1938 1959, 1960, 1961, 1962, 1963, 1964, 1938, 1965, 1940, 1966,
1939 1967, 1968, 1969, 1970, 1946, 1971, 1972, 1973, 1975, 1977,
1940 1978, 1979, 1980, 1981, 1953, 1983, 1955, 1984, 1985, 1960,
1941 1987, 1989, 1990, 1991, 1992, 1965, 1993, 1995, 1997, 1968,
1942 1969, 1970, 1999, 1971, 2001, 1973, 2002, 2004, 1978, 2006,
1943 2007, 2008, 2009, 2010, 2012, 2013, 2014, 2016, 2017, 2019,
1944 1990, 2021, 1992, 2022, 1993, 2023, 2025, 2026, 2027, 2028,
1945
1946 2029, 2030, 2031, 2032, 2002, 2033, 2034, 2036, 2007, 2008,
1947 2009, 2038, 2039, 2013, 2040, 2041, 2042, 2043, 2044, 2045,
1948 2047, 2048, 2050, 2023, 2051, 2026, 2052, 2028, 2054, 2055,
1949 2057, 2059, 2061, 2063, 2065, 2067, 2068, 2070, 2076, 2078,
1950 2079, 2080, 2081, 2082, 2042, 2072, 2072, 2073, 2073, 2074,
1951 2074, 2075, 2075, 2077, 2077, 2083, 2084, 2085, 2086, 2087,
1952 2088, 2089, 2090, 2091, 2092, 2093, 2094, 2095, 2096, 2097,
1953 2098, 2099, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107,
1954 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117,
1955 2118, 2119, 2120, 2121, 2122, 2123, 2124, 2125, 2126, 2127,
1956
1957 2128, 2129, 2130, 2131, 2132, 2133, 2134, 2135, 2136, 2137,
1958 2138, 2139, 2140, 2141, 2142, 2143, 2144, 2145, 2146, 2147,
1959 2148, 2149, 2150, 2151, 2152, 2153, 2154, 2155, 2156, 2157,
1960 2158, 2159, 2160, 2161, 2162, 2163, 2164, 2165, 2166, 2167,
1961 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2175, 2176, 2177,
1962 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2185, 2186, 2187,
1963 2188, 2189, 2190, 2191, 2192, 2193, 2194, 2195, 2196, 2197,
1964 2198, 2199, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207,
1965 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217,
1966 2218, 2219, 2220, 2221, 2222, 2223, 2224, 2225, 2226, 2227,
1967
1968 2228, 2229, 2230, 2231, 2232, 2233, 2234, 2235, 2236, 2237,
1969 2238, 2239, 2240, 2241, 2242, 2243, 2244, 2245, 2246, 2247,
1970 2248, 2249, 2250, 2251, 2252, 2253, 2254, 2255, 2256, 2257,
1971 2258, 2259, 2260, 2261, 2262, 2263, 2264, 2265, 2266, 2267,
1972 2268, 2269, 2270, 2271, 2272, 2273, 2274, 2275, 2276, 2277,
1973 2278, 2279, 2280, 2281, 2282, 2283, 2284, 2285, 2286, 2287,
1974 2288, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297,
1975 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306, 2307,
1976 2308, 2309, 2310, 2311, 2312, 2313, 2314, 2315, 2316, 2317,
1977 2318, 2319, 2320, 2321, 2322, 2323, 2324, 2325, 2326, 2327,
1978
1979 2328, 2329, 2330, 2331, 2332, 2333, 2334, 2335, 2336, 2337,
1980 2338, 2339, 2340, 2341, 2342, 2343, 2344, 2345, 2346, 2347,
1981 2348, 2349, 2350, 2351, 2352, 2353, 2354, 2355, 2356, 2357,
1982 2358, 2359, 2360, 2361, 2362, 2363, 2364, 2365, 2366, 2367,
1983 2368, 2369, 2370, 2371, 2372, 2373, 2374, 2375, 2376, 2377,
1984 2378, 2379, 2380, 2381, 2382, 2383, 2384, 2385, 2386, 2387,
1985 2388, 2389, 2390, 2391, 2392, 2393, 2394, 2395, 2396, 2397,
1986 2398, 2399, 2400, 2401, 2402, 2403, 2404, 2405, 2406, 2407,
1987 2408, 1712, 1710, 1707, 1705, 1703, 1702, 1701, 1700, 1698,
1988 1697, 1695, 1694, 1689, 1688, 1686, 1685, 1683, 1682, 1680,
1989
1990 1676, 1674, 1671, 1670, 1669, 1665, 1662, 1660, 1656, 1653,
1991 1650, 1649, 1647, 1646, 1644, 1643, 1641, 1638, 1634, 1628,
1992 1627, 1625, 1622, 1619, 1618, 1616, 1615, 1612, 1608, 1606,
1993 1605, 1603, 1601, 1600, 1597, 1594, 1592, 1590, 1588, 1585,
1994 1583, 1581, 1579, 1578, 1577, 1576, 1575, 1574, 1572, 1566,
1995 1562, 1561, 1560, 1558, 1553, 1551, 1547, 1543, 1541, 1540,
1996 1537, 1535, 1534, 1531, 1529, 1528, 1526, 1524, 1522, 1521,
1997 1520, 1518, 1516, 1515, 1510, 1509, 1504, 1499, 1498, 1490,
1998 1486, 1483, 1480, 1478, 1476, 1473, 1472, 1471, 1468, 1466,
1999 1464, 1462, 1460, 1458, 1457, 1455, 1452, 1450, 1446, 1445,
2000
2001 1443, 1442, 1441, 1438, 1436, 1435, 1434, 1432, 1428, 1426,
2002 1422, 1419, 1418, 1416, 1414, 1413, 1405, 1402, 1399, 1396,
2003 1394, 1392, 1391, 1390, 1389, 1387, 1386, 1384, 1381, 1379,
2004 1378, 1377, 1375, 1374, 1371, 1368, 1338, 1334, 1329, 1327,
2005 1324, 1321, 1318, 1317, 1316, 1315, 1313, 1312, 1310, 1309,
2006 1308, 1305, 1303, 1301, 1299, 1298, 1297, 1292, 1291, 1290,
2007 1288, 1286, 1284, 1282, 1278, 1275, 1274, 1273, 1269, 1268,
2008 1264, 1262, 1259, 1258, 1257, 1253, 1250, 1240, 1239, 1237,
2009 1235, 1232, 1230, 1228, 1227, 1224, 1223, 1218, 1214, 1213,
2010 1212, 1211, 1209, 1205, 1201, 1200, 1196, 1166, 1164, 1160,
2011
2012 1156, 1153, 1151, 1149, 1147, 1145, 1144, 1143, 1141, 1139,
2013 1136, 1134, 1131, 1129, 1127, 1126, 1124, 1123, 1121, 1119,
2014 1114, 1113, 1110, 1108, 1107, 1104, 1101, 1099, 1097, 1094,
2015 1093, 1090, 1089, 1086, 1085, 1084, 1081, 1079, 1072, 1071,
2016 1067, 1063, 1061, 1055, 1054, 1050, 1045, 1041, 1039, 1037,
2017 1035, 1032, 1029, 1028, 1020, 1017, 1015, 994, 993, 985,
2018 984, 981, 980, 979, 978, 976, 973, 972, 968, 967,
2019 964, 963, 959, 958, 955, 949, 944, 943, 940, 935,
2020 930, 929, 923, 920, 916, 913, 911, 908, 903, 902,
2021 900, 899, 894, 893, 889, 885, 882, 879, 878, 875,
2022
2023 874, 873, 869, 866, 865, 864, 858, 853, 851, 850,
2024 846, 841, 837, 831, 828, 827, 823, 820, 817, 816,
2025 812, 808, 807, 805, 799, 796, 794, 784, 771, 769,
2026 763, 758, 756, 750, 748, 747, 742, 741, 738, 737,
2027 731, 727, 722, 720, 717, 715, 714, 713, 711, 707,
2028 703, 698, 694, 692, 689, 687, 684, 682, 670, 669,
2029 662, 656, 648, 647, 642, 641, 638, 614, 612, 609,
2030 607, 605, 604, 600, 599, 598, 594, 573, 568, 564,
2031 563, 561, 555, 549, 547, 546, 543, 540, 538, 535,
2032 532, 530, 521, 520, 513, 509, 498, 493, 492, 487,
2033
2034 486, 482, 480, 464, 459, 454, 453, 451, 446, 442,
2035 435, 431, 411, 407, 402, 401, 400, 397, 388, 384,
2036 382, 375, 371, 360, 359, 358, 357, 356, 352, 349,
2037 338, 330, 328, 324, 322, 310, 308, 303, 299, 298,
2038 296, 290, 287, 281, 278, 274, 270, 269, 266, 261,
2039 257, 254, 252, 251, 247, 246, 244, 233, 228, 221,
2040 219, 214, 206, 194, 182, 180, 178, 166, 157, 143,
2041 132, 130, 127, 96, 83, 80, 46, 36, 12, 9,
2042 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
2043 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
2044
2045 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
2046 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
2047 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071,
2048 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071, 2071
2049 } ;
2050
2051 static yy_state_type yy_last_accepting_state;
2052 static char *yy_last_accepting_cpos;
2053
2054 extern int yy_flex_debug;
2055 int yy_flex_debug = 0;
2056
2057 /* The intent behind this definition is that it'll catch
2058 * any uses of REJECT which flex missed.
2059 */
2060 #define REJECT reject_used_but_not_detected
2061 #define yymore() yymore_used_but_not_detected
2062 #define YY_MORE_ADJ 0
2063 #define YY_RESTORE_YY_MORE_OFFSET
2064 char *yytext;
2065 #line 1 "loader.l"
2066 #line 2 "loader.l"
2067 /*
2068 * Crossfire -- cooperative multi-player graphical RPG and adventure game
2069 *
2070 * Copyright (c) 1999-2014 Mark Wedel and the Crossfire Development Team
2071 * Copyright (c) 1992 Frank Tore Johansen
2072 *
2073 * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
2074 * welcome to redistribute it under certain conditions. For details, please
2075 * see COPYING and LICENSE.
2076 *
2077 * The authors can be reached via e-mail at <[email protected]>.
2078 */
2079
2080 /* Eneq(@csd.uu.se): Added weight-modifiers in environment of objects.
2081 object_sub/add_weight will transcend the environment updating the carrying
2082 variable. */
2083
2084 #include "global.h"
2085
2086 #include <ctype.h>
2087
2088 #include "loader.h"
2089 #include "newserver.h"
2090 #include "sproto.h"
2091 #include "stringbuffer.h"
2092
2093 #define YY_DECL int lex_load(int *depth, object **items, int maxdepth, int map_flags, int linemode)
2094
2095 static char *yval(void);
2096
2097 static int lex_error;
2098 static char msgbuf[HUGE_BUF];
2099 size_t msglen = 0, total_msglen = 0;
2100 static char lorebuf[HUGE_BUF];
2101
2102 /**
2103 * This table is only necessary to convert objects that existed before the
2104 * spell object conversion to the new object. It was not practical
2105 * to go through every mapping looking for every potion, rod, wand, etc
2106 * that had a sp set and update to the new value. So this maps the
2107 * old spell numbers to the name of the new archs.
2108 * If you are adding a new spell, you should not modify this - your
2109 * new spell won't have been used, and thus won't have any legacy object.
2110 * NULL entries in this table are valid - to denote objects that should
2111 * not be updated for whatever reason.
2112 *
2113 * @todo
2114 * is this still required? it's used, but can it happen?
2115 */
2116 const char *const spell_mapping[] = {
2117 "spell_magic_bullet", /* 0 */
2118 "spell_small_fireball", /* 1 */
2119 "spell_medium_fireball", /* 2 */
2120 "spell_large_fireball", /* 3 */
2121 "spell_burning_hands", /* 4 */
2122 "spell_sm_lightning", /* 5 */
2123 "spell_large_lightning", /* 6 */
2124 "spell_magic_missile", /* 7 */
2125 "spell_create_bomb", /* 8 */
2126 "spell_summon_golem", /* 9 */
2127 "spell_summon_fire_elemental", /* 10 */
2128 "spell_summon_earth_elemental", /* 11 */
2129 "spell_summon_water_elemental", /* 12 */
2130 "spell_summon_air_elemental", /* 13 */
2131 "spell_dimension_door", /* 14 */
2132 "spell_create_earth_wall", /* 15 */
2133 "spell_paralyze", /* 16 */
2134 "spell_icestorm", /* 17 */
2135 "spell_magic_mapping", /* 18 */
2136 "spell_turn_undead", /* 19 */
2137 "spell_fear", /* 20 */
2138 "spell_poison_cloud", /* 21 */
2139 "spell_wonder", /* 22 */
2140 "spell_destruction", /* 23 */
2141 "spell_perceive_self", /* 24 */
2142 "spell_word_of_recall", /* 25 */
2143 "spell_invisible", /* 26 */
2144 "spell_invisible_to_undead", /* 27 */
2145 "spell_probe", /* 28 */
2146 "spell_lg_magic_bullet", /* 29 */
2147 "spell_improved_invisibility", /* 30 */
2148 "spell_holy_word", /* 31 */
2149 "spell_minor_healing", /* 32 */
2150 "spell_medium_healing", /* 33 */
2151 "spell_major_healing", /* 34 */
2152 "spell_heal", /* 35 */
2153 "spell_create_food", /* 36 */
2154 "spell_earth_to_dust", /* 37 */
2155 "spell_armour", /* 38 */
2156 "spell_strength", /* 39 */
2157 "spell_dexterity", /* 40 */
2158 "spell_constitution", /* 41 */
2159 "spell_charisma", /* 42 */
2160 "spell_create_fire_wall", /* 43 */
2161 "spell_create_frost_wall", /* 44 */
2162 "spell_protection_from_cold", /* 45 */
2163 "spell_protection_from_electricity", /* 46 */
2164 "spell_protection_from_fire", /* 47 */
2165 "spell_protection_from_poison", /* 48 */
2166 "spell_protection_from_slow", /* 49 */
2167 "spell_protection_from_paralysis", /* 50 */
2168 "spell_protection_from_draining", /* 51 */
2169 "spell_protection_from_magic", /* 52 */
2170 "spell_protection_from_attack", /* 53 */
2171 "spell_levitate", /* 54 */
2172 "spell_small_speedball", /* 55 */
2173 "spell_large_speedball", /* 56 */
2174 "spell_hellfire", /* 57 */
2175 "spell_dragonbreath", /* 58 */
2176 "spell_large_icestorm", /* 59 */
2177 "spell_charging", /* 60 */
2178 "spell_polymorph", /* 61 */
2179 "spell_cancellation", /* 62 */
2180 "spell_confusion", /* 63 */
2181 "spell_mass_confusion", /* 64 */
2182 "spell_summon_pet_monster", /* 65 */
2183 "spell_slow", /* 66 */
2184 "spell_regenerate_spellpoints", /* 67 */
2185 "spell_cure_poison", /* 68 */
2186 "spell_protection_from_confusion", /* 69 */
2187 "spell_protection_from_cancellation", /* 70 */
2188 "spell_protection_from_depletion", /* 71 */
2189 "spell_alchemy", /* 72 */
2190 "spell_remove_curse", /* 73 */
2191 "spell_remove_damnation", /* 74 */
2192 "spell_identify", /* 75 */
2193 "spell_detect_magic", /* 76 */
2194 "spell_detect_monster", /* 77 */
2195 "spell_detect_evil", /* 78 */
2196 "spell_detect_curse", /* 79 */
2197 "spell_heroism", /* 80 */
2198 "spell_aggravation", /* 81 */
2199 "spell_firebolt", /* 82 */
2200 "spell_frostbolt", /* 83 */
2201 "spell_shockwave", /* 84 */
2202 "spell_color_spray", /* 85 */
2203 "spell_haste", /* 86 */
2204 "spell_face_of_death", /* 87 */
2205 "spell_ball_lightning", /* 88 */
2206 "spell_meteor_swarm", /* 89 */
2207 "spell_comet", /* 90 */
2208 "spell_mystic_fist", /* 91 */
2209 "spell_raise_dead", /* 92 */
2210 "spell_resurrection", /* 93 */
2211 "spell_reincarnation", /* 94 */
2212 "spell_immunity_to_cold", /* 95 */
2213 "spell_immunity_to_electricity", /* 96 */
2214 "spell_immunity_to_fire", /* 97 */
2215 "spell_immunity_to_poison", /* 98 */
2216 "spell_immunity_to_slow", /* 99 */
2217 "spell_immunity_to_paralysis", /* 100 */
2218 "spell_immunity_to_draining", /* 101 */
2219 "spell_immunity_to_magic", /* 102 */
2220 "spell_immunity_to_attack", /* 103 */
2221 "spell_invulnerability", /* 104 */
2222 "spell_defense", /* 105 */
2223 "spell_rune_of_fire", /* 106 */
2224 "spell_rune_of_frost", /* 107 */
2225 "spell_rune_of_shocking", /* 108 */
2226 "spell_rune_of_blasting", /* 109 */
2227 "spell_rune_of_death", /* 110 */
2228 "spell_marking_rune", /* 111 */
2229 "spell_build_director", /* 112 */
2230 "spell_create_pool_of_chaos", /* 113 */
2231 "spell_build_bullet_wall", /* 114 */
2232 "spell_build_lightning_wall", /* 115 */
2233 "spell_build_fireball_wall", /* 116 */
2234 "spell_magic_rune", /* 117 */
2235 "spell_rune_of_magic_drain", /* 118 */
2236 "spell_antimagic_rune", /* 119 */
2237 "spell_rune_of_transference", /* 120 */
2238 "spell_transference", /* 121 */
2239 "spell_magic_drain", /* 122 */
2240 "spell_counterspell", /* 123 */
2241 "spell_disarm", /* 124 */
2242 "spell_cure_confusion", /* 125 */
2243 "spell_restoration", /* 126 */
2244 "was summon evil monster", /* 127 */ /* Not implenented as nothing used it */
2245 "spell_counterwall", /* 128 */
2246 "spell_cause_light_wounds", /* 129 */
2247 "spell_cause_medium_wounds", /* 130 */
2248 "spell_cause_heavy_wounds", /* 131 */
2249 "spell_charm_monsters", /* 132 */
2250 "spell_banishment", /* 133 */
2251 "spell_create_missile", /* 134 */
2252 "spell_show_invisible", /* 135 */
2253 "spell_xray", /* 136 */
2254 "spell_pacify", /* 137 */
2255 "spell_summon_fog", /* 138 */
2256 "spell_steambolt", /* 139 */
2257 "spell_command_undead", /* 140 */
2258 "spell_holy_orb", /* 141 */
2259 "spell_summon_avatar", /* 142 */
2260 "spell_holy_possession", /* 143 */
2261 "spell_bless", /* 144 */
2262 "spell_curse", /* 145 */
2263 "spell_regeneration", /* 146 */
2264 "spell_consecrate", /* 147 */
2265 "spell_summon_cult_monsters", /* 148 */
2266 "spell_cause_critical_wounds", /* 149 */
2267 "spell_holy_wrath", /* 150 */
2268 "spell_retributive_strike", /* 151 */
2269 "spell_finger_of_death", /* 152 */
2270 "spell_insect_plague", /* 153 */
2271 "spell_call_holy_servant", /* 154 */
2272 "spell_wall_of_thorns", /* 155 */
2273 "spell_staff_to_snake", /* 156 */
2274 "spell_light", /* 157 */
2275 "spell_darkness", /* 158 */
2276 "spell_nightfall", /* 159 */
2277 "spell_daylight", /* 160 */
2278 "spell_sunspear", /* 161 */
2279 "spell_faery_fire", /* 162 */
2280 "spell_cure_blindness", /* 163 */
2281 "spell_dark_vision", /* 164 */
2282 "spell_bullet_swarm", /* 165 */
2283 "spell_bullet_storm", /* 166 */
2284 "spell_cause_many_wounds", /* 167 */
2285 "spell_small_snowstorm", /* 168 */
2286 "spell_medium_snowstorm", /* 169 */
2287 "spell_large_snowstorm", /* 170 */
2288 "spell_cure_disease", /* 171 */
2289 "spell_cause_red_death", /* 172 */
2290 "spell_cause_flu", /* 173 */
2291 "spell_cause_black_death", /* 174 */
2292 "spell_cause_leprosy", /* 175 */
2293 "spell_cause_smallpox", /* 176 */
2294 "spell_cause_white_death", /* 177 */
2295 "spell_cause_anthrax", /* 178 */
2296 "spell_cause_typhoid", /* 179 */
2297 "spell_mana_blast", /* 180 */
2298 "spell_small_manaball", /* 181 */
2299 "spell_medium_manaball", /* 182 */
2300 "spell_large_manaball", /* 183 */
2301 "spell_manabolt", /* 184 */
2302 "spell_dancing_sword", /* 185 */
2303 "spell_animate_weapon", /* 186 */
2304 "spell_cause_cold", /* 187 */
2305 "spell_divine_shock", /* 188 */
2306 "spell_windstorm", /* 189 */
2307 "spell_sanctuary", /* 190 */
2308 "spell_peace", /* 191 */
2309 "spell_spiderweb", /* 192 */
2310 "spell_conflict", /* 193 */
2311 "spell_rage", /* 194 */
2312 "spell_forked_lightning", /* 195 */
2313 "spell_poison_fog", /* 196 */
2314 "spell_flaming_aura", /* 197 */
2315 "spell_vitriol", /* 198 */
2316 "spell_vitriol_splash", /* 199 */
2317 "spell_iron_skin", /* 200 */
2318 "spell_wrathful_eye", /* 201 */
2319 "spell_town_portal", /* 202 */
2320 "spell_missile_swarm", /* 203 */
2321 "spell_cause_rabies", /* 204 */
2322 "spell_glyph", /* 205 */
2323 NULL
2324 };
2325
2326 /** Utility macro to transform a bit into a flag. */
2327 #define SET_OR_CLEAR_FLAG(op, flag, val) \
2328 { if (val) SET_FLAG(op, flag); else CLEAR_FLAG(op, flag); }
2329
2330 /**
2331 * SET_RESIST is really only really needed for transition code. We normally
2332 * don't care about multiple values overwriting each other, but this is
2333 * to catch items that have multiple protection/immune/vulnerable.
2334 * This can be simplified later on to just do the set after all the archs
2335 * and maps have been updated.
2336 * We always keep the last value because otherwise the value from the
2337 * arch may take precedence.
2338 * Unfortunately, we will report warnings here simply because an object has
2339 * been modified from the arch.
2340 */
2341 #define SET_RESIST(op, type, val) op->resist[type] = val;
2342
2343
2344 /** Next value as integer. */
2345 #define IVAL atoi(yval())
2346 /** Next value as float. */
2347 #define FVAL atof(yval())
2348 extern int arch_init;
2349 extern int artifact_init;
2350
2351 /**
2352 * Keep track of whether we're currently inside an object...end block. This
2353 * might have been better designed as a separate start condition, but was
2354 * added to give a warning when an object started before the previous ended.
2355 */
2356 static bool seen_object = false;
2357
2358 /**
2359 * Fills in the body information for one slot.
2360 *
2361 * @param op
2362 * object
2363 * @param params
2364 * the body part, which should be in the ::body_locations structure.
2365 */
2366 static void set_body_info(object *op, char *params) {
2367 int i;
2368 char *cp;
2369
2370 /* go to first space character */
2371 for (cp = params; !isspace(*cp); cp++)
2372 ;
2373
2374 *cp++ = 0; /* null it out */
2375
2376 for (i = 0; i < NUM_BODY_LOCATIONS; i++) {
2377 if (!strcmp(params, body_locations[i].save_name)) {
2378 op->body_info[i] = atoi(cp);
2379 return; /* Only one line passed in params */
2380 }
2381 }
2382 LOG(llevError, "set_body_info called with bogus params: %s\n", params);
2383 }
2384
2385 /**
2386 * This function checks the object after it has been loaded (when we
2387 * get the 'end' in the input stream). This function can be used to
2388 * deal with legacy objects where fields may have changed. It can also be used
2389 * to check for objects to make sure there are no common errors.
2390 *
2391 * @param op
2392 * object to check.
2393 */
2394 static void check_loaded_object(object *op) {
2395 if (artifact_init)
2396 /* Artifacts are special beasts, let's not check them. */
2397 return;
2398
2399 if (!is_type_valid(op->type)) {
2400 LOG(llevError, "Invalid type %d for %s\n", op->type, op->arch ? op->arch->name : op->name);
2401 op->type = 0;
2402 }
2403
2404 /* We do some specialized handling to handle legacy cases of name_pl.
2405 * If the object doesn't have a name_pl, we just use the object name -
2406 * this isn't perfect (things won't be properly pluralized), but works to
2407 * that degree (5 heart is still quite understandable). But the case we
2408 * also have to catch is if this object is not using the normal name for
2409 * the object. In that case, we also want to use the loaded name.
2410 * Otherwise, what happens is that the the plural name will lose
2411 * information (appear as just 'hearts' and not 'goblins heart')
2412 */
2413 if (op->arch && op->name != op->arch->clone.name && op->name_pl == op->arch->clone.name_pl) {
2414 if (op->name_pl) {
2415 free_string(op->name_pl);
2416 op->name_pl = NULL;
2417 }
2418 }
2419 if (!op->name_pl && op->name)
2420 op->name_pl = add_string(op->name);
2421
2422 /* objects now have a materialname. try to patch it in */
2423 if (!(IS_WEAPON(op) && op->level > 0)) {
2424 set_materialname(op);
2425 }
2426 /* only do these when program is first run - a bit
2427 * excessive to do this at every run - most of this is
2428 * really just to catch any errors - program will still run, but
2429 * not in the ideal fashion.
2430 */
2431 if ((op->type == WEAPON || op->type == BOW) && arch_init) {
2432 if (!op->skill) {
2433 LOG(llevError, "Weapon %s lacks a skill.\n", op->name);
2434 } else if ((!strcmp(op->skill, "one handed weapons") && op->body_info[1] != -1) ||
2435 (!strcmp(op->skill, "two handed weapons") && op->body_info[1] != -2)) {
2436 LOG(llevError, "weapon %s arm usage does not match skill: %d, %s\n", op->name, op->body_info[1], op->skill);
2437 }
2438 }
2439
2440 /* spellbooks & runes use slaying. But not to arch name, but to spell name */
2441 if ((op->type == SPELLBOOK || op->type == RUNE) && op->slaying && !op->inv && !arch_init) {
2442 object *tmp;
2443
2444 tmp = create_archetype_by_object_name(op->slaying);
2445 object_insert_in_ob(tmp, op);
2446 op->randomitems = NULL; /* So another spell isn't created for this object */
2447 /* without this, value is all screwed up */
2448 op->value = op->arch->clone.value*op->inv->value;
2449 }
2450
2451 if (QUERY_FLAG(op, FLAG_MONSTER)) {
2452 if (op->stats.hp > op->stats.maxhp)
2453 LOG(llevDebug, "Monster %s has hp set higher than maxhp (%d>%d)\n", op->name, op->stats.hp, op->stats.maxhp);
2454 }
2455 if ((QUERY_FLAG(op, FLAG_GENERATOR) && QUERY_FLAG(op, FLAG_CONTENT_ON_GEN))
2456 || op->type == CREATOR
2457 || op->type == CONVERTER) {
2458 /* Object will duplicate it's content as part of the
2459 * generation process. To do this, we must flag inventory
2460 * so it remains unevaluated concerning the randomitems and
2461 * the living (a demonlord shouldn't cast from inside generator!)
2462 */
2463 object_set_flag_inv(op, FLAG_IS_A_TEMPLATE);
2464 }
2465
2466 /* if the item is identified, ensure we got the correct face */
2467 if (QUERY_FLAG(op, FLAG_IDENTIFIED))
2468 object_give_identified_properties(op);
2469
2470 /* Here we'll handle custom monsters. In order to handle them correctly, especially in the fix_object
2471 * method, we'll create a new temporary archetype containing defined values.
2472 * Of course this doesn't apply when loading archetypes or artifacts.
2473 */
2474 if (arch_init == 0
2475 && artifact_init == 0
2476 && QUERY_FLAG(op, FLAG_MONSTER)
2477 && op->arch
2478 && !object_can_merge(op, &op->arch->clone)) {
2479 archetype *temp = get_archetype_struct();
2480 temp->reference_count++;
2481 temp->name = add_string(op->arch->name);
2482 temp->tail_x = op->arch->tail_x;
2483 temp->tail_y = op->arch->tail_y;
2484 object_copy(op, &temp->clone);
2485 temp->clone.inv = NULL;
2486 temp->clone.env = NULL;
2487 temp->clone.x = 0;
2488 temp->clone.y = 0;
2489 temp->clone.map = NULL;
2490 if (FABS(temp->clone.speed) > MIN_ACTIVE_SPEED) {
2491 /* Clone has a speed, so need to clear that because it isn't on a map.
2492 * But we need to keep the value, because otherwise the customized object
2493 * will have no speed (fix_player() will use the 0 value). So set it
2494 * to zero, call object_update_speed() to remove it from active list, then
2495 * set its speed back to the original.
2496 */
2497 temp->clone.speed = 0;
2498 object_update_speed(&temp->clone);
2499 temp->clone.speed = op->speed;
2500 }
2501
2502 temp->more = op->arch->more;
2503 op->arch = temp;
2504 /* LOG(llevDebug, "created temporary archetype for %s at %d,%d\n", op->name, op->x, op->y); */
2505 }
2506 }
2507
2508 /**
2509 * This extracts the key/value from the yytext field -
2510 * calls object_set_value() to actually set the value.
2511 * Function basically has to find spaces, strip out extra,
2512 * etc. strchr doesn't work as good because could also
2513 * be tabs.
2514 *
2515 * @param op
2516 * object in which to insert the value.
2517 */
2518 static void add_key_value(object *op) {
2519 char *key = NULL;
2520 char *value = NULL;
2521 char *cp;
2522 char *end;
2523
2524 /* First, skip over leading whitespace. */
2525 for (cp = yytext; isspace(*cp); cp++) {
2526 ;
2527 }
2528
2529 key = cp;
2530
2531 /* Now look for the end of the key/field name. */
2532 for (; !isspace(*cp); cp++) {
2533 if (*cp == '\0') {
2534 /* Oops, ran out of string! Set the key with an empty value. */
2535 object_set_value(op, key, NULL, TRUE);
2536 return;
2537 }
2538 }
2539
2540 if (*cp == '\0') {
2541 object_set_value(op, key, NULL, TRUE);
2542 return;
2543 }
2544
2545 /* Chop off the key, and start at the next character. */
2546 *cp = '\0';
2547 cp++;
2548 if (*cp == '\0') {
2549 /* Was followed by one space? */
2550 object_set_value(op, key, NULL, TRUE);
2551 return;
2552 }
2553
2554 /* Now looking for the value. Skip over whitespace. */
2555 for (; isspace(*cp); cp++) {
2556 if (*cp == '\0') {
2557 /* Guess not. */
2558 object_set_value(op, key, NULL, TRUE);
2559 return;
2560 }
2561 }
2562
2563 value = cp;
2564
2565 /* Got last character before null and strip
2566 * off tailing whitespace
2567 */
2568 for (end = value+(strlen(cp)-1); isspace(*end); end--) {
2569 if (end == value) {
2570 /* *blink blink* Still no value? */
2571 object_set_value(op, key, NULL, TRUE);
2572 return;
2573 }
2574 *end = '\0';
2575 }
2576 object_set_value(op, key, value, TRUE);
2577 }
2578
2579 /**
2580 * Handles the different move types an object can have.
2581 *
2582 * @param mt
2583 * field for which we are computing the value, will be set to the result of parsing.
2584 * @param params
2585 * string containing the definition of the move type to parse.
2586 * @param prefix
2587 * string to be displayed in case the move type is invalid, must not be NULL.
2588 */
2589 static void set_move(MoveType *mt, char *params, const char *prefix) {
2590 char *str;
2591 int i, negate;
2592
2593 if (isdigit(*params)) {
2594 *mt = atoi(params);
2595 } else {
2596 *mt = 0;
2597 for (str = strtok(params, " "); str; str = strtok(NULL, " ")) {
2598 negate = 0;
2599 if (!strcasecmp(str, "all"))
2600 *mt |= MOVE_ALL;
2601 else {
2602 if (*str == '-') {
2603 negate = 1;
2604 str++;
2605 }
2606 for (i = 0; move_name[i] != NULL; i++) {
2607 if (!strcasecmp(move_name[i], str)) {
2608 if (negate) {
2609 *mt &= ~(1<<i);
2610 } else {
2611 *mt |= (1<<i);
2612 }
2613 break;
2614 }
2615 }
2616 if (move_name[i] == NULL) {
2617 /* fly is a special case - covers both fly_low and
2618 * fly_high - since it doesn't match to a specific
2619 * single bit, have to special case it.
2620 */
2621 if (!strcasecmp(str, "flying")) {
2622 if (negate) {
2623 *mt &= ~MOVE_FLYING;
2624 } else {
2625 *mt |= MOVE_FLYING;
2626 }
2627 } else {
2628 LOG(llevDebug, "common/loader.l: set_move(%s) - unknown move string '%s'\n", prefix, str);
2629 }
2630 }
2631 } /* Else not all move types */
2632 } /* for strtok */
2633 } /* Else not a numeric value */
2634 }
2635
2636
2637
2638
2639 /* Don't have to link with -lfl with this */
2640 /* need yy_push_state, yy_pop_state */
2641 /* those functions are unused, not sure of compatibility with Flex versions. */
2642 #define YY_NO_INPUT 1
2643 #line 2644 "loader.c"
2644
2645 #define INITIAL 0
2646 #define MESSAGE 1
2647 #define LORE 2
2648 #define SCRIPT 3
2649
2650 #ifndef YY_NO_UNISTD_H
2651 /* Special case for "unistd.h", since it is non-ANSI. We include it way
2652 * down here because we want the user's section 1 to have been scanned first.
2653 * The user has a chance to override it with an option.
2654 */
2655 #include <unistd.h>
2656 #endif
2657
2658 #ifndef YY_EXTRA_TYPE
2659 #define YY_EXTRA_TYPE void *
2660 #endif
2661
2662 static int yy_init_globals (void );
2663
2664 /* Accessor methods to globals.
2665 These are made visible to non-reentrant scanners for convenience. */
2666
2667 int yylex_destroy (void );
2668
2669 int yyget_debug (void );
2670
2671 void yyset_debug (int debug_flag );
2672
2673 YY_EXTRA_TYPE yyget_extra (void );
2674
2675 void yyset_extra (YY_EXTRA_TYPE user_defined );
2676
2677 FILE *yyget_in (void );
2678
2679 void yyset_in (FILE * in_str );
2680
2681 FILE *yyget_out (void );
2682
2683 void yyset_out (FILE * out_str );
2684
2685 yy_size_t yyget_leng (void );
2686
2687 char *yyget_text (void );
2688
2689 int yyget_lineno (void );
2690
2691 void yyset_lineno (int line_number );
2692
2693 /* Macros after this point can all be overridden by user definitions in
2694 * section 1.
2695 */
2696
2697 #ifndef YY_SKIP_YYWRAP
2698 #ifdef __cplusplus
2699 extern "C" int yywrap (void );
2700 #else
2701 extern int yywrap (void );
2702 #endif
2703 #endif
2704
2705 #ifndef yytext_ptr
2706 static void yy_flex_strncpy (char *,yyconst char *,int );
2707 #endif
2708
2709 #ifdef YY_NEED_STRLEN
2710 static int yy_flex_strlen (yyconst char * );
2711 #endif
2712
2713 #ifndef YY_NO_INPUT
2714
2715 #ifdef __cplusplus
2716 static int yyinput (void );
2717 #else
2718 static int input (void );
2719 #endif
2720
2721 #endif
2722
2723 static int yy_start_stack_ptr = 0;
2724 static int yy_start_stack_depth = 0;
2725 static int *yy_start_stack = NULL;
2726
2727 static void yy_push_state (int new_state );
2728
2729 static void yy_pop_state (void );
2730
2731 /* Amount of stuff to slurp up with each read. */
2732 #ifndef YY_READ_BUF_SIZE
2733 #define YY_READ_BUF_SIZE 8192
2734 #endif
2735
2736 /* Copy whatever the last rule matched to the standard output. */
2737 #ifndef ECHO
2738 /* This used to be an fputs(), but since the string might contain NUL's,
2739 * we now use fwrite().
2740 */
2741 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
2742 #endif
2743
2744 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
2745 * is returned in "result".
2746 */
2747 #ifndef YY_INPUT
2748 #define YY_INPUT(buf,result,max_size) \
2749 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
2750 { \
2751 int c = '*'; \
2752 size_t n; \
2753 for ( n = 0; n < max_size && \
2754 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
2755 buf[n] = (char) c; \
2756 if ( c == '\n' ) \
2757 buf[n++] = (char) c; \
2758 if ( c == EOF && ferror( yyin ) ) \
2759 YY_FATAL_ERROR( "input in flex scanner failed" ); \
2760 result = n; \
2761 } \
2762 else \
2763 { \
2764 errno=0; \
2765 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
2766 { \
2767 if( errno != EINTR) \
2768 { \
2769 YY_FATAL_ERROR( "input in flex scanner failed" ); \
2770 break; \
2771 } \
2772 errno=0; \
2773 clearerr(yyin); \
2774 } \
2775 }\
2776 \
2777
2778 #endif
2779
2780 /* No semi-colon after return; correct usage is to write "yyterminate();" -
2781 * we don't want an extra ';' after the "return" because that will cause
2782 * some compilers to complain about unreachable statements.
2783 */
2784 #ifndef yyterminate
2785 #define yyterminate() return YY_NULL
2786 #endif
2787
2788 /* Number of entries by which start-condition stack grows. */
2789 #ifndef YY_START_STACK_INCR
2790 #define YY_START_STACK_INCR 25
2791 #endif
2792
2793 /* Report a fatal error. */
2794 #ifndef YY_FATAL_ERROR
2795 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
2796 #endif
2797
2798 /* end tables serialization structures and prototypes */
2799
2800 /* Default declaration of generated scanner - a define so the user can
2801 * easily add parameters.
2802 */
2803 #ifndef YY_DECL
2804 #define YY_DECL_IS_OURS 1
2805
2806 extern int yylex (void);
2807
2808 #define YY_DECL int yylex (void)
2809 #endif /* !YY_DECL */
2810
2811 /* Code executed at the beginning of each rule, after yytext and yyleng
2812 * have been set up.
2813 */
2814 #ifndef YY_USER_ACTION
2815 #define YY_USER_ACTION
2816 #endif
2817
2818 /* Code executed at the end of each rule. */
2819 #ifndef YY_BREAK
2820 #define YY_BREAK break;
2821 #endif
2822
2823 #define YY_RULE_SETUP \
2824 if ( yyleng > 0 ) \
2825 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
2826 (yytext[yyleng - 1] == '\n'); \
2827 YY_USER_ACTION
2828
2829 /** The main scanner function which does all the work.
2830 */
2831 YY_DECL
2832 {
2833 yy_state_type yy_current_state;
2834 char *yy_cp, *yy_bp;
2835 int yy_act;
2836
2837 #line 592 "loader.l"
2838
2839
2840
2841 /* Declare some local variables */
2842 int ismore = 0;
2843
2844 object *op = items[*depth];
2845 lex_error = 0;
2846
2847
2848
2849 #line 2850 "loader.c"
2850
2851 if ( !(yy_init) )
2852 {
2853 (yy_init) = 1;
2854
2855 #ifdef YY_USER_INIT
2856 YY_USER_INIT;
2857 #endif
2858
2859 if ( ! (yy_start) )
2860 (yy_start) = 1; /* first start state */
2861
2862 if ( ! yyin )
2863 yyin = stdin;
2864
2865 if ( ! yyout )
2866 yyout = stdout;
2867
2868 if ( ! YY_CURRENT_BUFFER ) {
2869 yyensure_buffer_stack ();
2870 YY_CURRENT_BUFFER_LVALUE =
2871 yy_create_buffer(yyin,YY_BUF_SIZE );
2872 }
2873
2874 yy_load_buffer_state( );
2875 }
2876
2877 while ( 1 ) /* loops until end-of-file is reached */
2878 {
2879 yy_cp = (yy_c_buf_p);
2880
2881 /* Support of yytext. */
2882 *yy_cp = (yy_hold_char);
2883
2884 /* yy_bp points to the position in yy_ch_buf of the start of
2885 * the current run.
2886 */
2887 yy_bp = yy_cp;
2888
2889 yy_current_state = (yy_start);
2890 yy_current_state += YY_AT_BOL();
2891 yy_match:
2892 do
2893 {
2894 YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)] ;
2895 if ( yy_accept[yy_current_state] )
2896 {
2897 (yy_last_accepting_state) = yy_current_state;
2898 (yy_last_accepting_cpos) = yy_cp;
2899 }
2900 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2901 {
2902 yy_current_state = (int) yy_def[yy_current_state];
2903 if ( yy_current_state >= 2072 )
2904 yy_c = yy_meta[(unsigned int) yy_c];
2905 }
2906 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2907 ++yy_cp;
2908 }
2909 while ( yy_current_state != 2071 );
2910 yy_cp = (yy_last_accepting_cpos);
2911 yy_current_state = (yy_last_accepting_state);
2912
2913 yy_find_action:
2914 yy_act = yy_accept[yy_current_state];
2915
2916 YY_DO_BEFORE_ACTION;
2917
2918 do_action: /* This label is used only to access EOF actions. */
2919
2920 switch ( yy_act )
2921 { /* beginning of action switch */
2922 case 0: /* must back up */
2923 /* undo the effects of YY_DO_BEFORE_ACTION */
2924 *yy_cp = (yy_hold_char);
2925 yy_cp = (yy_last_accepting_cpos);
2926 yy_current_state = (yy_last_accepting_state);
2927 goto yy_find_action;
2928
2929 case 1:
2930 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
2931 (yy_c_buf_p) = yy_cp -= 1;
2932 YY_DO_BEFORE_ACTION; /* set up yytext again */
2933 YY_RULE_SETUP
2934 #line 603 "loader.l"
2935 { BEGIN(MESSAGE); msgbuf[0] = '\0'; msglen = 0; total_msglen = 0;}
2936 YY_BREAK
2937 case 2:
2938 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
2939 (yy_c_buf_p) = yy_cp -= 1;
2940 YY_DO_BEFORE_ACTION; /* set up yytext again */
2941 YY_RULE_SETUP
2942 #line 604 "loader.l"
2943 { BEGIN(INITIAL);
2944 object_set_msg(op, msgbuf);
2945 /* Just print a warning so we can be reasonably safe
2946 * about not overflowing the buffer.
2947 */
2948 if (total_msglen > (HUGE_BUF / 2))
2949 LOG(llevDebug,
2950 "warning: msg in '%s' on %s is very long (%lu "
2951 "characters)\n",
2952 op->name,
2953 op->map != NULL ? op->map->path : "no map",
2954 (unsigned long)total_msglen);
2955 }
2956 YY_BREAK
2957 case 3:
2958 YY_RULE_SETUP
2959 #line 617 "loader.l"
2960 { safe_strcat(msgbuf, yytext, &msglen, HUGE_BUF);
2961 safe_strcat(msgbuf, "\n", &msglen, HUGE_BUF);
2962 total_msglen += strlen(yytext)+1;
2963 }
2964 YY_BREAK
2965 case 4:
2966 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
2967 (yy_c_buf_p) = yy_cp -= 1;
2968 YY_DO_BEFORE_ACTION; /* set up yytext again */
2969 YY_RULE_SETUP
2970 #line 622 "loader.l"
2971 { BEGIN(LORE); lorebuf[0] = '\0'; }
2972 YY_BREAK
2973 case 5:
2974 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
2975 (yy_c_buf_p) = yy_cp -= 1;
2976 YY_DO_BEFORE_ACTION; /* set up yytext again */
2977 YY_RULE_SETUP
2978 #line 623 "loader.l"
2979 { BEGIN(INITIAL);
2980 op->lore = add_string(lorebuf);
2981 /* Just print a warning so we can be reasonably safe
2982 * about not overflowing the buffer.
2983 */
2984 if (strlen(op->lore) > (HUGE_BUF/2))
2985 LOG(llevDebug, "\n\tWarning lore length > %d (max allowed=%d): %lu\n>%.80s<\n",
2986 HUGE_BUF/2, HUGE_BUF, (unsigned long)strlen(op->lore), op->lore);
2987 }
2988 YY_BREAK
2989 case 6:
2990 YY_RULE_SETUP
2991 #line 632 "loader.l"
2992 { strcat(lorebuf, yytext); strcat(lorebuf, "\n"); }
2993 YY_BREAK
2994 case 7:
2995 YY_RULE_SETUP
2996 #line 634 "loader.l"
2997 {
2998 char *yv = yval();
2999
3000 if (*yv == '\0') {
3001 LOG(llevError, "Object lacks name.\n");
3002 return LL_IGNORED;
3003 }
3004 if (seen_object) {
3005 LOG(llevError, "An object started before the 'end' of object %s.\n", (op->arch && op->arch->name) ? op->arch->name : "(no name)");
3006 }
3007 if (!arch_init) {
3008 LOG(llevError, "Got object info when not in arch_init (%s)?\n", yv);
3009 } else {
3010 if (op->arch != NULL)
3011 op->arch->name = add_string(yv);
3012 op->name = add_string(yv);
3013 }
3014 seen_object = true;
3015 }
3016 YY_BREAK
3017 case 8:
3018 YY_RULE_SETUP
3019 #line 654 "loader.l"
3020 {
3021 char *yv = yval();
3022
3023 if (*yv == '\0')
3024 LOG(llevError, "Name without val\n");
3025 else
3026 FREE_AND_COPY(op->name, yv);
3027 }
3028 YY_BREAK
3029 case 9:
3030 YY_RULE_SETUP
3031 #line 662 "loader.l"
3032 {
3033 char *yv = yval();
3034
3035 if (*yv == '\0')
3036 LOG(llevError, "Name without val\n");
3037 else
3038 FREE_AND_COPY(op->name_pl, yv);
3039 }
3040 YY_BREAK
3041 case 10:
3042 YY_RULE_SETUP
3043 #line 670 "loader.l"
3044 {
3045 char *yv = yval();
3046
3047 if (*yv == '\0')
3048 LOG(llevError, "Anim suffix without val\n");
3049 else
3050 FREE_AND_COPY(op->anim_suffix, yv);
3051 }
3052 YY_BREAK
3053 case 11:
3054 YY_RULE_SETUP
3055 #line 678 "loader.l"
3056 FREE_AND_COPY(op->skill, yval());
3057 YY_BREAK
3058 case 12:
3059 YY_RULE_SETUP
3060 #line 679 "loader.l"
3061 {
3062 char *yv = yval();
3063
3064 if (*yv == '\0')
3065 LOG(llevError, "Custom name without val\n");
3066 else
3067 FREE_AND_COPY(op->custom_name, yv);
3068 }
3069 YY_BREAK
3070 case 13:
3071 YY_RULE_SETUP
3072 #line 687 "loader.l"
3073 FREE_AND_COPY(op->race, yval());
3074 YY_BREAK
3075 case 14:
3076 YY_RULE_SETUP
3077 #line 688 "loader.l"
3078 FREE_AND_COPY(op->slaying, yval());
3079 YY_BREAK
3080 case 15:
3081 YY_RULE_SETUP
3082 #line 689 "loader.l"
3083 {
3084 if (op->arch) {
3085 /*
3086 Here an object must be inserted into another object,
3087 during archetypes, artifact or map loading.
3088
3089 The logic is as follow:
3090 - in linemode, we are loading artifacts, so just
3091 increase depth, next calls will work on object
3092 in inventory, and insertion in previous object done
3093 in the "end" part
3094 - when not in linemode, two cases:
3095 - arch_init is not set, then we are loading a map
3096 - arch_init is set, we are loading archetypes,
3097 discard the object, it'll be handled in a second pass
3098 */
3099 object *tmp;
3100 char *yv = yval();
3101
3102 tmp = object_new();
3103 tmp->arch = try_find_archetype(yv);
3104 if (tmp->arch != NULL)
3105 object_copy(&tmp->arch->clone, tmp);
3106 else {
3107 if (tmp->name)
3108 free_string(tmp->name);
3109 /* record the name of the broken object */
3110 tmp->name = add_string(yv);
3111 }
3112 strcpy(msgbuf, "");
3113 strcpy(lorebuf, "");
3114 msglen = 0;
3115 total_msglen = 0;
3116 (*depth)++;
3117 items[*depth] = tmp;
3118 if (linemode == 0) {
3119 lex_load(depth, items, maxdepth, map_flags, linemode);
3120 (*depth)--;
3121 if (tmp->arch && (arch_init == 0)) {
3122 /* Map loading, object into another object*/
3123 object_insert_in_ob(tmp, op);
3124 } else {
3125 /* Archetypes loading or invalid object in a map */
3126 if (arch_init == 0)
3127 LOG(llevDebug, "Discarding object without arch: %s\n", tmp->name ? tmp->name : "(null)");
3128 object_free_drop_inventory(tmp);
3129 }
3130 }
3131 } else {
3132 /* Here we are loading an object in a map, on a spot, not
3133 * in another object's inventory */
3134 char *yv = yval();
3135
3136 op->arch = try_find_archetype(yv);
3137 if (op->arch != NULL)
3138 object_copy(&op->arch->clone, op);
3139 else if (!arch_init) {
3140 if (op->name)
3141 free_string(op->name);
3142 /* record the name of the broken object */
3143 op->name = add_string(yv);
3144 }
3145 }
3146 }
3147 YY_BREAK
3148 case 16:
3149 YY_RULE_SETUP
3150 #line 753 "loader.l"
3151 {
3152 const char *yv = yval();
3153 const artifact *art = find_artifact(op, yv);
3154 if (art == NULL) {
3155 LOG(llevError, "can't find artifact %s [%d]\n for loading", yv, op->type);
3156 } else {
3157 give_artifact_abilities(op, art->item);
3158 }
3159 }
3160 YY_BREAK
3161 case 17:
3162 YY_RULE_SETUP
3163 #line 763 "loader.l"
3164 op->other_arch = try_find_archetype(yval());
3165 YY_BREAK
3166 case 18:
3167 YY_RULE_SETUP
3168 #line 764 "loader.l"
3169 {
3170 if (strcmp (yval(), "NONE") == 0) {
3171 op->animation = NULL;
3172 CLEAR_FLAG (op, FLAG_ANIMATE);
3173 } else {
3174 op->animation = find_animation (yval());
3175 SET_FLAG (op, FLAG_ANIMATE);
3176 }
3177 }
3178 YY_BREAK
3179 case 19:
3180 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
3181 (yy_c_buf_p) = yy_cp -= 1;
3182 YY_DO_BEFORE_ACTION; /* set up yytext again */
3183 YY_RULE_SETUP
3184 #line 774 "loader.l"
3185 { /* We need to record that this is a multipart object,
3186 * so the calling function can glue things back together
3187 */
3188 ismore = 1;
3189 }
3190 YY_BREAK
3191 case 20:
3192 *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
3193 (yy_c_buf_p) = yy_cp -= 1;
3194 YY_DO_BEFORE_ACTION; /* set up yytext again */
3195 YY_RULE_SETUP
3196 #line 780 "loader.l"
3197 {
3198 seen_object = false;
3199 check_loaded_object(op);
3200 if (linemode) {
3201 /* Linemode is only set for artifact loading. */
3202 if ((*depth) > 0) {
3203 /* Object we finished is in another object's inventory */
3204 object_insert_in_ob(items[*depth], items[(*depth)-1]);
3205 }
3206 return LL_NORMAL;
3207 }
3208 if (ismore)
3209 return LL_MORE;
3210 else
3211 return LL_NORMAL;
3212 }
3213 YY_BREAK
3214 case 21:
3215 YY_RULE_SETUP
3216 #line 796 "loader.l"
3217 op->last_heal = IVAL;
3218 YY_BREAK
3219 case 22:
3220 YY_RULE_SETUP
3221 #line 797 "loader.l"
3222 op->last_sp = IVAL;
3223 YY_BREAK
3224 case 23:
3225 YY_RULE_SETUP
3226 #line 798 "loader.l"
3227 op->last_grace = IVAL;
3228 YY_BREAK
3229 case 24:
3230 YY_RULE_SETUP
3231 #line 799 "loader.l"
3232 op->last_eat = IVAL;
3233 YY_BREAK
3234 case 25:
3235 YY_RULE_SETUP
3236 #line 800 "loader.l"
3237 {
3238 op->speed = FVAL;
3239 if (!(map_flags&MAP_STYLE)) {
3240 if (op->speed < 0) {
3241 op->speed_left = op->speed_left-RANDOM()%100/100.0;
3242 op->speed = -op->speed; // Make this always positive
3243 }
3244 object_update_speed(op);
3245 }
3246 }
3247 YY_BREAK
3248 case 26:
3249 YY_RULE_SETUP
3250 #line 810 "loader.l"
3251 op->speed_left = FVAL;
3252 YY_BREAK
3253 case 27:
3254 YY_RULE_SETUP
3255 #line 812 "loader.l"
3256 op->weapon_speed_left = FVAL;
3257 YY_BREAK
3258 case 28:
3259 YY_RULE_SETUP
3260 #line 813 "loader.l"
3261 op->weapon_speed = FVAL;
3262 YY_BREAK
3263 case 29:
3264 YY_RULE_SETUP
3265 #line 815 "loader.l"
3266 {
3267 op->move_slow |= MOVE_WALK;
3268 op->move_slow_penalty = FVAL;
3269 }
3270 YY_BREAK
3271 case 30:
3272 YY_RULE_SETUP
3273 #line 819 "loader.l"
3274 {
3275 char *y = yval();
3276
3277 if (*y == '\0')
3278 LOG(llevError, "Title without value.\n");
3279 else
3280 FREE_AND_COPY(op->title, y);
3281 }
3282 YY_BREAK
3283 case 31:
3284 YY_RULE_SETUP
3285 #line 828 "loader.l"
3286 {
3287 const char *name = yval();
3288 op->face = find_face(yval(), NULL);
3289 if (op->face == NULL)
3290 LOG(llevError, "couldn't find face %s for %s\n", name, op->arch ? op->arch->name : op->name);
3291 }
3292 YY_BREAK
3293 case 32:
3294 YY_RULE_SETUP
3295 #line 834 "loader.l"
3296 op->stats.Str = IVAL;
3297 YY_BREAK
3298 case 33:
3299 YY_RULE_SETUP
3300 #line 835 "loader.l"
3301 op->stats.Dex = IVAL;
3302 YY_BREAK
3303 case 34:
3304 YY_RULE_SETUP
3305 #line 836 "loader.l"
3306 op->stats.Con = IVAL;
3307 YY_BREAK
3308 case 35:
3309 YY_RULE_SETUP
3310 #line 837 "loader.l"
3311 op->stats.Wis = IVAL;
3312 YY_BREAK
3313 case 36:
3314 YY_RULE_SETUP
3315 #line 838 "loader.l"
3316 op->stats.Cha = IVAL;
3317 YY_BREAK
3318 case 37:
3319 YY_RULE_SETUP
3320 #line 839 "loader.l"
3321 op->stats.Int = IVAL;
3322 YY_BREAK
3323 case 38:
3324 YY_RULE_SETUP
3325 #line 840 "loader.l"
3326 op->stats.Pow = IVAL;
3327 YY_BREAK
3328 case 39:
3329 YY_RULE_SETUP
3330 #line 841 "loader.l"
3331 op->stats.hp = IVAL;
3332 YY_BREAK
3333 case 40:
3334 YY_RULE_SETUP
3335 #line 842 "loader.l"
3336 op->stats.maxhp = IVAL;
3337 YY_BREAK
3338 case 41:
3339 YY_RULE_SETUP
3340 #line 843 "loader.l"
3341 op->stats.sp = IVAL;
3342 YY_BREAK
3343 case 42:
3344 YY_RULE_SETUP
3345 #line 844 "loader.l"
3346 op->stats.maxsp = IVAL;
3347 YY_BREAK
3348 case 43:
3349 YY_RULE_SETUP
3350 #line 845 "loader.l"
3351 op->stats.grace = IVAL;
3352 YY_BREAK
3353 case 44:
3354 YY_RULE_SETUP
3355 #line 846 "loader.l"
3356 op->stats.maxgrace = IVAL;
3357 YY_BREAK
3358 case 45:
3359 YY_RULE_SETUP
3360 #line 847 "loader.l"
3361 op->stats.exp = atoll(yval());
3362 YY_BREAK
3363 case 46:
3364 YY_RULE_SETUP
3365 #line 848 "loader.l"
3366 op->total_exp = atoll(yval());
3367 YY_BREAK
3368 case 47:
3369 YY_RULE_SETUP
3370 #line 849 "loader.l"
3371 op->total_exp = (atoll(yval()) * 100 / settings.permanent_exp_ratio);
3372 YY_BREAK
3373 case 48:
3374 YY_RULE_SETUP
3375 #line 850 "loader.l"
3376 op->stats.food = IVAL;
3377 YY_BREAK
3378 case 49:
3379 YY_RULE_SETUP
3380 #line 851 "loader.l"
3381 op->stats.dam = IVAL;
3382 YY_BREAK
3383 case 50:
3384 YY_RULE_SETUP
3385 #line 852 "loader.l"
3386 op->stats.wc = IVAL;
3387 YY_BREAK
3388 case 51:
3389 YY_RULE_SETUP
3390 #line 853 "loader.l"
3391 op->stats.ac = IVAL;
3392 YY_BREAK
3393 case 52:
3394 YY_RULE_SETUP
3395 #line 854 "loader.l"
3396 { op->x = IVAL; op->ox= op->x; }
3397 YY_BREAK
3398 case 53:
3399 YY_RULE_SETUP
3400 #line 855 "loader.l"
3401 { op->y = IVAL; op->oy= op->y; }
3402 YY_BREAK
3403 case 54:
3404 YY_RULE_SETUP
3405 #line 856 "loader.l"
3406 op->nrof= atol(yval());
3407 YY_BREAK
3408 case 55:
3409 YY_RULE_SETUP
3410 #line 857 "loader.l"
3411 op->level = IVAL;
3412 YY_BREAK
3413 case 56:
3414 YY_RULE_SETUP
3415 #line 858 "loader.l"
3416 op->direction = IVAL;
3417 YY_BREAK
3418 case 57:
3419 YY_RULE_SETUP
3420 #line 859 "loader.l"
3421 op->type = IVAL;
3422 YY_BREAK
3423 case 58:
3424 YY_RULE_SETUP
3425 #line 860 "loader.l"
3426 op->subtype = IVAL;
3427 YY_BREAK
3428 case 59:
3429 YY_RULE_SETUP
3430 #line 861 "loader.l"
3431 op->material = IVAL;
3432 YY_BREAK
3433 case 60:
3434 YY_RULE_SETUP
3435 #line 862 "loader.l"
3436 {
3437 char *yv = yval();
3438
3439 if (*yv == '\0')
3440 LOG(llevError, "Materialname without val\n");
3441 else
3442 FREE_AND_COPY(op->materialname, yv);
3443 }
3444 YY_BREAK
3445 case 61:
3446 YY_RULE_SETUP
3447 #line 871 "loader.l"
3448 op->value = IVAL;
3449 YY_BREAK
3450 case 62:
3451 YY_RULE_SETUP
3452 #line 872 "loader.l"
3453 {
3454 op->weight = atol(yval());
3455 if (op->weight == 0) {
3456 SET_FLAG(op, FLAG_NO_PICK);
3457 }
3458 }
3459 YY_BREAK
3460 case 63:
3461 YY_RULE_SETUP
3462 #line 878 "loader.l"
3463 op->carrying = atol(yval());
3464 YY_BREAK
3465 case 64:
3466 YY_RULE_SETUP
3467 #line 879 "loader.l"
3468 op->attacktype = IVAL;
3469 YY_BREAK
3470 case 65:
3471 YY_RULE_SETUP
3472 #line 880 "loader.l"
3473 op->path_attuned = IVAL;
3474 YY_BREAK
3475 case 66:
3476 YY_RULE_SETUP
3477 #line 881 "loader.l"
3478 op->path_repelled = IVAL;
3479 YY_BREAK
3480 case 67:
3481 YY_RULE_SETUP
3482 #line 882 "loader.l"
3483 op->path_denied = IVAL;
3484 YY_BREAK
3485 case 68:
3486 YY_RULE_SETUP
3487 #line 883 "loader.l"
3488 op->invisible = IVAL;
3489 YY_BREAK
3490 case 69:
3491 YY_RULE_SETUP
3492 #line 884 "loader.l"
3493 op->magic = IVAL;
3494 YY_BREAK
3495 case 70:
3496 YY_RULE_SETUP
3497 #line 885 "loader.l"
3498 op->state = IVAL;
3499 YY_BREAK
3500 case 71:
3501 YY_RULE_SETUP
3502 #line 886 "loader.l"
3503 SET_OR_CLEAR_FLAG(op, FLAG_ALIVE, IVAL);
3504 YY_BREAK
3505 case 72:
3506 YY_RULE_SETUP
3507 #line 887 "loader.l"
3508 SET_OR_CLEAR_FLAG(op, FLAG_APPLIED, IVAL);
3509 YY_BREAK
3510 case 73:
3511 YY_RULE_SETUP
3512 #line 888 "loader.l"
3513 SET_OR_CLEAR_FLAG(op, FLAG_UNPAID, IVAL);
3514 YY_BREAK
3515 case 74:
3516 YY_RULE_SETUP
3517 #line 889 "loader.l"
3518 SET_OR_CLEAR_FLAG(op, FLAG_ANIMATE, IVAL);
3519 YY_BREAK
3520 case 75:
3521 YY_RULE_SETUP
3522 #line 890 "loader.l"
3523 SET_OR_CLEAR_FLAG(op, FLAG_NO_PICK, IVAL);
3524 YY_BREAK
3525 case 76:
3526 YY_RULE_SETUP
3527 #line 891 "loader.l"
3528 SET_OR_CLEAR_FLAG(op, FLAG_CLIENT_ANIM_SYNC, IVAL);
3529 YY_BREAK
3530 case 77:
3531 YY_RULE_SETUP
3532 #line 892 "loader.l"
3533 SET_OR_CLEAR_FLAG(op, FLAG_CLIENT_ANIM_RANDOM, IVAL);
3534 YY_BREAK
3535 /* These are the new values */
3536
3537 case 78:
3538 YY_RULE_SETUP
3539 #line 896 "loader.l"
3540 set_move(&op->move_block, yval(), "block");
3541 YY_BREAK
3542 case 79:
3543 YY_RULE_SETUP
3544 #line 897 "loader.l"
3545 set_move(&op->move_allow, yval(), "allow");
3546 YY_BREAK
3547 case 80:
3548 YY_RULE_SETUP
3549 #line 898 "loader.l"
3550 set_move(&op->move_type, yval(), "type");
3551 YY_BREAK
3552 case 81:
3553 YY_RULE_SETUP
3554 #line 899 "loader.l"
3555 set_move(&op->move_on, yval(), "on");
3556 YY_BREAK
3557 case 82:
3558 YY_RULE_SETUP
3559 #line 900 "loader.l"
3560 set_move(&op->move_off, yval(), "off");
3561 YY_BREAK
3562 case 83:
3563 YY_RULE_SETUP
3564 #line 901 "loader.l"
3565 set_move(&op->move_slow, yval(), "slow");
3566 YY_BREAK
3567 case 84:
3568 YY_RULE_SETUP
3569 #line 902 "loader.l"
3570 op->move_slow_penalty = FVAL;
3571 YY_BREAK
3572 case 85:
3573 YY_RULE_SETUP
3574 #line 905 "loader.l"
3575 SET_OR_CLEAR_FLAG(op, FLAG_MONSTER, IVAL);
3576 YY_BREAK
3577 case 86:
3578 YY_RULE_SETUP
3579 #line 906 "loader.l"
3580 SET_OR_CLEAR_FLAG(op, FLAG_NEUTRAL, IVAL);
3581 YY_BREAK
3582 case 87:
3583 YY_RULE_SETUP
3584 #line 907 "loader.l"
3585 SET_OR_CLEAR_FLAG(op, FLAG_NO_ATTACK, IVAL);
3586 YY_BREAK
3587 case 88:
3588 YY_RULE_SETUP
3589 #line 908 "loader.l"
3590 SET_OR_CLEAR_FLAG(op, FLAG_NO_DAMAGE, IVAL);
3591 YY_BREAK
3592 case 89:
3593 YY_RULE_SETUP
3594 #line 909 "loader.l"
3595 {
3596 if (IVAL) {
3597 SET_FLAG(op, FLAG_FRIENDLY);
3598 if (op->type != PLAYER) {
3599 LOG(llevDebug, " Adding friendly object %s.\n", op->name);
3600 add_friendly_object(op);
3601 }
3602 }
3603 else
3604 CLEAR_FLAG(op, FLAG_FRIENDLY);
3605 }
3606 YY_BREAK
3607 case 90:
3608 YY_RULE_SETUP
3609 #line 920 "loader.l"
3610 SET_OR_CLEAR_FLAG(op, FLAG_GENERATOR, IVAL);
3611 YY_BREAK
3612 case 91:
3613 YY_RULE_SETUP
3614 #line 921 "loader.l"
3615 SET_OR_CLEAR_FLAG (op, FLAG_CONTENT_ON_GEN, IVAL);
3616 YY_BREAK
3617 case 92:
3618 YY_RULE_SETUP
3619 #line 922 "loader.l"
3620 SET_OR_CLEAR_FLAG(op, FLAG_IS_THROWN, IVAL);
3621 YY_BREAK
3622 case 93:
3623 YY_RULE_SETUP
3624 #line 923 "loader.l"
3625 SET_OR_CLEAR_FLAG(op, FLAG_AUTO_APPLY, IVAL);
3626 YY_BREAK
3627 case 94:
3628 YY_RULE_SETUP
3629 #line 924 "loader.l"
3630 SET_OR_CLEAR_FLAG(op, FLAG_TREASURE, IVAL);
3631 YY_BREAK
3632 case 95:
3633 YY_RULE_SETUP
3634 #line 925 "loader.l"
3635 SET_OR_CLEAR_FLAG(op, FLAG_SEE_INVISIBLE, IVAL);
3636 YY_BREAK
3637 case 96:
3638 YY_RULE_SETUP
3639 #line 926 "loader.l"
3640 SET_OR_CLEAR_FLAG(op, FLAG_CAN_ROLL, IVAL);
3641 YY_BREAK
3642 case 97:
3643 YY_RULE_SETUP
3644 #line 927 "loader.l"
3645 SET_OR_CLEAR_FLAG(op, FLAG_OVERLAY_FLOOR, IVAL);
3646 YY_BREAK
3647 case 98:
3648 YY_RULE_SETUP
3649 #line 928 "loader.l"
3650 SET_OR_CLEAR_FLAG(op, FLAG_IS_TURNABLE, IVAL);
3651 YY_BREAK
3652 case 99:
3653 YY_RULE_SETUP
3654 #line 929 "loader.l"
3655 SET_OR_CLEAR_FLAG(op, FLAG_IS_USED_UP, IVAL);
3656 YY_BREAK
3657 case 100:
3658 YY_RULE_SETUP
3659 #line 930 "loader.l"
3660 {
3661 if (IVAL) {
3662 SET_FLAG(op, FLAG_IDENTIFIED);
3663 CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL);
3664 }
3665 else
3666 CLEAR_FLAG(op, FLAG_IDENTIFIED);
3667 }
3668 YY_BREAK
3669 case 101:
3670 YY_RULE_SETUP
3671 #line 938 "loader.l"
3672 SET_OR_CLEAR_FLAG(op, FLAG_REFLECTING, IVAL);
3673 YY_BREAK
3674 case 102:
3675 YY_RULE_SETUP
3676 #line 939 "loader.l"
3677 SET_OR_CLEAR_FLAG(op, FLAG_CHANGING, IVAL);
3678 YY_BREAK
3679 case 103:
3680 YY_RULE_SETUP
3681 #line 940 "loader.l"
3682 SET_OR_CLEAR_FLAG(op, FLAG_SPLITTING, IVAL);
3683 YY_BREAK
3684 case 104:
3685 YY_RULE_SETUP
3686 #line 941 "loader.l"
3687 SET_OR_CLEAR_FLAG(op, FLAG_HITBACK, IVAL);
3688 YY_BREAK
3689 case 105:
3690 YY_RULE_SETUP
3691 #line 942 "loader.l"
3692 SET_OR_CLEAR_FLAG(op, FLAG_STARTEQUIP, IVAL);
3693 YY_BREAK
3694 case 106:
3695 YY_RULE_SETUP
3696 #line 943 "loader.l"
3697 SET_OR_CLEAR_FLAG(op, FLAG_BLOCKSVIEW, IVAL);
3698 YY_BREAK
3699 case 107:
3700 YY_RULE_SETUP
3701 #line 944 "loader.l"
3702 { /* This field is used by Gridarta, so it's not an error. */ }
3703 YY_BREAK
3704 case 108:
3705 YY_RULE_SETUP
3706 #line 945 "loader.l"
3707 SET_OR_CLEAR_FLAG(op, FLAG_UNDEAD, IVAL);
3708 YY_BREAK
3709 case 109:
3710 YY_RULE_SETUP
3711 #line 946 "loader.l"
3712 SET_OR_CLEAR_FLAG(op, FLAG_SCARED, IVAL);
3713 YY_BREAK
3714 case 110:
3715 YY_RULE_SETUP
3716 #line 947 "loader.l"
3717 SET_OR_CLEAR_FLAG(op, FLAG_UNAGGRESSIVE, IVAL);
3718 YY_BREAK
3719 case 111:
3720 YY_RULE_SETUP
3721 #line 948 "loader.l"
3722 SET_OR_CLEAR_FLAG(op, FLAG_REFL_MISSILE, IVAL);
3723 YY_BREAK
3724 case 112:
3725 YY_RULE_SETUP
3726 #line 949 "loader.l"
3727 SET_OR_CLEAR_FLAG(op, FLAG_REFL_SPELL, IVAL);
3728 YY_BREAK
3729 case 113:
3730 YY_RULE_SETUP
3731 #line 950 "loader.l"
3732 SET_OR_CLEAR_FLAG(op, FLAG_NO_MAGIC, IVAL);
3733 YY_BREAK
3734 case 114:
3735 YY_RULE_SETUP
3736 #line 951 "loader.l"
3737 {
3738 if (IVAL) {
3739 SET_FLAG(op, FLAG_WIZ);
3740 SET_FLAG(op, FLAG_WAS_WIZ);
3741 SET_FLAG(op, FLAG_WIZPASS);
3742 SET_FLAG(op, FLAG_WIZCAST);
3743 } else {
3744 CLEAR_FLAG(op, FLAG_WIZ);
3745 CLEAR_FLAG(op, FLAG_WIZPASS);
3746 CLEAR_FLAG(op, FLAG_WIZCAST);
3747 }
3748 }
3749 YY_BREAK
3750 case 115:
3751 YY_RULE_SETUP
3752 #line 963 "loader.l"
3753 SET_OR_CLEAR_FLAG(op, FLAG_WAS_WIZ, IVAL);
3754 YY_BREAK
3755 case 116:
3756 YY_RULE_SETUP
3757 #line 964 "loader.l"
3758 SET_OR_CLEAR_FLAG(op, FLAG_NO_FIX_PLAYER, IVAL);
3759 YY_BREAK
3760 case 117:
3761 YY_RULE_SETUP
3762 #line 965 "loader.l"
3763 SET_OR_CLEAR_FLAG(op, FLAG_IS_LIGHTABLE, IVAL);
3764 YY_BREAK
3765 case 118:
3766 YY_RULE_SETUP
3767 #line 966 "loader.l"
3768 SET_OR_CLEAR_FLAG(op, FLAG_TEAR_DOWN, IVAL);
3769 YY_BREAK
3770 case 119:
3771 YY_RULE_SETUP
3772 #line 967 "loader.l"
3773 op->stats.luck = IVAL;
3774 YY_BREAK
3775 case 120:
3776 YY_RULE_SETUP
3777 #line 968 "loader.l"
3778 op->run_away = IVAL;
3779 YY_BREAK
3780 case 121:
3781 YY_RULE_SETUP
3782 #line 969 "loader.l"
3783 op->pick_up = IVAL;
3784 YY_BREAK
3785 case 122:
3786 YY_RULE_SETUP
3787 #line 970 "loader.l"
3788 op->item_power = IVAL;
3789 YY_BREAK
3790 case 123:
3791 YY_RULE_SETUP
3792 #line 971 "loader.l"
3793 op->gen_sp_armour = IVAL;
3794 YY_BREAK
3795 case 124:
3796 YY_RULE_SETUP
3797 #line 972 "loader.l"
3798 op->anim_speed = IVAL;
3799 YY_BREAK
3800 case 125:
3801 YY_RULE_SETUP
3802 #line 973 "loader.l"
3803 op->weight_limit = IVAL;
3804 YY_BREAK
3805 case 126:
3806 YY_RULE_SETUP
3807 #line 974 "loader.l"
3808 SET_OR_CLEAR_FLAG(op, FLAG_NO_DROP, IVAL);
3809 YY_BREAK
3810 case 127:
3811 YY_RULE_SETUP
3812 #line 975 "loader.l"
3813 op->will_apply = IVAL;
3814 YY_BREAK
3815 case 128:
3816 YY_RULE_SETUP
3817 #line 976 "loader.l"
3818 SET_OR_CLEAR_FLAG(op, FLAG_RANDOM_MOVE, IVAL);
3819 YY_BREAK
3820 case 129:
3821 YY_RULE_SETUP
3822 #line 977 "loader.l"
3823 SET_OR_CLEAR_FLAG(op, FLAG_USE_SHIELD, IVAL);
3824 YY_BREAK
3825 case 130:
3826 YY_RULE_SETUP
3827 #line 978 "loader.l"
3828 SET_OR_CLEAR_FLAG(op, FLAG_CAST_SPELL, IVAL);
3829 YY_BREAK
3830 case 131:
3831 YY_RULE_SETUP
3832 #line 979 "loader.l"
3833 SET_OR_CLEAR_FLAG(op, FLAG_USE_SCROLL, IVAL);
3834 YY_BREAK
3835 case 132:
3836 YY_RULE_SETUP
3837 #line 980 "loader.l"
3838 SET_OR_CLEAR_FLAG(op, FLAG_USE_RANGE, IVAL);
3839 YY_BREAK
3840 case 133:
3841 YY_RULE_SETUP
3842 #line 981 "loader.l"
3843 SET_OR_CLEAR_FLAG(op, FLAG_USE_BOW, IVAL);
3844 YY_BREAK
3845 case 134:
3846 YY_RULE_SETUP
3847 #line 982 "loader.l"
3848 SET_OR_CLEAR_FLAG(op, FLAG_USE_ARMOUR, IVAL);
3849 YY_BREAK
3850 case 135:
3851 YY_RULE_SETUP
3852 #line 983 "loader.l"
3853 SET_OR_CLEAR_FLAG(op, FLAG_USE_WEAPON, IVAL);
3854 YY_BREAK
3855 case 136:
3856 YY_RULE_SETUP
3857 #line 984 "loader.l"
3858 SET_OR_CLEAR_FLAG(op, FLAG_USE_RING, IVAL);
3859 YY_BREAK
3860 case 137:
3861 YY_RULE_SETUP
3862 #line 985 "loader.l"
3863 SET_OR_CLEAR_FLAG(op, FLAG_READY_BOW, IVAL);
3864 YY_BREAK
3865 case 138:
3866 YY_RULE_SETUP
3867 #line 986 "loader.l"
3868 SET_OR_CLEAR_FLAG(op, FLAG_XRAYS, IVAL);
3869 YY_BREAK
3870 case 139:
3871 YY_RULE_SETUP
3872 #line 987 "loader.l"
3873 SET_OR_CLEAR_FLAG(op, FLAG_IS_FLOOR, IVAL);
3874 YY_BREAK
3875 case 140:
3876 YY_RULE_SETUP
3877 #line 988 "loader.l"
3878 SET_OR_CLEAR_FLAG(op, FLAG_LIFESAVE, IVAL);
3879 YY_BREAK
3880 case 141:
3881 YY_RULE_SETUP
3882 #line 989 "loader.l"
3883 SET_OR_CLEAR_FLAG(op, FLAG_NO_STRENGTH, IVAL);
3884 YY_BREAK
3885 case 142:
3886 YY_RULE_SETUP
3887 #line 990 "loader.l"
3888 SET_OR_CLEAR_FLAG(op, FLAG_SLEEP, IVAL);
3889 YY_BREAK
3890 case 143:
3891 YY_RULE_SETUP
3892 #line 991 "loader.l"
3893 SET_OR_CLEAR_FLAG(op, FLAG_STAND_STILL, IVAL);
3894 YY_BREAK
3895 case 144:
3896 YY_RULE_SETUP
3897 #line 992 "loader.l"
3898 SET_OR_CLEAR_FLAG(op, FLAG_ONLY_ATTACK, IVAL);
3899 YY_BREAK
3900 case 145:
3901 YY_RULE_SETUP
3902 #line 994 "loader.l"
3903 SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_PUSH, IVAL);
3904 YY_BREAK
3905 case 146:
3906 YY_RULE_SETUP
3907 #line 995 "loader.l"
3908 SET_OR_CLEAR_FLAG(op, FLAG_ACTIVATE_ON_RELEASE, IVAL);
3909 YY_BREAK
3910 /* Start of various attacktypes */
3911 case 147:
3912 YY_RULE_SETUP
3913 #line 998 "loader.l"
3914 SET_RESIST(op, ATNR_PHYSICAL, IVAL);
3915 YY_BREAK
3916 case 148:
3917 YY_RULE_SETUP
3918 #line 999 "loader.l"
3919 SET_RESIST(op, ATNR_MAGIC, IVAL);
3920 YY_BREAK
3921 case 149:
3922 YY_RULE_SETUP
3923 #line 1000 "loader.l"
3924 SET_RESIST(op, ATNR_FIRE, IVAL);
3925 YY_BREAK
3926 case 150:
3927 YY_RULE_SETUP
3928 #line 1001 "loader.l"
3929 SET_RESIST(op, ATNR_ELECTRICITY, IVAL);
3930 YY_BREAK
3931 case 151:
3932 YY_RULE_SETUP
3933 #line 1002 "loader.l"
3934 SET_RESIST(op, ATNR_COLD, IVAL);
3935 YY_BREAK
3936 case 152:
3937 YY_RULE_SETUP
3938 #line 1003 "loader.l"
3939 SET_RESIST(op, ATNR_CONFUSION, IVAL);
3940 YY_BREAK
3941 case 153:
3942 YY_RULE_SETUP
3943 #line 1004 "loader.l"
3944 SET_RESIST(op, ATNR_ACID, IVAL);
3945 YY_BREAK
3946 case 154:
3947 YY_RULE_SETUP
3948 #line 1005 "loader.l"
3949 SET_RESIST(op, ATNR_DRAIN, IVAL);
3950 YY_BREAK
3951 case 155:
3952 YY_RULE_SETUP
3953 #line 1006 "loader.l"
3954 SET_RESIST(op, ATNR_WEAPONMAGIC, IVAL);
3955 YY_BREAK
3956 case 156:
3957 YY_RULE_SETUP
3958 #line 1007 "loader.l"
3959 SET_RESIST(op, ATNR_GHOSTHIT, IVAL);
3960 YY_BREAK
3961 case 157:
3962 YY_RULE_SETUP
3963 #line 1008 "loader.l"
3964 SET_RESIST(op, ATNR_POISON, IVAL);
3965 YY_BREAK
3966 case 158:
3967 YY_RULE_SETUP
3968 #line 1009 "loader.l"
3969 SET_RESIST(op, ATNR_SLOW, IVAL);
3970 YY_BREAK
3971 case 159:
3972 YY_RULE_SETUP
3973 #line 1010 "loader.l"
3974 SET_RESIST(op, ATNR_PARALYZE, IVAL);
3975 YY_BREAK
3976 case 160:
3977 YY_RULE_SETUP
3978 #line 1011 "loader.l"
3979 SET_RESIST(op, ATNR_TURN_UNDEAD, IVAL);
3980 YY_BREAK
3981 case 161:
3982 YY_RULE_SETUP
3983 #line 1012 "loader.l"
3984 SET_RESIST(op, ATNR_FEAR, IVAL);
3985 YY_BREAK
3986 case 162:
3987 YY_RULE_SETUP
3988 #line 1013 "loader.l"
3989 SET_RESIST(op, ATNR_CANCELLATION, IVAL);
3990 YY_BREAK
3991 case 163:
3992 YY_RULE_SETUP
3993 #line 1014 "loader.l"
3994 SET_RESIST(op, ATNR_DEPLETE, IVAL);
3995 YY_BREAK
3996 case 164:
3997 YY_RULE_SETUP
3998 #line 1015 "loader.l"
3999 SET_RESIST(op, ATNR_DEATH, IVAL);
4000 YY_BREAK
4001 case 165:
4002 YY_RULE_SETUP
4003 #line 1016 "loader.l"
4004 SET_RESIST(op, ATNR_CHAOS, IVAL);
4005 YY_BREAK
4006 case 166:
4007 YY_RULE_SETUP
4008 #line 1017 "loader.l"
4009 SET_RESIST(op, ATNR_COUNTERSPELL, IVAL);
4010 YY_BREAK
4011 case 167:
4012 YY_RULE_SETUP
4013 #line 1018 "loader.l"
4014 SET_RESIST(op, ATNR_GODPOWER, IVAL);
4015 YY_BREAK
4016 case 168:
4017 YY_RULE_SETUP
4018 #line 1019 "loader.l"
4019 SET_RESIST(op, ATNR_HOLYWORD, IVAL);
4020 YY_BREAK
4021 case 169:
4022 YY_RULE_SETUP
4023 #line 1020 "loader.l"
4024 SET_RESIST(op, ATNR_BLIND, IVAL);
4025 YY_BREAK
4026 case 170:
4027 YY_RULE_SETUP
4028 #line 1021 "loader.l"
4029 SET_RESIST(op, ATNR_INTERNAL, IVAL);
4030 YY_BREAK
4031 case 171:
4032 YY_RULE_SETUP
4033 #line 1022 "loader.l"
4034 SET_RESIST(op, ATNR_LIFE_STEALING, IVAL);
4035 YY_BREAK
4036 case 172:
4037 YY_RULE_SETUP
4038 #line 1023 "loader.l"
4039 SET_RESIST(op, ATNR_DISEASE, IVAL);
4040 YY_BREAK
4041 case 173:
4042 YY_RULE_SETUP
4043 #line 1024 "loader.l"
4044 op->attack_movement = IVAL;
4045 YY_BREAK
4046 case 174:
4047 YY_RULE_SETUP
4048 #line 1025 "loader.l"
4049 op->move_status = IVAL;
4050 YY_BREAK
4051 case 175:
4052 YY_RULE_SETUP
4053 #line 1026 "loader.l"
4054 SET_OR_CLEAR_FLAG(op, FLAG_CONFUSED, IVAL);
4055 YY_BREAK
4056 case 176:
4057 YY_RULE_SETUP
4058 #line 1027 "loader.l"
4059 SET_OR_CLEAR_FLAG(op, FLAG_STEALTH, IVAL);
4060 YY_BREAK
4061 case 177:
4062 YY_RULE_SETUP
4063 #line 1028 "loader.l"
4064 add_button_link(op, op->map, IVAL);
4065 YY_BREAK
4066 case 178:
4067 YY_RULE_SETUP
4068 #line 1029 "loader.l"
4069 SET_OR_CLEAR_FLAG(op, FLAG_CURSED, IVAL);
4070 YY_BREAK
4071 case 179:
4072 YY_RULE_SETUP
4073 #line 1030 "loader.l"
4074 SET_OR_CLEAR_FLAG(op, FLAG_DAMNED, IVAL);
4075 YY_BREAK
4076 case 180:
4077 YY_RULE_SETUP
4078 #line 1031 "loader.l"
4079 SET_OR_CLEAR_FLAG(op, FLAG_BLESSED, IVAL);
4080 YY_BREAK
4081 case 181:
4082 YY_RULE_SETUP
4083 #line 1032 "loader.l"
4084 SET_OR_CLEAR_FLAG(op, FLAG_SEE_ANYWHERE, IVAL);
4085 YY_BREAK
4086 case 182:
4087 YY_RULE_SETUP
4088 #line 1033 "loader.l"
4089 SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_MAGICAL, IVAL);
4090 YY_BREAK
4091 case 183:
4092 YY_RULE_SETUP
4093 #line 1034 "loader.l"
4094 SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_CURSED, IVAL);
4095 YY_BREAK
4096 case 184:
4097 YY_RULE_SETUP
4098 #line 1035 "loader.l"
4099 SET_OR_CLEAR_FLAG(op, FLAG_KNOWN_BLESSED, IVAL);
4100 YY_BREAK
4101 case 185:
4102 YY_RULE_SETUP
4103 #line 1036 "loader.l"
4104 SET_OR_CLEAR_FLAG(op, FLAG_CAN_USE_SKILL, IVAL);
4105 YY_BREAK
4106 case 186:
4107 YY_RULE_SETUP
4108 #line 1037 "loader.l"
4109 SET_OR_CLEAR_FLAG(op, FLAG_BEEN_APPLIED, IVAL);
4110 YY_BREAK
4111 case 187:
4112 YY_RULE_SETUP
4113 #line 1038 "loader.l"
4114 SET_OR_CLEAR_FLAG(op, FLAG_READY_SCROLL, IVAL);
4115 YY_BREAK
4116 case 188:
4117 YY_RULE_SETUP
4118 #line 1039 "loader.l"
4119 op->expmul = FVAL;
4120 YY_BREAK
4121 case 189:
4122 YY_RULE_SETUP
4123 #line 1040 "loader.l"
4124 SET_OR_CLEAR_FLAG(op, FLAG_UNIQUE, IVAL);
4125 YY_BREAK
4126 case 190:
4127 YY_RULE_SETUP
4128 #line 1041 "loader.l"
4129 SET_OR_CLEAR_FLAG(op, FLAG_MAKE_INVIS, IVAL);
4130 YY_BREAK
4131 case 191:
4132 YY_RULE_SETUP
4133 #line 1042 "loader.l"
4134 SET_OR_CLEAR_FLAG(op, FLAG_INV_LOCKED, IVAL);
4135 YY_BREAK
4136 case 192:
4137 YY_RULE_SETUP
4138 #line 1043 "loader.l"
4139 SET_OR_CLEAR_FLAG(op, FLAG_IS_WOODED, IVAL);
4140 YY_BREAK
4141 case 193:
4142 YY_RULE_SETUP
4143 #line 1044 "loader.l"
4144 SET_OR_CLEAR_FLAG(op, FLAG_IS_HILLY, IVAL);
4145 YY_BREAK
4146 case 194:
4147 YY_RULE_SETUP
4148 #line 1045 "loader.l"
4149 SET_OR_CLEAR_FLAG(op, FLAG_IS_WATER, IVAL);
4150 YY_BREAK
4151 case 195:
4152 YY_RULE_SETUP
4153 #line 1046 "loader.l"
4154 SET_OR_CLEAR_FLAG(op, FLAG_READY_SKILL, IVAL);
4155 YY_BREAK
4156 case 196:
4157 YY_RULE_SETUP
4158 #line 1047 "loader.l"
4159 SET_OR_CLEAR_FLAG(op, FLAG_READY_WEAPON, IVAL);
4160 YY_BREAK
4161 case 197:
4162 YY_RULE_SETUP
4163 #line 1048 "loader.l"
4164 SET_OR_CLEAR_FLAG(op, FLAG_NO_SKILL_IDENT, IVAL);
4165 YY_BREAK
4166 case 198:
4167 YY_RULE_SETUP
4168 #line 1049 "loader.l"
4169 op->glow_radius = IVAL;
4170 YY_BREAK
4171 case 199:
4172 YY_RULE_SETUP
4173 #line 1050 "loader.l"
4174 SET_OR_CLEAR_FLAG(op, FLAG_BLIND, IVAL);
4175 YY_BREAK
4176 case 200:
4177 YY_RULE_SETUP
4178 #line 1051 "loader.l"
4179 SET_OR_CLEAR_FLAG(op, FLAG_SEE_IN_DARK, IVAL);
4180 YY_BREAK
4181 case 201:
4182 YY_RULE_SETUP
4183 #line 1052 "loader.l"
4184 SET_OR_CLEAR_FLAG(op, FLAG_IS_CAULDRON, IVAL);
4185 YY_BREAK
4186 case 202:
4187 YY_RULE_SETUP
4188 #line 1053 "loader.l"
4189 op->randomitems = find_treasurelist(yval());
4190 YY_BREAK
4191 case 203:
4192 YY_RULE_SETUP
4193 #line 1054 "loader.l"
4194 SET_OR_CLEAR_FLAG(op, FLAG_NO_STEAL, IVAL);
4195 YY_BREAK
4196 case 204:
4197 YY_RULE_SETUP
4198 #line 1055 "loader.l"
4199 SET_OR_CLEAR_FLAG(op, FLAG_ONE_HIT, IVAL);
4200 YY_BREAK
4201 case 205:
4202 YY_RULE_SETUP
4203 #line 1056 "loader.l"
4204 SET_OR_CLEAR_FLAG(op, FLAG_BERSERK, IVAL);
4205 YY_BREAK
4206 case 206:
4207 YY_RULE_SETUP
4208 #line 1058 "loader.l"
4209 { /* Some archetypes have these values in them */ }
4210 YY_BREAK
4211 case 207:
4212 YY_RULE_SETUP
4213 #line 1059 "loader.l"
4214 { /* Probably the pupland archetypes - I imagined */ }
4215 YY_BREAK
4216 case 208:
4217 YY_RULE_SETUP
4218 #line 1060 "loader.l"
4219 { /* That these are for the new combat code */ }
4220 YY_BREAK
4221 case 209:
4222 YY_RULE_SETUP
4223 #line 1061 "loader.l"
4224 { /* just ignore for now */ }
4225 YY_BREAK
4226 case 210:
4227 YY_RULE_SETUP
4228 #line 1062 "loader.l"
4229 { }
4230 YY_BREAK
4231 case 211:
4232 YY_RULE_SETUP
4233 #line 1063 "loader.l"
4234 op->weapontype = IVAL;
4235 YY_BREAK
4236 case 212:
4237 YY_RULE_SETUP
4238 #line 1064 "loader.l"
4239 op->casting_time = FVAL;
4240 YY_BREAK
4241 case 213:
4242 YY_RULE_SETUP
4243 #line 1065 "loader.l"
4244 op->smoothlevel = IVAL;
4245 YY_BREAK
4246 case 214:
4247 YY_RULE_SETUP
4248 #line 1066 "loader.l"
4249 {
4250 if (IVAL)
4251 op->map_layer = IVAL;
4252 else {
4253 int i;
4254 char *cp = yval();
4255
4256 for (i = 0; i < MAP_LAYERS; i++) {
4257 if (!strcasecmp(cp, map_layer_name[i])) {
4258 op->map_layer = i;
4259 break;
4260 }
4261 }
4262 if (i == MAP_LAYERS) {
4263 LOG(llevError, "Invalid map_layer name found: %s\n", cp);
4264 }
4265 }
4266 }
4267 YY_BREAK
4268 case 215:
4269 YY_RULE_SETUP
4270 #line 1084 "loader.l"
4271 op->client_type = IVAL;
4272 YY_BREAK
4273 case 216:
4274 YY_RULE_SETUP
4275 #line 1085 "loader.l"
4276 set_body_info(op, yytext);
4277 YY_BREAK
4278 case 217:
4279 YY_RULE_SETUP
4280 #line 1086 "loader.l"
4281 op->duration = IVAL;
4282 YY_BREAK
4283 case 218:
4284 YY_RULE_SETUP
4285 #line 1087 "loader.l"
4286 op->range = IVAL;
4287 YY_BREAK
4288 case 219:
4289 YY_RULE_SETUP
4290 #line 1088 "loader.l"
4291 op->range_modifier = IVAL;
4292 YY_BREAK
4293 case 220:
4294 YY_RULE_SETUP
4295 #line 1089 "loader.l"
4296 op->dam_modifier = IVAL;
4297 YY_BREAK
4298 case 221:
4299 YY_RULE_SETUP
4300 #line 1090 "loader.l"
4301 op->duration_modifier = IVAL;
4302 YY_BREAK
4303 case 222:
4304 YY_RULE_SETUP
4305 #line 1091 "loader.l"
4306 SET_OR_CLEAR_FLAG(op, FLAG_IS_BUILDABLE, IVAL);
4307 YY_BREAK
4308 case 223:
4309 YY_RULE_SETUP
4310 #line 1092 "loader.l"
4311 op->sound_chance = IVAL;
4312 YY_BREAK
4313 case 224:
4314 YY_RULE_SETUP
4315 #line 1093 "loader.l"
4316 SET_OR_CLEAR_FLAG(op, FLAG_PARALYZED, IVAL);
4317 YY_BREAK
4318 case 225:
4319 /* rule 225 can match eol */
4320 YY_RULE_SETUP
4321 #line 1095 "loader.l"
4322 { /* ignore empty lines, newlines we don't do above */ }
4323 YY_BREAK
4324 case 226:
4325 /* rule 226 can match eol */
4326 YY_RULE_SETUP
4327 #line 1096 "loader.l"
4328 { }
4329 YY_BREAK
4330 case YY_STATE_EOF(INITIAL):
4331 case YY_STATE_EOF(MESSAGE):
4332 case YY_STATE_EOF(LORE):
4333 case YY_STATE_EOF(SCRIPT):
4334 #line 1098 "loader.l"
4335 { /* If we got an error, return the error. Otherwise, return that we got EOF */
4336 if (lex_error != 0)
4337 return lex_error;
4338 else
4339 return LL_EOF;
4340 }
4341 YY_BREAK
4342 case 227:
4343 YY_RULE_SETUP
4344 #line 1104 "loader.l"
4345 { add_key_value(op); }
4346 YY_BREAK
4347 case 228:
4348 YY_RULE_SETUP
4349 #line 1105 "loader.l"
4350 ECHO;
4351 YY_BREAK
4352 #line 4353 "loader.c"
4353
4354 case YY_END_OF_BUFFER:
4355 {
4356 /* Amount of text matched not including the EOB char. */
4357 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
4358
4359 /* Undo the effects of YY_DO_BEFORE_ACTION. */
4360 *yy_cp = (yy_hold_char);
4361 YY_RESTORE_YY_MORE_OFFSET
4362
4363 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
4364 {
4365 /* We're scanning a new file or input source. It's
4366 * possible that this happened because the user
4367 * just pointed yyin at a new source and called
4368 * yylex(). If so, then we have to assure
4369 * consistency between YY_CURRENT_BUFFER and our
4370 * globals. Here is the right place to do so, because
4371 * this is the first action (other than possibly a
4372 * back-up) that will match for the new input source.
4373 */
4374 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
4375 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
4376 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
4377 }
4378
4379 /* Note that here we test for yy_c_buf_p "<=" to the position
4380 * of the first EOB in the buffer, since yy_c_buf_p will
4381 * already have been incremented past the NUL character
4382 * (since all states make transitions on EOB to the
4383 * end-of-buffer state). Contrast this with the test
4384 * in input().
4385 */
4386 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
4387 { /* This was really a NUL. */
4388 yy_state_type yy_next_state;
4389
4390 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
4391
4392 yy_current_state = yy_get_previous_state( );
4393
4394 /* Okay, we're now positioned to make the NUL
4395 * transition. We couldn't have
4396 * yy_get_previous_state() go ahead and do it
4397 * for us because it doesn't know how to deal
4398 * with the possibility of jamming (and we don't
4399 * want to build jamming into it because then it
4400 * will run more slowly).
4401 */
4402
4403 yy_next_state = yy_try_NUL_trans( yy_current_state );
4404
4405 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
4406
4407 if ( yy_next_state )
4408 {
4409 /* Consume the NUL. */
4410 yy_cp = ++(yy_c_buf_p);
4411 yy_current_state = yy_next_state;
4412 goto yy_match;
4413 }
4414
4415 else
4416 {
4417 yy_cp = (yy_last_accepting_cpos);
4418 yy_current_state = (yy_last_accepting_state);
4419 goto yy_find_action;
4420 }
4421 }
4422
4423 else switch ( yy_get_next_buffer( ) )
4424 {
4425 case EOB_ACT_END_OF_FILE:
4426 {
4427 (yy_did_buffer_switch_on_eof) = 0;
4428
4429 if ( yywrap( ) )
4430 {
4431 /* Note: because we've taken care in
4432 * yy_get_next_buffer() to have set up
4433 * yytext, we can now set up
4434 * yy_c_buf_p so that if some total
4435 * hoser (like flex itself) wants to
4436 * call the scanner after we return the
4437 * YY_NULL, it'll still work - another
4438 * YY_NULL will get returned.
4439 */
4440 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
4441
4442 yy_act = YY_STATE_EOF(YY_START);
4443 goto do_action;
4444 }
4445
4446 else
4447 {
4448 if ( ! (yy_did_buffer_switch_on_eof) )
4449 YY_NEW_FILE;
4450 }
4451 break;
4452 }
4453
4454 case EOB_ACT_CONTINUE_SCAN:
4455 (yy_c_buf_p) =
4456 (yytext_ptr) + yy_amount_of_matched_text;
4457
4458 yy_current_state = yy_get_previous_state( );
4459
4460 yy_cp = (yy_c_buf_p);
4461 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
4462 goto yy_match;
4463
4464 case EOB_ACT_LAST_MATCH:
4465 (yy_c_buf_p) =
4466 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
4467
4468 yy_current_state = yy_get_previous_state( );
4469
4470 yy_cp = (yy_c_buf_p);
4471 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
4472 goto yy_find_action;
4473 }
4474 break;
4475 }
4476
4477 default:
4478 YY_FATAL_ERROR(
4479 "fatal flex scanner internal error--no action found" );
4480 } /* end of action switch */
4481 } /* end of scanning one token */
4482 } /* end of yylex */
4483
4484 /* yy_get_next_buffer - try to read in a new buffer
4485 *
4486 * Returns a code representing an action:
4487 * EOB_ACT_LAST_MATCH -
4488 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
4489 * EOB_ACT_END_OF_FILE - end of file
4490 */
4491 static int yy_get_next_buffer (void)
4492 {
4493 char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
4494 char *source = (yytext_ptr);
4495 int number_to_move, i;
4496 int ret_val;
4497
4498 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
4499 YY_FATAL_ERROR(
4500 "fatal flex scanner internal error--end of buffer missed" );
4501
4502 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
4503 { /* Don't try to fill the buffer, so this is an EOF. */
4504 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
4505 {
4506 /* We matched a single character, the EOB, so
4507 * treat this as a final EOF.
4508 */
4509 return EOB_ACT_END_OF_FILE;
4510 }
4511
4512 else
4513 {
4514 /* We matched some text prior to the EOB, first
4515 * process it.
4516 */
4517 return EOB_ACT_LAST_MATCH;
4518 }
4519 }
4520
4521 /* Try to read more data. */
4522
4523 /* First move last chars to start of buffer. */
4524 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
4525
4526 for ( i = 0; i < number_to_move; ++i )
4527 *(dest++) = *(source++);
4528
4529 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
4530 /* don't do the read, it's not guaranteed to return an EOF,
4531 * just force an EOF
4532 */
4533 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
4534
4535 else
4536 {
4537 yy_size_t num_to_read =
4538 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
4539
4540 while ( num_to_read <= 0 )
4541 { /* Not enough room in the buffer - grow it. */
4542
4543 /* just a shorter name for the current buffer */
4544 YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE;
4545
4546 int yy_c_buf_p_offset =
4547 (int) ((yy_c_buf_p) - b->yy_ch_buf);
4548
4549 if ( b->yy_is_our_buffer )
4550 {
4551 yy_size_t new_size = b->yy_buf_size * 2;
4552
4553 if ( new_size <= 0 )
4554 b->yy_buf_size += b->yy_buf_size / 8;
4555 else
4556 b->yy_buf_size *= 2;
4557
4558 b->yy_ch_buf = (char *)
4559 /* Include room in for 2 EOB chars. */
4560 yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
4561 }
4562 else
4563 /* Can't grow it, we don't own it. */
4564 b->yy_ch_buf = 0;
4565
4566 if ( ! b->yy_ch_buf )
4567 YY_FATAL_ERROR(
4568 "fatal error - scanner input buffer overflow" );
4569
4570 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
4571
4572 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
4573 number_to_move - 1;
4574
4575 }
4576
4577 if ( num_to_read > YY_READ_BUF_SIZE )
4578 num_to_read = YY_READ_BUF_SIZE;
4579
4580 /* Read in more data. */
4581 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
4582 (yy_n_chars), num_to_read );
4583
4584 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
4585 }
4586
4587 if ( (yy_n_chars) == 0 )
4588 {
4589 if ( number_to_move == YY_MORE_ADJ )
4590 {
4591 ret_val = EOB_ACT_END_OF_FILE;
4592 yyrestart(yyin );
4593 }
4594
4595 else
4596 {
4597 ret_val = EOB_ACT_LAST_MATCH;
4598 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
4599 YY_BUFFER_EOF_PENDING;
4600 }
4601 }
4602
4603 else
4604 ret_val = EOB_ACT_CONTINUE_SCAN;
4605
4606 if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
4607 /* Extend the array by 50%, plus the number we really need. */
4608 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
4609 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
4610 if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
4611 YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
4612 }
4613
4614 (yy_n_chars) += number_to_move;
4615 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
4616 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
4617
4618 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
4619
4620 return ret_val;
4621 }
4622
4623 /* yy_get_previous_state - get the state just before the EOB char was reached */
4624
4625 static yy_state_type yy_get_previous_state (void)
4626 {
4627 yy_state_type yy_current_state;
4628 char *yy_cp;
4629
4630 yy_current_state = (yy_start);
4631 yy_current_state += YY_AT_BOL();
4632
4633 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
4634 {
4635 YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
4636 if ( yy_accept[yy_current_state] )
4637 {
4638 (yy_last_accepting_state) = yy_current_state;
4639 (yy_last_accepting_cpos) = yy_cp;
4640 }
4641 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
4642 {
4643 yy_current_state = (int) yy_def[yy_current_state];
4644 if ( yy_current_state >= 2072 )
4645 yy_c = yy_meta[(unsigned int) yy_c];
4646 }
4647 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
4648 }
4649
4650 return yy_current_state;
4651 }
4652
4653 /* yy_try_NUL_trans - try to make a transition on the NUL character
4654 *
4655 * synopsis
4656 * next_state = yy_try_NUL_trans( current_state );
4657 */
4658 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
4659 {
4660 int yy_is_jam;
4661 char *yy_cp = (yy_c_buf_p);
4662
4663 YY_CHAR yy_c = 1;
4664 if ( yy_accept[yy_current_state] )
4665 {
4666 (yy_last_accepting_state) = yy_current_state;
4667 (yy_last_accepting_cpos) = yy_cp;
4668 }
4669 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
4670 {
4671 yy_current_state = (int) yy_def[yy_current_state];
4672 if ( yy_current_state >= 2072 )
4673 yy_c = yy_meta[(unsigned int) yy_c];
4674 }
4675 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
4676 yy_is_jam = (yy_current_state == 2071);
4677
4678 return yy_is_jam ? 0 : yy_current_state;
4679 }
4680
4681 #ifndef YY_NO_INPUT
4682 #ifdef __cplusplus
4683 static int yyinput (void)
4684 #else
4685 static int input (void)
4686 #endif
4687
4688 {
4689 int c;
4690
4691 *(yy_c_buf_p) = (yy_hold_char);
4692
4693 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
4694 {
4695 /* yy_c_buf_p now points to the character we want to return.
4696 * If this occurs *before* the EOB characters, then it's a
4697 * valid NUL; if not, then we've hit the end of the buffer.
4698 */
4699 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
4700 /* This was really a NUL. */
4701 *(yy_c_buf_p) = '\0';
4702
4703 else
4704 { /* need more input */
4705 yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
4706 ++(yy_c_buf_p);
4707
4708 switch ( yy_get_next_buffer( ) )
4709 {
4710 case EOB_ACT_LAST_MATCH:
4711 /* This happens because yy_g_n_b()
4712 * sees that we've accumulated a
4713 * token and flags that we need to
4714 * try matching the token before
4715 * proceeding. But for input(),
4716 * there's no matching to consider.
4717 * So convert the EOB_ACT_LAST_MATCH
4718 * to EOB_ACT_END_OF_FILE.
4719 */
4720
4721 /* Reset buffer status. */
4722 yyrestart(yyin );
4723
4724 /*FALLTHROUGH*/
4725
4726 case EOB_ACT_END_OF_FILE:
4727 {
4728 if ( yywrap( ) )
4729 return EOF;
4730
4731 if ( ! (yy_did_buffer_switch_on_eof) )
4732 YY_NEW_FILE;
4733 #ifdef __cplusplus
4734 return yyinput();
4735 #else
4736 return input();
4737 #endif
4738 }
4739
4740 case EOB_ACT_CONTINUE_SCAN:
4741 (yy_c_buf_p) = (yytext_ptr) + offset;
4742 break;
4743 }
4744 }
4745 }
4746
4747 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
4748 *(yy_c_buf_p) = '\0'; /* preserve yytext */
4749 (yy_hold_char) = *++(yy_c_buf_p);
4750
4751 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
4752
4753 return c;
4754 }
4755 #endif /* ifndef YY_NO_INPUT */
4756
4757 /** Immediately switch to a different input stream.
4758 * @param input_file A readable stream.
4759 *
4760 * @note This function does not reset the start condition to @c INITIAL .
4761 */
4762 void yyrestart (FILE * input_file )
4763 {
4764
4765 if ( ! YY_CURRENT_BUFFER ){
4766 yyensure_buffer_stack ();
4767 YY_CURRENT_BUFFER_LVALUE =
4768 yy_create_buffer(yyin,YY_BUF_SIZE );
4769 }
4770
4771 yy_init_buffer(YY_CURRENT_BUFFER,input_file );
4772 yy_load_buffer_state( );
4773 }
4774
4775 /** Switch to a different input buffer.
4776 * @param new_buffer The new input buffer.
4777 *
4778 */
4779 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
4780 {
4781
4782 /* TODO. We should be able to replace this entire function body
4783 * with
4784 * yypop_buffer_state();
4785 * yypush_buffer_state(new_buffer);
4786 */
4787 yyensure_buffer_stack ();
4788 if ( YY_CURRENT_BUFFER == new_buffer )
4789 return;
4790
4791 if ( YY_CURRENT_BUFFER )
4792 {
4793 /* Flush out information for old buffer. */
4794 *(yy_c_buf_p) = (yy_hold_char);
4795 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
4796 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
4797 }
4798
4799 YY_CURRENT_BUFFER_LVALUE = new_buffer;
4800 yy_load_buffer_state( );
4801
4802 /* We don't actually know whether we did this switch during
4803 * EOF (yywrap()) processing, but the only time this flag
4804 * is looked at is after yywrap() is called, so it's safe
4805 * to go ahead and always set it.
4806 */
4807 (yy_did_buffer_switch_on_eof) = 1;
4808 }
4809
4810 static void yy_load_buffer_state (void)
4811 {
4812 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
4813 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
4814 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
4815 (yy_hold_char) = *(yy_c_buf_p);
4816 }
4817
4818 /** Allocate and initialize an input buffer state.
4819 * @param file A readable stream.
4820 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
4821 *
4822 * @return the allocated buffer state.
4823 */
4824 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
4825 {
4826 YY_BUFFER_STATE b;
4827
4828 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
4829 if ( ! b )
4830 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
4831
4832 b->yy_buf_size = size;
4833
4834 /* yy_ch_buf has to be 2 characters longer than the size given because
4835 * we need to put in 2 end-of-buffer characters.
4836 */
4837 b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
4838 if ( ! b->yy_ch_buf )
4839 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
4840
4841 b->yy_is_our_buffer = 1;
4842
4843 yy_init_buffer(b,file );
4844
4845 return b;
4846 }
4847
4848 /** Destroy the buffer.
4849 * @param b a buffer created with yy_create_buffer()
4850 *
4851 */
4852 void yy_delete_buffer (YY_BUFFER_STATE b )
4853 {
4854
4855 if ( ! b )
4856 return;
4857
4858 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
4859 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
4860
4861 if ( b->yy_is_our_buffer )
4862 yyfree((void *) b->yy_ch_buf );
4863
4864 yyfree((void *) b );
4865 }
4866
4867 /* Initializes or reinitializes a buffer.
4868 * This function is sometimes called more than once on the same buffer,
4869 * such as during a yyrestart() or at EOF.
4870 */
4871 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
4872
4873 {
4874 int oerrno = errno;
4875
4876 yy_flush_buffer(b );
4877
4878 b->yy_input_file = file;
4879 b->yy_fill_buffer = 1;
4880
4881 /* If b is the current buffer, then yy_init_buffer was _probably_
4882 * called from yyrestart() or through yy_get_next_buffer.
4883 * In that case, we don't want to reset the lineno or column.
4884 */
4885 if (b != YY_CURRENT_BUFFER){
4886 b->yy_bs_lineno = 1;
4887 b->yy_bs_column = 0;
4888 }
4889
4890 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
4891
4892 errno = oerrno;
4893 }
4894
4895 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
4896 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
4897 *
4898 */
4899 void yy_flush_buffer (YY_BUFFER_STATE b )
4900 {
4901 if ( ! b )
4902 return;
4903
4904 b->yy_n_chars = 0;
4905
4906 /* We always need two end-of-buffer characters. The first causes
4907 * a transition to the end-of-buffer state. The second causes
4908 * a jam in that state.
4909 */
4910 b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
4911 b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
4912
4913 b->yy_buf_pos = &b->yy_ch_buf[0];
4914
4915 b->yy_at_bol = 1;
4916 b->yy_buffer_status = YY_BUFFER_NEW;
4917
4918 if ( b == YY_CURRENT_BUFFER )
4919 yy_load_buffer_state( );
4920 }
4921
4922 /** Pushes the new state onto the stack. The new state becomes
4923 * the current state. This function will allocate the stack
4924 * if necessary.
4925 * @param new_buffer The new state.
4926 *
4927 */
4928 void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
4929 {
4930 if (new_buffer == NULL)
4931 return;
4932
4933 yyensure_buffer_stack();
4934
4935 /* This block is copied from yy_switch_to_buffer. */
4936 if ( YY_CURRENT_BUFFER )
4937 {
4938 /* Flush out information for old buffer. */
4939 *(yy_c_buf_p) = (yy_hold_char);
4940 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
4941 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
4942 }
4943
4944 /* Only push if top exists. Otherwise, replace top. */
4945 if (YY_CURRENT_BUFFER)
4946 (yy_buffer_stack_top)++;
4947 YY_CURRENT_BUFFER_LVALUE = new_buffer;
4948
4949 /* copied from yy_switch_to_buffer. */
4950 yy_load_buffer_state( );
4951 (yy_did_buffer_switch_on_eof) = 1;
4952 }
4953
4954 /** Removes and deletes the top of the stack, if present.
4955 * The next element becomes the new top.
4956 *
4957 */
4958 void yypop_buffer_state (void)
4959 {
4960 if (!YY_CURRENT_BUFFER)
4961 return;
4962
4963 yy_delete_buffer(YY_CURRENT_BUFFER );
4964 YY_CURRENT_BUFFER_LVALUE = NULL;
4965 if ((yy_buffer_stack_top) > 0)
4966 --(yy_buffer_stack_top);
4967
4968 if (YY_CURRENT_BUFFER) {
4969 yy_load_buffer_state( );
4970 (yy_did_buffer_switch_on_eof) = 1;
4971 }
4972 }
4973
4974 /* Allocates the stack if it does not exist.
4975 * Guarantees space for at least one push.
4976 */
4977 static void yyensure_buffer_stack (void)
4978 {
4979 yy_size_t num_to_alloc;
4980
4981 if (!(yy_buffer_stack)) {
4982
4983 /* First allocation is just for 2 elements, since we don't know if this
4984 * scanner will even need a stack. We use 2 instead of 1 to avoid an
4985 * immediate realloc on the next call.
4986 */
4987 num_to_alloc = 1;
4988 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
4989 (num_to_alloc * sizeof(struct yy_buffer_state*)
4990 );
4991 if ( ! (yy_buffer_stack) )
4992 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
4993
4994 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
4995
4996 (yy_buffer_stack_max) = num_to_alloc;
4997 (yy_buffer_stack_top) = 0;
4998 return;
4999 }
5000
5001 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
5002
5003 /* Increase the buffer to prepare for a possible push. */
5004 int grow_size = 8 /* arbitrary grow size */;
5005
5006 num_to_alloc = (yy_buffer_stack_max) + grow_size;
5007 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
5008 ((yy_buffer_stack),
5009 num_to_alloc * sizeof(struct yy_buffer_state*)
5010 );
5011 if ( ! (yy_buffer_stack) )
5012 YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
5013
5014 /* zero only the new slots.*/
5015 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
5016 (yy_buffer_stack_max) = num_to_alloc;
5017 }
5018 }
5019
5020 /** Setup the input buffer state to scan directly from a user-specified character buffer.
5021 * @param base the character buffer
5022 * @param size the size in bytes of the character buffer
5023 *
5024 * @return the newly allocated buffer state object.
5025 */
5026 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
5027 {
5028 YY_BUFFER_STATE b;
5029
5030 if ( size < 2 ||
5031 base[size-2] != YY_END_OF_BUFFER_CHAR ||
5032 base[size-1] != YY_END_OF_BUFFER_CHAR )
5033 /* They forgot to leave room for the EOB's. */
5034 return 0;
5035
5036 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
5037 if ( ! b )
5038 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
5039
5040 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
5041 b->yy_buf_pos = b->yy_ch_buf = base;
5042 b->yy_is_our_buffer = 0;
5043 b->yy_input_file = 0;
5044 b->yy_n_chars = b->yy_buf_size;
5045 b->yy_is_interactive = 0;
5046 b->yy_at_bol = 1;
5047 b->yy_fill_buffer = 0;
5048 b->yy_buffer_status = YY_BUFFER_NEW;
5049
5050 yy_switch_to_buffer(b );
5051
5052 return b;
5053 }
5054
5055 /** Setup the input buffer state to scan a string. The next call to yylex() will
5056 * scan from a @e copy of @a str.
5057 * @param yystr a NUL-terminated string to scan
5058 *
5059 * @return the newly allocated buffer state object.
5060 * @note If you want to scan bytes that may contain NUL values, then use
5061 * yy_scan_bytes() instead.
5062 */
5063 YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
5064 {
5065
5066 return yy_scan_bytes(yystr,strlen(yystr) );
5067 }
5068
5069 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
5070 * scan from a @e copy of @a bytes.
5071 * @param yybytes the byte buffer to scan
5072 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
5073 *
5074 * @return the newly allocated buffer state object.
5075 */
5076 YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, yy_size_t _yybytes_len )
5077 {
5078 YY_BUFFER_STATE b;
5079 char *buf;
5080 yy_size_t n;
5081 yy_size_t i;
5082
5083 /* Get memory for full buffer, including space for trailing EOB's. */
5084 n = _yybytes_len + 2;
5085 buf = (char *) yyalloc(n );
5086 if ( ! buf )
5087 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
5088
5089 for ( i = 0; i < _yybytes_len; ++i )
5090 buf[i] = yybytes[i];
5091
5092 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
5093
5094 b = yy_scan_buffer(buf,n );
5095 if ( ! b )
5096 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
5097
5098 /* It's okay to grow etc. this buffer, and we should throw it
5099 * away when we're done.
5100 */
5101 b->yy_is_our_buffer = 1;
5102
5103 return b;
5104 }
5105
5106 static void yy_push_state (int new_state )
5107 {
5108 if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) )
5109 {
5110 yy_size_t new_size;
5111
5112 (yy_start_stack_depth) += YY_START_STACK_INCR;
5113 new_size = (yy_start_stack_depth) * sizeof( int );
5114
5115 if ( ! (yy_start_stack) )
5116 (yy_start_stack) = (int *) yyalloc(new_size );
5117
5118 else
5119 (yy_start_stack) = (int *) yyrealloc((void *) (yy_start_stack),new_size );
5120
5121 if ( ! (yy_start_stack) )
5122 YY_FATAL_ERROR( "out of memory expanding start-condition stack" );
5123 }
5124
5125 (yy_start_stack)[(yy_start_stack_ptr)++] = YY_START;
5126
5127 BEGIN(new_state);
5128 }
5129
5130 static void yy_pop_state (void)
5131 {
5132 if ( --(yy_start_stack_ptr) < 0 )
5133 YY_FATAL_ERROR( "start-condition stack underflow" );
5134
5135 BEGIN((yy_start_stack)[(yy_start_stack_ptr)]);
5136 }
5137
5138 #ifndef YY_EXIT_FAILURE
5139 #define YY_EXIT_FAILURE 2
5140 #endif
5141
5142 static void yy_fatal_error (yyconst char* msg )
5143 {
5144 (void) fprintf( stderr, "%s\n", msg );
5145 exit( YY_EXIT_FAILURE );
5146 }
5147
5148 /* Redefine yyless() so it works in section 3 code. */
5149
5150 #undef yyless
5151 #define yyless(n) \
5152 do \
5153 { \
5154 /* Undo effects of setting up yytext. */ \
5155 int yyless_macro_arg = (n); \
5156 YY_LESS_LINENO(yyless_macro_arg);\
5157 yytext[yyleng] = (yy_hold_char); \
5158 (yy_c_buf_p) = yytext + yyless_macro_arg; \
5159 (yy_hold_char) = *(yy_c_buf_p); \
5160 *(yy_c_buf_p) = '\0'; \
5161 yyleng = yyless_macro_arg; \
5162 } \
5163 while ( 0 )
5164
5165 /* Accessor methods (get/set functions) to struct members. */
5166
5167 /** Get the current line number.
5168 *
5169 */
5170 int yyget_lineno (void)
5171 {
5172
5173 return yylineno;
5174 }
5175
5176 /** Get the input stream.
5177 *
5178 */
5179 FILE *yyget_in (void)
5180 {
5181 return yyin;
5182 }
5183
5184 /** Get the output stream.
5185 *
5186 */
5187 FILE *yyget_out (void)
5188 {
5189 return yyout;
5190 }
5191
5192 /** Get the length of the current token.
5193 *
5194 */
5195 yy_size_t yyget_leng (void)
5196 {
5197 return yyleng;
5198 }
5199
5200 /** Get the current token.
5201 *
5202 */
5203
5204 char *yyget_text (void)
5205 {
5206 return yytext;
5207 }
5208
5209 /** Set the current line number.
5210 * @param line_number
5211 *
5212 */
5213 void yyset_lineno (int line_number )
5214 {
5215
5216 yylineno = line_number;
5217 }
5218
5219 /** Set the input stream. This does not discard the current
5220 * input buffer.
5221 * @param in_str A readable stream.
5222 *
5223 * @see yy_switch_to_buffer
5224 */
5225 void yyset_in (FILE * in_str )
5226 {
5227 yyin = in_str ;
5228 }
5229
5230 void yyset_out (FILE * out_str )
5231 {
5232 yyout = out_str ;
5233 }
5234
5235 int yyget_debug (void)
5236 {
5237 return yy_flex_debug;
5238 }
5239
5240 void yyset_debug (int bdebug )
5241 {
5242 yy_flex_debug = bdebug ;
5243 }
5244
5245 static int yy_init_globals (void)
5246 {
5247 /* Initialization is the same as for the non-reentrant scanner.
5248 * This function is called from yylex_destroy(), so don't allocate here.
5249 */
5250
5251 (yy_buffer_stack) = 0;
5252 (yy_buffer_stack_top) = 0;
5253 (yy_buffer_stack_max) = 0;
5254 (yy_c_buf_p) = (char *) 0;
5255 (yy_init) = 0;
5256 (yy_start) = 0;
5257
5258 (yy_start_stack_ptr) = 0;
5259 (yy_start_stack_depth) = 0;
5260 (yy_start_stack) = NULL;
5261
5262 /* Defined in main.c */
5263 #ifdef YY_STDINIT
5264 yyin = stdin;
5265 yyout = stdout;
5266 #else
5267 yyin = (FILE *) 0;
5268 yyout = (FILE *) 0;
5269 #endif
5270
5271 /* For future reference: Set errno on error, since we are called by
5272 * yylex_init()
5273 */
5274 return 0;
5275 }
5276
5277 /* yylex_destroy is for both reentrant and non-reentrant scanners. */
5278 int yylex_destroy (void)
5279 {
5280
5281 /* Pop the buffer stack, destroying each element. */
5282 while(YY_CURRENT_BUFFER){
5283 yy_delete_buffer(YY_CURRENT_BUFFER );
5284 YY_CURRENT_BUFFER_LVALUE = NULL;
5285 yypop_buffer_state();
5286 }
5287
5288 /* Destroy the stack itself. */
5289 yyfree((yy_buffer_stack) );
5290 (yy_buffer_stack) = NULL;
5291
5292 /* Destroy the start condition stack. */
5293 yyfree((yy_start_stack) );
5294 (yy_start_stack) = NULL;
5295
5296 /* Reset the globals. This is important in a non-reentrant scanner so the next time
5297 * yylex() is called, initialization will occur. */
5298 yy_init_globals( );
5299
5300 return 0;
5301 }
5302
5303 /*
5304 * Internal utility routines.
5305 */
5306
5307 #ifndef yytext_ptr
5308 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
5309 {
5310 int i;
5311 for ( i = 0; i < n; ++i )
5312 s1[i] = s2[i];
5313 }
5314 #endif
5315
5316 #ifdef YY_NEED_STRLEN
5317 static int yy_flex_strlen (yyconst char * s )
5318 {
5319 int n;
5320 for ( n = 0; s[n]; ++n )
5321 ;
5322
5323 return n;
5324 }
5325 #endif
5326
5327 void *yyalloc (yy_size_t size )
5328 {
5329 return (void *) malloc( size );
5330 }
5331
5332 void *yyrealloc (void * ptr, yy_size_t size )
5333 {
5334 /* The cast to (char *) in the following accommodates both
5335 * implementations that use char* generic pointers, and those
5336 * that use void* generic pointers. It works with the latter
5337 * because both ANSI C and C++ allow castless assignment from
5338 * any pointer type to void*, and deal with argument conversions
5339 * as though doing an assignment.
5340 */
5341 return (void *) realloc( (char *) ptr, size );
5342 }
5343
5344 void yyfree (void * ptr )
5345 {
5346 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
5347 }
5348
5349 #define YYTABLES_NAME "yytables"
5350
5351 #line 1105 "loader.l"
5352
5353
5354
5355 /**
5356 * Returns the next token for lex.
5357 * Our save file syntax is very simple, so we can use a very simple
5358 * processing mechanism here instead using something like bison
5359 * This skips over the space and returns the value, or "" if no value
5360 * is found. Modified 4/26/2000 to also strip spaces at end of
5361 * line
5362 */
5363 static char *yval(void)
5364 {
5365 static char em[] = "";
5366 char *cp, *end;
5367
5368 /* First skip over start of line, like animation or name */
5369 for (cp = yytext; *cp != ' '; cp++) {
5370 if (*cp == '\0') {
5371 return em;
5372 }
5373 }
5374
5375 /* Skip over whitespace */
5376 for (; *cp == ' '; cp++) {
5377 if (*cp == '\0') {
5378 return em;
5379 }
5380 }
5381 /* Got last character before null and strip
5382 * off tailing whitespace
5383 */
5384 for (end = cp+strlen(cp)-1; *end == ' '; end--) {
5385 if (end == cp)
5386 return em;
5387 *end = '\0';
5388 }
5389 return cp;
5390 }
5391
5392 /**
5393 * Loads an object from the given file-pointer.
5394 * Variables will be read and parsed and patched into the object
5395 * until the string "end" is reached, or the end of the file.
5396 *
5397 * @param fp
5398 * file pointer from which to read.
5399 * @param op
5400 * where to read the data.
5401 * @param bufstate
5402 * used to determine various file attributes:
5403 * @li LO_REPATE (0): We are reading from the same buffer as the last call.
5404 * @li LO_LINEMODE (1): file that is being read from is multi purpose (ie, other functions
5405 * will also be reading from this (treasure file, artifacts.)
5406 * @li LO_NEWFILE (2): This is the first read from a particular file, so the buffers should be reset.
5407 * @li LO_NOREAD (3): Reset the buffers, but don't read from it. (op can be null)
5408 * @param map_flags
5409 * combination of @ref MAP_xxx flags, though only MAP_STYLE is used.
5410 * @return
5411 * @li LL_NORMAL if object was read.
5412 * @li LL_EOF if an error occured.
5413 * @li LL_MORE if this is a multipart object.
5414 */
5415 int load_object(FILE *fp, object *op, int bufstate, int map_flags) {
5416 int retval;
5417 char inbuf[VERY_BIG_BUF];
5418 #define MAXDEPTH 10
5419 object *items[MAXDEPTH];
5420 int depth = 0;
5421
5422 items[0] = op,
5423 strcpy(msgbuf, "");
5424 msglen = 0;
5425 total_msglen = 0;
5426 strcpy(lorebuf, "");
5427 if (bufstate == LO_NEWFILE || bufstate == LO_NOREAD) {
5428 /* LOG(llevDebug, "Switching lex buffers\n");*/
5429 yy_delete_buffer(YY_CURRENT_BUFFER);
5430 yy_switch_to_buffer(yy_create_buffer(fp,YY_BUF_SIZE));
5431 if (bufstate == LO_NOREAD)
5432 return LL_NORMAL;
5433 } else if (bufstate == LO_LINEMODE) {
5434 YY_BUFFER_STATE yybufstate;
5435 yy_delete_buffer(YY_CURRENT_BUFFER);
5436 while (fgets(inbuf, VERY_BIG_BUF-3, fp)) {
5437 yybufstate = yy_scan_string(inbuf);
5438 retval = lex_load(&depth, items, MAXDEPTH, map_flags, 1);
5439 yy_delete_buffer(yybufstate);
5440 if (retval == LL_NORMAL) {
5441 if (depth == 0)
5442 return retval;
5443 else
5444 depth--;
5445 }
5446 }
5447 LOG(llevDebug, "Got eof while scanning strings\n");
5448 return LL_EOF;
5449 }
5450
5451 retval = lex_load(&depth, items, MAXDEPTH, map_flags, 0);
5452
5453 /* LOG(llevDebug, " load completed, object=%s\n", op->name);*/
5454 return retval;
5455 }
5456
5457 /**
5458 * This takes a buffer, scans it for variables, and sets those variables
5459 * as appropriate in op.
5460 *
5461 * This function appears to be used in only 2 places - in crossedit to
5462 * override values and in c_wiz to mutate values.
5463 *
5464 * @param op
5465 * object to alter.
5466 * @param buf
5467 * modifications to apply.
5468 * @return
5469 * ?
5470 * @todo
5471 * document return value.
5472 */
5473 int set_variable(object *op, const char *buf) {
5474 YY_BUFFER_STATE yybufstate, yycurbuf = YY_CURRENT_BUFFER;
5475 int retval, depth;
5476 object *items[MAXDEPTH];
5477
5478 strcpy(msgbuf, "");
5479 msglen = 0;
5480 total_msglen = 0;
5481 strcpy(lorebuf, "");
5482 items[0] = op;
5483 depth = 0;
5484 yy_push_state(INITIAL);
5485 yybufstate = yy_scan_string(buf);
5486 retval = lex_load(&depth, items, MAXDEPTH, 0, 0);
5487 yy_switch_to_buffer(yycurbuf);
5488 yy_delete_buffer(yybufstate);
5489 yy_pop_state();
5490 return retval;
5491 }
5492
5493 /* Start of C code */
5494
5495 /**
5496 * Frees all memory allocated by the loader.
5497 */
5498 void free_loader(void) {
5499 yy_delete_buffer(YY_CURRENT_BUFFER);
5500
5501 /* Comment out this yylex_destroy(), as it results in link errors
5502 * on linux
5503 */
5504 /* yylex_destroy();*/
5505 }
5506