breakout_parser 0.0.23 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,2996 +0,0 @@
1
-
2
- #line 3 "lex.yy.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 35
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
- /* begin standard C headers. */
19
- #include <stdio.h>
20
- #include <string.h>
21
- #include <errno.h>
22
- #include <stdlib.h>
23
-
24
- /* end standard C headers. */
25
-
26
- /* flex integer type definitions */
27
-
28
- #ifndef FLEXINT_H
29
- #define FLEXINT_H
30
-
31
- /* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
32
-
33
- #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
34
-
35
- /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
36
- * if you want the limit (max/min) macros for int types.
37
- */
38
- #ifndef __STDC_LIMIT_MACROS
39
- #define __STDC_LIMIT_MACROS 1
40
- #endif
41
-
42
- #include <inttypes.h>
43
- typedef int8_t flex_int8_t;
44
- typedef uint8_t flex_uint8_t;
45
- typedef int16_t flex_int16_t;
46
- typedef uint16_t flex_uint16_t;
47
- typedef int32_t flex_int32_t;
48
- typedef uint32_t flex_uint32_t;
49
- #else
50
- typedef signed char flex_int8_t;
51
- typedef short int flex_int16_t;
52
- typedef int flex_int32_t;
53
- typedef unsigned char flex_uint8_t;
54
- typedef unsigned short int flex_uint16_t;
55
- typedef unsigned int flex_uint32_t;
56
-
57
- /* Limits of integral types. */
58
- #ifndef INT8_MIN
59
- #define INT8_MIN (-128)
60
- #endif
61
- #ifndef INT16_MIN
62
- #define INT16_MIN (-32767-1)
63
- #endif
64
- #ifndef INT32_MIN
65
- #define INT32_MIN (-2147483647-1)
66
- #endif
67
- #ifndef INT8_MAX
68
- #define INT8_MAX (127)
69
- #endif
70
- #ifndef INT16_MAX
71
- #define INT16_MAX (32767)
72
- #endif
73
- #ifndef INT32_MAX
74
- #define INT32_MAX (2147483647)
75
- #endif
76
- #ifndef UINT8_MAX
77
- #define UINT8_MAX (255U)
78
- #endif
79
- #ifndef UINT16_MAX
80
- #define UINT16_MAX (65535U)
81
- #endif
82
- #ifndef UINT32_MAX
83
- #define UINT32_MAX (4294967295U)
84
- #endif
85
-
86
- #endif /* ! C99 */
87
-
88
- #endif /* ! FLEXINT_H */
89
-
90
- #ifdef __cplusplus
91
-
92
- /* The "const" storage-class-modifier is valid. */
93
- #define YY_USE_CONST
94
-
95
- #else /* ! __cplusplus */
96
-
97
- /* C99 requires __STDC__ to be defined as 1. */
98
- #if defined (__STDC__)
99
-
100
- #define YY_USE_CONST
101
-
102
- #endif /* defined (__STDC__) */
103
- #endif /* ! __cplusplus */
104
-
105
- #ifdef YY_USE_CONST
106
- #define yyconst const
107
- #else
108
- #define yyconst
109
- #endif
110
-
111
- /* Returned upon end-of-file. */
112
- #define YY_NULL 0
113
-
114
- /* Promotes a possibly negative, possibly signed char to an unsigned
115
- * integer for use as an array index. If the signed char is negative,
116
- * we want to instead treat it as an 8-bit unsigned char, hence the
117
- * double cast.
118
- */
119
- #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
120
-
121
- /* Enter a start condition. This macro really ought to take a parameter,
122
- * but we do it the disgusting crufty way forced on us by the ()-less
123
- * definition of BEGIN.
124
- */
125
- #define BEGIN (yy_start) = 1 + 2 *
126
-
127
- /* Translate the current start state into a value that can be later handed
128
- * to BEGIN to return to the state. The YYSTATE alias is for lex
129
- * compatibility.
130
- */
131
- #define YY_START (((yy_start) - 1) / 2)
132
- #define YYSTATE YY_START
133
-
134
- /* Action number for EOF rule of a given start state. */
135
- #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
136
-
137
- /* Special action meaning "start processing a new file". */
138
- #define YY_NEW_FILE yyrestart(yyin )
139
-
140
- #define YY_END_OF_BUFFER_CHAR 0
141
-
142
- /* Size of default input buffer. */
143
- #ifndef YY_BUF_SIZE
144
- #ifdef __ia64__
145
- /* On IA-64, the buffer size is 16k, not 8k.
146
- * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.
147
- * Ditto for the __ia64__ case accordingly.
148
- */
149
- #define YY_BUF_SIZE 32768
150
- #else
151
- #define YY_BUF_SIZE 16384
152
- #endif /* __ia64__ */
153
- #endif
154
-
155
- /* The state buf must be large enough to hold one state per character in the main buffer.
156
- */
157
- #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
158
-
159
- #ifndef YY_TYPEDEF_YY_BUFFER_STATE
160
- #define YY_TYPEDEF_YY_BUFFER_STATE
161
- typedef struct yy_buffer_state *YY_BUFFER_STATE;
162
- #endif
163
-
164
- extern int yyleng;
165
-
166
- extern FILE *yyin, *yyout;
167
-
168
- #define EOB_ACT_CONTINUE_SCAN 0
169
- #define EOB_ACT_END_OF_FILE 1
170
- #define EOB_ACT_LAST_MATCH 2
171
-
172
- #define YY_LESS_LINENO(n)
173
-
174
- /* Return all but the first "n" matched characters back to the input stream. */
175
- #define yyless(n) \
176
- do \
177
- { \
178
- /* Undo effects of setting up yytext. */ \
179
- int yyless_macro_arg = (n); \
180
- YY_LESS_LINENO(yyless_macro_arg);\
181
- *yy_cp = (yy_hold_char); \
182
- YY_RESTORE_YY_MORE_OFFSET \
183
- (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
184
- YY_DO_BEFORE_ACTION; /* set up yytext again */ \
185
- } \
186
- while ( 0 )
187
-
188
- #define unput(c) yyunput( c, (yytext_ptr) )
189
-
190
- #ifndef YY_TYPEDEF_YY_SIZE_T
191
- #define YY_TYPEDEF_YY_SIZE_T
192
- typedef size_t yy_size_t;
193
- #endif
194
-
195
- #ifndef YY_STRUCT_YY_BUFFER_STATE
196
- #define YY_STRUCT_YY_BUFFER_STATE
197
- struct yy_buffer_state
198
- {
199
- FILE *yy_input_file;
200
-
201
- char *yy_ch_buf; /* input buffer */
202
- char *yy_buf_pos; /* current position in input buffer */
203
-
204
- /* Size of input buffer in bytes, not including room for EOB
205
- * characters.
206
- */
207
- yy_size_t yy_buf_size;
208
-
209
- /* Number of characters read into yy_ch_buf, not including EOB
210
- * characters.
211
- */
212
- int yy_n_chars;
213
-
214
- /* Whether we "own" the buffer - i.e., we know we created it,
215
- * and can realloc() it to grow it, and should free() it to
216
- * delete it.
217
- */
218
- int yy_is_our_buffer;
219
-
220
- /* Whether this is an "interactive" input source; if so, and
221
- * if we're using stdio for input, then we want to use getc()
222
- * instead of fread(), to make sure we stop fetching input after
223
- * each newline.
224
- */
225
- int yy_is_interactive;
226
-
227
- /* Whether we're considered to be at the beginning of a line.
228
- * If so, '^' rules will be active on the next match, otherwise
229
- * not.
230
- */
231
- int yy_at_bol;
232
-
233
- int yy_bs_lineno; /**< The line count. */
234
- int yy_bs_column; /**< The column count. */
235
-
236
- /* Whether to try to fill the input buffer when we reach the
237
- * end of it.
238
- */
239
- int yy_fill_buffer;
240
-
241
- int yy_buffer_status;
242
-
243
- #define YY_BUFFER_NEW 0
244
- #define YY_BUFFER_NORMAL 1
245
- /* When an EOF's been seen but there's still some text to process
246
- * then we mark the buffer as YY_EOF_PENDING, to indicate that we
247
- * shouldn't try reading from the input source any more. We might
248
- * still have a bunch of tokens to match, though, because of
249
- * possible backing-up.
250
- *
251
- * When we actually see the EOF, we change the status to "new"
252
- * (via yyrestart()), so that the user can continue scanning by
253
- * just pointing yyin at a new input file.
254
- */
255
- #define YY_BUFFER_EOF_PENDING 2
256
-
257
- };
258
- #endif /* !YY_STRUCT_YY_BUFFER_STATE */
259
-
260
- /* Stack of input buffers. */
261
- static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
262
- static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
263
- static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
264
-
265
- /* We provide macros for accessing buffer states in case in the
266
- * future we want to put the buffer states in a more general
267
- * "scanner state".
268
- *
269
- * Returns the top of the stack, or NULL.
270
- */
271
- #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
272
- ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
273
- : NULL)
274
-
275
- /* Same as previous macro, but useful when we know that the buffer stack is not
276
- * NULL or when we need an lvalue. For internal use only.
277
- */
278
- #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
279
-
280
- /* yy_hold_char holds the character lost when yytext is formed. */
281
- static char yy_hold_char;
282
- static int yy_n_chars; /* number of characters read into yy_ch_buf */
283
- int yyleng;
284
-
285
- /* Points to current character in buffer. */
286
- static char *yy_c_buf_p = (char *) 0;
287
- static int yy_init = 0; /* whether we need to initialize */
288
- static int yy_start = 0; /* start state number */
289
-
290
- /* Flag which is used to allow yywrap()'s to do buffer switches
291
- * instead of setting up a fresh yyin. A bit of a hack ...
292
- */
293
- static int yy_did_buffer_switch_on_eof;
294
-
295
- void yyrestart (FILE *input_file );
296
- void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer );
297
- YY_BUFFER_STATE yy_create_buffer (FILE *file,int size );
298
- void yy_delete_buffer (YY_BUFFER_STATE b );
299
- void yy_flush_buffer (YY_BUFFER_STATE b );
300
- void yypush_buffer_state (YY_BUFFER_STATE new_buffer );
301
- void yypop_buffer_state (void );
302
-
303
- static void yyensure_buffer_stack (void );
304
- static void yy_load_buffer_state (void );
305
- static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file );
306
-
307
- #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
308
-
309
- YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size );
310
- YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str );
311
- YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len );
312
-
313
- void *yyalloc (yy_size_t );
314
- void *yyrealloc (void *,yy_size_t );
315
- void yyfree (void * );
316
-
317
- #define yy_new_buffer yy_create_buffer
318
-
319
- #define yy_set_interactive(is_interactive) \
320
- { \
321
- if ( ! YY_CURRENT_BUFFER ){ \
322
- yyensure_buffer_stack (); \
323
- YY_CURRENT_BUFFER_LVALUE = \
324
- yy_create_buffer(yyin,YY_BUF_SIZE ); \
325
- } \
326
- YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
327
- }
328
-
329
- #define yy_set_bol(at_bol) \
330
- { \
331
- if ( ! YY_CURRENT_BUFFER ){\
332
- yyensure_buffer_stack (); \
333
- YY_CURRENT_BUFFER_LVALUE = \
334
- yy_create_buffer(yyin,YY_BUF_SIZE ); \
335
- } \
336
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
337
- }
338
-
339
- #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
340
-
341
- /* Begin user sect3 */
342
-
343
- typedef unsigned char YY_CHAR;
344
-
345
- FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
346
-
347
- typedef int yy_state_type;
348
-
349
- extern int yylineno;
350
-
351
- int yylineno = 1;
352
-
353
- extern char *yytext;
354
- #define yytext_ptr yytext
355
-
356
- static yy_state_type yy_get_previous_state (void );
357
- static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
358
- static int yy_get_next_buffer (void );
359
- static void yy_fatal_error (yyconst char msg[] );
360
-
361
- /* Done after the current pattern has been matched and before the
362
- * corresponding action - sets up yytext.
363
- */
364
- #define YY_DO_BEFORE_ACTION \
365
- (yytext_ptr) = yy_bp; \
366
- yyleng = (size_t) (yy_cp - yy_bp); \
367
- (yy_hold_char) = *yy_cp; \
368
- *yy_cp = '\0'; \
369
- (yy_c_buf_p) = yy_cp;
370
-
371
- #define YY_NUM_RULES 66
372
- #define YY_END_OF_BUFFER 67
373
- /* This struct is not used in this scanner,
374
- but its presence is necessary. */
375
- struct yy_trans_info
376
- {
377
- flex_int32_t yy_verify;
378
- flex_int32_t yy_nxt;
379
- };
380
- static yyconst flex_int16_t yy_acclist[232] =
381
- { 0,
382
- 67, 49, 66, 47, 49, 66, 3, 66, 3, 49,
383
- 66, 49, 66, 49, 66, 48, 49, 66, 49, 66,
384
- 49, 66, 48, 49, 66, 48, 49, 66, 1, 49,
385
- 66, 46, 47, 49, 66, 49, 66, 49, 66, 49,
386
- 66, 49, 66, 48, 49, 66, 55, 66, 55, 66,
387
- 55, 66, 54, 55, 66, 58, 66, 58, 66, 58,
388
- 66, 57, 58, 66, 61, 66, 61, 66, 61, 66,
389
- 60, 61, 66, 52, 66, 52, 66, 52, 66, 51,
390
- 52, 66, 47, 49, 66, 46, 47, 49, 66, 47,
391
- 49, 66, 49, 66, 46, 47, 49, 66, 49, 66,
392
-
393
- 47, 49, 66, 49, 66, 46, 47, 49, 66, 49,
394
- 66, 47, 3, 3, 2, 48, 48, 48, 46, 47,
395
- 24, 8, 21, 8, 10, 10, 10, 10, 48, 54,
396
- 57, 60, 51, 47, 46, 47, 47,16446, 63, 46,
397
- 47,16446, 21, 63, 8, 63, 8, 63, 47,16448,
398
- 65, 65, 46, 47, 10, 65, 10, 65, 10, 65,
399
- 9, 9, 11, 11, 27, 48, 48, 23, 20, 12,
400
- 14, 8254, 21, 8254, 8256, 13, 15, 48, 22, 19,
401
- 16, 17, 5, 48, 7, 5, 43, 42, 25, 25,
402
- 25, 25, 18, 18, 56, 26, 7, 32, 33, 33,
403
-
404
- 25, 59, 25, 36, 37, 37, 40, 25, 44, 39,
405
- 40, 41, 25, 26, 6, 4, 45, 29, 6, 4,
406
- 28, 50, 38, 40, 53, 30, 31, 31, 34, 35,
407
- 35
408
- } ;
409
-
410
- static yyconst flex_int16_t yy_accept[376] =
411
- { 0,
412
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
413
- 1, 1, 1, 1, 1, 1, 1, 2, 4, 7,
414
- 9, 12, 14, 16, 19, 21, 23, 26, 29, 32,
415
- 36, 38, 40, 42, 44, 47, 49, 51, 53, 56,
416
- 58, 60, 62, 65, 67, 69, 71, 74, 76, 78,
417
- 80, 83, 86, 90, 93, 95, 99, 101, 104, 106,
418
- 110, 112, 113, 114, 115, 115, 115, 115, 116, 116,
419
- 116, 116, 116, 117, 117, 117, 117, 117, 118, 119,
420
- 121, 121, 121, 122, 122, 123, 124, 124, 125, 125,
421
- 126, 127, 128, 129, 130, 130, 130, 131, 131, 131,
422
-
423
- 131, 132, 132, 132, 132, 133, 133, 133, 133, 134,
424
- 134, 135, 137, 138, 139, 140, 142, 143, 145, 147,
425
- 149, 150, 151, 152, 153, 155, 157, 159, 161, 162,
426
- 163, 163, 164, 165, 166, 166, 166, 166, 166, 166,
427
- 166, 166, 166, 166, 166, 166, 166, 167, 168, 169,
428
- 169, 170, 170, 171, 171, 172, 172, 172, 172, 172,
429
- 172, 173, 175, 176, 177, 177, 178, 178, 178, 178,
430
- 178, 178, 178, 178, 178, 178, 178, 178, 178, 178,
431
- 178, 179, 179, 180, 181, 182, 182, 182, 182, 182,
432
- 182, 183, 183, 183, 183, 183, 184, 184, 184, 184,
433
-
434
- 184, 184, 184, 184, 184, 184, 184, 184, 184, 184,
435
- 185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
436
- 186, 186, 186, 187, 187, 188, 189, 189, 189, 189,
437
- 189, 189, 189, 189, 189, 189, 189, 189, 189, 189,
438
- 189, 190, 191, 192, 193, 193, 194, 195, 195, 196,
439
- 196, 196, 197, 198, 198, 198, 198, 198, 198, 198,
440
- 198, 200, 200, 201, 201, 201, 201, 201, 201, 201,
441
- 201, 201, 202, 202, 203, 203, 203, 203, 203, 203,
442
- 203, 203, 203, 203, 203, 203, 203, 203, 203, 203,
443
- 203, 204, 204, 204, 204, 204, 204, 204, 204, 204,
444
-
445
- 204, 204, 206, 206, 207, 207, 207, 207, 208, 208,
446
- 208, 208, 209, 209, 209, 209, 209, 209, 210, 210,
447
- 210, 210, 210, 210, 210, 210, 212, 212, 213, 215,
448
- 215, 215, 216, 217, 218, 218, 219, 219, 219, 219,
449
- 219, 219, 219, 219, 220, 221, 221, 221, 222, 222,
450
- 222, 222, 223, 223, 223, 223, 223, 223, 225, 226,
451
- 226, 226, 228, 228, 229, 229, 229, 229, 229, 229,
452
- 231, 231, 232, 232, 232
453
- } ;
454
-
455
- static yyconst flex_int32_t yy_ec[256] =
456
- { 0,
457
- 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
458
- 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
459
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
460
- 1, 5, 6, 7, 8, 1, 1, 1, 9, 10,
461
- 10, 11, 1, 12, 13, 14, 15, 16, 17, 17,
462
- 17, 17, 17, 16, 16, 16, 16, 18, 6, 19,
463
- 1, 20, 6, 21, 22, 22, 22, 22, 22, 22,
464
- 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
465
- 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
466
- 23, 1, 24, 1, 25, 1, 26, 27, 28, 29,
467
-
468
- 30, 31, 32, 33, 34, 35, 36, 37, 38, 39,
469
- 40, 41, 35, 42, 43, 44, 45, 46, 47, 48,
470
- 35, 35, 7, 49, 7, 1, 1, 1, 1, 1,
471
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
472
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
473
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
474
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
475
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
476
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
477
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
478
-
479
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
480
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
481
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
482
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
483
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
484
- 1, 1, 1, 1, 50
485
- } ;
486
-
487
- static yyconst flex_int32_t yy_meta[51] =
488
- { 0,
489
- 1, 2, 3, 3, 4, 5, 6, 7, 8, 9,
490
- 10, 11, 12, 13, 1, 14, 14, 5, 6, 6,
491
- 15, 16, 17, 18, 19, 20, 20, 20, 20, 20,
492
- 20, 16, 16, 16, 16, 16, 16, 16, 16, 16,
493
- 16, 16, 16, 16, 16, 16, 16, 16, 1, 21
494
- } ;
495
-
496
- static yyconst flex_int16_t yy_base[434] =
497
- { 0,
498
- 0, 49, 59, 64, 82, 86, 91, 114, 118, 123,
499
- 53, 54, 95, 138, 74, 145, 915, 2157, 177, 172,
500
- 181, 36, 893, 90, 116, 890, 176, 178, 2157, 143,
501
- 188, 87, 0, 231, 244, 2157, 209, 897, 2157, 2157,
502
- 214, 896, 2157, 2157, 268, 895, 2157, 2157, 272, 894,
503
- 2157, 280, 290, 156, 0, 204, 339, 205, 363, 219,
504
- 384, 0, 295, 299, 883, 0, 894, 2157, 304, 64,
505
- 882, 0, 58, 862, 860, 857, 281, 90, 91, 0,
506
- 157, 242, 891, 164, 2157, 889, 60, 0, 872, 2157,
507
- 0, 869, 0, 246, 333, 873, 2157, 859, 408, 871,
508
-
509
- 2157, 819, 412, 843, 2157, 829, 416, 841, 2157, 816,
510
- 329, 356, 0, 243, 2157, 0, 421, 849, 2157, 0,
511
- 0, 224, 2157, 832, 0, 2157, 0, 831, 2157, 0,
512
- 830, 2157, 0, 2157, 0, 818, 802, 815, 0, 0,
513
- 810, 86, 248, 809, 800, 807, 269, 302, 835, 834,
514
- 833, 832, 2157, 435, 2157, 376, 796, 793, 794, 793,
515
- 309, 315, 319, 2157, 439, 2157, 818, 801, 800, 809,
516
- 804, 331, 333, 424, 412, 114, 376, 428, 430, 421,
517
- 447, 491, 822, 821, 2157, 371, 796, 794, 792, 775,
518
- 2157, 804, 0, 796, 762, 479, 785, 782, 0, 439,
519
-
520
- 462, 456, 500, 447, 486, 483, 484, 489, 789, 504,
521
- 513, 549, 599, 425, 773, 782, 767, 766, 517, 541,
522
- 751, 557, 191, 766, 2157, 2157, 769, 529, 530, 541,
523
- 346, 768, 0, 765, 0, 532, 544, 649, 567, 773,
524
- 572, 699, 749, 799, 579, 2157, 584, 766, 2157, 765,
525
- 730, 590, 622, 742, 731, 0, 588, 685, 711, 480,
526
- 2157, 745, 2157, 738, 594, 545, 835, 723, 615, 0,
527
- 0, 883, 710, 2157, 698, 702, 707, 528, 0, 443,
528
- 706, 0, 682, 0, 595, 692, 680, 678, 658, 623,
529
- 933, 983, 719, 630, 608, 608, 606, 578, 0, 597,
530
-
531
- 716, 2157, 573, 2157, 568, 707, 593, 2157, 556, 551,
532
- 515, 1033, 1083, 485, 458, 467, 456, 2157, 377, 347,
533
- 0, 345, 0, 719, 728, 2157, 332, 2157, 0, 305,
534
- 309, 628, 637, 2157, 305, 2157, 303, 702, 281, 0,
535
- 272, 249, 242, 722, 750, 763, 735, 2157, 212, 210,
536
- 203, 2157, 758, 184, 0, 176, 0, 2157, 2157, 766,
537
- 742, 2157, 163, 2157, 136, 128, 0, 115, 0, 2157,
538
- 89, 2157, 53, 2157, 1133, 1154, 1175, 1196, 1206, 1215,
539
- 1235, 1256, 1276, 1296, 1315, 1336, 1356, 1376, 1379, 1393,
540
- 1413, 1434, 1455, 1476, 1486, 1506, 1524, 1533, 410, 1553,
541
-
542
- 1574, 1584, 1604, 1625, 1646, 1667, 1688, 1698, 454, 1718,
543
- 1739, 1760, 1770, 1790, 1811, 1832, 1853, 1863, 1883, 1904,
544
- 1925, 1946, 1967, 1988, 2009, 2030, 458, 2051, 514, 2072,
545
- 2093, 2114, 2135
546
- } ;
547
-
548
- static yyconst flex_int16_t yy_def[434] =
549
- { 0,
550
- 374, 1, 375, 375, 376, 376, 377, 377, 378, 378,
551
- 1, 1, 1, 1, 1, 1, 374, 374, 374, 374,
552
- 374, 374, 379, 380, 374, 374, 380, 380, 374, 19,
553
- 374, 381, 382, 383, 380, 374, 374, 374, 374, 374,
554
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
555
- 374, 374, 374, 19, 384, 30, 381, 19, 379, 30,
556
- 383, 19, 374, 374, 385, 386, 387, 374, 374, 388,
557
- 379, 389, 35, 374, 374, 374, 390, 35, 35, 30,
558
- 374, 385, 374, 374, 374, 374, 374, 391, 382, 374,
559
- 392, 379, 389, 35, 374, 374, 374, 374, 374, 374,
560
-
561
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
562
- 374, 374, 54, 385, 374, 56, 385, 374, 374, 391,
563
- 58, 387, 374, 379, 60, 374, 392, 379, 374, 393,
564
- 386, 374, 394, 374, 395, 374, 374, 374, 396, 397,
565
- 397, 397, 397, 397, 397, 397, 35, 35, 374, 374,
566
- 374, 374, 374, 374, 374, 379, 374, 374, 374, 374,
567
- 374, 374, 374, 374, 374, 374, 398, 374, 374, 374,
568
- 396, 397, 397, 397, 397, 399, 397, 397, 397, 397,
569
- 35, 400, 374, 374, 374, 401, 374, 374, 374, 374,
570
- 374, 398, 402, 374, 374, 374, 374, 374, 403, 397,
571
-
572
- 397, 397, 399, 399, 397, 397, 397, 397, 374, 35,
573
- 404, 405, 406, 407, 374, 374, 374, 374, 408, 374,
574
- 374, 374, 374, 374, 374, 374, 403, 397, 397, 397,
575
- 409, 374, 410, 374, 411, 397, 397, 374, 397, 374,
576
- 404, 405, 406, 412, 407, 374, 407, 374, 374, 374,
577
- 374, 408, 374, 374, 374, 413, 397, 397, 409, 409,
578
- 374, 410, 374, 411, 397, 397, 238, 414, 238, 415,
579
- 416, 417, 374, 374, 374, 374, 374, 413, 418, 374,
580
- 374, 419, 374, 420, 397, 397, 374, 414, 267, 415,
581
- 417, 421, 374, 374, 374, 374, 374, 374, 422, 418,
582
-
583
- 374, 374, 419, 374, 420, 397, 374, 374, 374, 267,
584
- 374, 423, 423, 374, 374, 374, 374, 374, 422, 374,
585
- 424, 374, 425, 397, 374, 374, 426, 374, 313, 374,
586
- 374, 374, 374, 374, 424, 374, 425, 427, 374, 428,
587
- 426, 374, 374, 374, 374, 427, 427, 374, 428, 374,
588
- 374, 374, 429, 374, 430, 374, 431, 374, 374, 429,
589
- 429, 374, 430, 374, 431, 374, 432, 374, 433, 374,
590
- 432, 374, 433, 0, 374, 374, 374, 374, 374, 374,
591
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
592
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
593
-
594
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
595
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
596
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
597
- 374, 374, 374
598
- } ;
599
-
600
- static yyconst flex_int16_t yy_nxt[2208] =
601
- { 0,
602
- 18, 19, 20, 21, 19, 18, 18, 22, 18, 18,
603
- 18, 18, 23, 23, 18, 24, 24, 18, 25, 18,
604
- 18, 24, 26, 18, 23, 24, 24, 24, 24, 24,
605
- 24, 24, 27, 24, 24, 24, 24, 24, 24, 24,
606
- 24, 24, 24, 24, 24, 24, 28, 24, 18, 29,
607
- 30, 70, 70, 30, 52, 53, 31, 52, 53, 32,
608
- 37, 37, 37, 37, 151, 37, 37, 37, 37, 33,
609
- 152, 18, 18, 34, 73, 58, 368, 38, 58, 70,
610
- 70, 35, 38, 41, 41, 41, 41, 41, 41, 41,
611
- 41, 86, 45, 45, 45, 45, 54, 87, 59, 54,
612
-
613
- 42, 73, 71, 71, 42, 55, 73, 73, 39, 46,
614
- 72, 88, 366, 39, 71, 45, 45, 45, 45, 49,
615
- 49, 49, 49, 174, 49, 49, 49, 49, 175, 203,
616
- 203, 43, 46, 147, 73, 43, 50, 148, 372, 56,
617
- 47, 50, 56, 74, 80, 31, 60, 80, 57, 60,
618
- 81, 370, 31, 82, 75, 32, 76, 113, 33, 356,
619
- 113, 83, 34, 47, 84, 33, 114, 51, 149, 61,
620
- 35, 150, 51, 69, 69, 69, 69, 35, 62, 63,
621
- 64, 62, 69, 63, 69, 69, 354, 65, 71, 71,
622
- 71, 71, 83, 223, 223, 84, 72, 66, 72, 364,
623
-
624
- 71, 67, 71, 70, 70, 116, 121, 362, 116, 121,
625
- 95, 95, 95, 95, 117, 99, 99, 99, 99, 78,
626
- 125, 68, 359, 125, 79, 163, 68, 96, 163, 122,
627
- 68, 90, 100, 358, 133, 339, 90, 90, 90, 90,
628
- 90, 91, 90, 122, 161, 90, 86, 161, 90, 90,
629
- 90, 93, 87, 90, 90, 71, 71, 71, 97, 156,
630
- 94, 352, 73, 101, 72, 176, 130, 130, 71, 103,
631
- 103, 103, 103, 107, 107, 107, 107, 177, 351, 90,
632
- 90, 111, 63, 64, 111, 73, 104, 78, 139, 73,
633
- 108, 112, 63, 64, 112, 350, 69, 69, 69, 69,
634
-
635
- 69, 63, 69, 69, 348, 69, 69, 69, 69, 181,
636
- 161, 141, 73, 161, 142, 182, 161, 105, 73, 162,
637
- 163, 109, 143, 163, 144, 145, 322, 146, 320, 68,
638
- 111, 63, 64, 111, 95, 95, 95, 95, 343, 68,
639
- 115, 115, 115, 118, 68, 73, 342, 119, 68, 87,
640
- 119, 96, 115, 68, 198, 287, 198, 112, 63, 64,
641
- 112, 259, 259, 120, 123, 123, 123, 123, 336, 200,
642
- 334, 123, 186, 123, 123, 186, 124, 186, 68, 199,
643
- 186, 199, 97, 72, 90, 123, 123, 123, 123, 90,
644
- 90, 90, 126, 90, 127, 126, 72, 128, 90, 198,
645
-
646
- 298, 90, 90, 90, 93, 68, 90, 90, 71, 99,
647
- 99, 99, 99, 103, 103, 103, 103, 107, 107, 107,
648
- 107, 205, 161, 204, 199, 162, 100, 246, 246, 204,
649
- 104, 87, 90, 90, 108, 198, 185, 185, 185, 185,
650
- 191, 191, 191, 191, 198, 130, 185, 198, 185, 201,
651
- 191, 198, 191, 198, 202, 206, 208, 101, 301, 301,
652
- 199, 105, 198, 73, 209, 109, 207, 260, 228, 199,
653
- 234, 347, 199, 260, 247, 333, 199, 347, 199, 198,
654
- 222, 223, 223, 222, 185, 198, 332, 199, 191, 210,
655
- 73, 211, 211, 229, 331, 235, 211, 224, 211, 211,
656
-
657
- 230, 238, 211, 283, 199, 211, 198, 198, 211, 198,
658
- 199, 213, 198, 211, 211, 203, 203, 231, 237, 236,
659
- 73, 209, 239, 232, 211, 330, 211, 361, 284, 219,
660
- 219, 199, 199, 361, 199, 211, 211, 199, 328, 211,
661
- 211, 219, 253, 253, 253, 253, 256, 73, 233, 241,
662
- 241, 298, 198, 198, 241, 198, 241, 241, 222, 257,
663
- 211, 222, 212, 241, 198, 327, 241, 198, 198, 243,
664
- 258, 211, 211, 266, 265, 224, 299, 199, 199, 326,
665
- 199, 246, 246, 211, 270, 211, 246, 246, 286, 199,
666
- 198, 283, 199, 199, 211, 211, 281, 241, 241, 241,
667
-
668
- 241, 318, 219, 219, 241, 279, 241, 241, 325, 325,
669
- 211, 198, 211, 241, 219, 199, 241, 198, 198, 241,
670
- 320, 211, 211, 253, 253, 253, 253, 285, 247, 267,
671
- 344, 344, 289, 247, 306, 317, 199, 316, 287, 345,
672
- 345, 315, 199, 199, 314, 321, 311, 241, 241, 267,
673
- 267, 267, 267, 267, 267, 267, 267, 267, 267, 267,
674
- 267, 267, 267, 268, 267, 267, 267, 267, 267, 267,
675
- 267, 267, 310, 267, 269, 269, 269, 269, 269, 269,
676
- 269, 269, 269, 269, 269, 269, 269, 269, 269, 269,
677
- 269, 269, 269, 269, 269, 269, 269, 267, 267, 241,
678
-
679
- 241, 309, 280, 308, 241, 304, 241, 241, 198, 307,
680
- 211, 293, 212, 241, 293, 198, 241, 346, 346, 243,
681
- 293, 211, 211, 293, 344, 344, 259, 259, 294, 302,
682
- 198, 301, 301, 199, 281, 297, 338, 294, 296, 322,
683
- 199, 295, 198, 325, 325, 324, 287, 241, 241, 241,
684
- 241, 339, 345, 345, 241, 199, 241, 241, 356, 282,
685
- 211, 234, 211, 241, 323, 368, 241, 199, 232, 241,
686
- 277, 211, 211, 360, 360, 276, 340, 275, 346, 346,
687
- 353, 360, 360, 357, 274, 273, 354, 271, 263, 366,
688
- 369, 261, 198, 255, 254, 251, 250, 241, 241, 241,
689
-
690
- 241, 249, 248, 240, 241, 226, 241, 241, 225, 221,
691
- 211, 355, 211, 241, 367, 220, 241, 193, 218, 241,
692
- 217, 211, 211, 216, 215, 184, 183, 197, 196, 195,
693
- 194, 193, 190, 189, 188, 187, 184, 151, 183, 149,
694
- 180, 179, 178, 173, 170, 169, 168, 241, 241, 267,
695
- 165, 72, 72, 86, 160, 110, 159, 106, 287, 158,
696
- 267, 267, 267, 267, 267, 267, 267, 267, 267, 267,
697
- 267, 267, 267, 267, 267, 267, 267, 267, 267, 267,
698
- 267, 267, 267, 241, 241, 102, 157, 98, 241, 72,
699
- 241, 241, 154, 86, 211, 83, 292, 241, 138, 137,
700
-
701
- 241, 136, 72, 241, 133, 211, 211, 130, 110, 106,
702
- 102, 98, 77, 72, 374, 374, 374, 374, 374, 374,
703
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
704
- 374, 241, 241, 241, 241, 374, 374, 374, 241, 374,
705
- 241, 241, 374, 374, 211, 374, 292, 241, 374, 374,
706
- 241, 374, 374, 241, 374, 211, 211, 374, 374, 374,
707
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
708
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
709
- 374, 241, 241, 241, 241, 374, 374, 374, 241, 374,
710
- 241, 241, 374, 374, 211, 374, 313, 241, 374, 374,
711
-
712
- 241, 374, 374, 241, 374, 211, 211, 374, 374, 374,
713
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
714
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
715
- 374, 241, 241, 241, 241, 374, 374, 374, 241, 374,
716
- 241, 241, 374, 374, 211, 312, 313, 241, 374, 374,
717
- 241, 374, 374, 241, 374, 211, 211, 312, 374, 374,
718
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
719
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
720
- 374, 241, 241, 241, 241, 374, 374, 374, 241, 374,
721
- 241, 241, 374, 374, 211, 312, 313, 241, 374, 374,
722
-
723
- 241, 374, 374, 241, 374, 211, 211, 312, 374, 374,
724
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
725
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
726
- 374, 241, 241, 36, 36, 36, 36, 36, 36, 36,
727
- 36, 36, 36, 36, 36, 36, 36, 36, 36, 36,
728
- 36, 36, 36, 36, 40, 40, 40, 40, 40, 40,
729
- 40, 40, 40, 40, 40, 40, 40, 40, 40, 40,
730
- 40, 40, 40, 40, 40, 44, 44, 44, 44, 44,
731
- 44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
732
- 44, 44, 44, 44, 44, 44, 48, 48, 48, 48,
733
-
734
- 48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
735
- 48, 48, 48, 48, 48, 48, 48, 71, 71, 71,
736
- 71, 71, 374, 374, 71, 71, 73, 73, 73, 73,
737
- 73, 374, 374, 73, 73, 85, 374, 374, 85, 85,
738
- 85, 85, 85, 85, 85, 85, 85, 374, 85, 85,
739
- 85, 85, 85, 85, 85, 85, 89, 89, 374, 89,
740
- 89, 89, 89, 89, 89, 89, 89, 89, 89, 89,
741
- 374, 89, 89, 89, 89, 89, 92, 374, 374, 374,
742
- 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
743
- 92, 92, 92, 92, 92, 92, 92, 115, 115, 115,
744
-
745
- 374, 374, 374, 115, 374, 374, 115, 374, 115, 374,
746
- 374, 374, 374, 374, 115, 129, 374, 374, 374, 129,
747
- 129, 129, 129, 129, 374, 129, 129, 374, 129, 129,
748
- 129, 129, 129, 129, 129, 129, 131, 131, 374, 131,
749
- 131, 131, 131, 131, 131, 131, 131, 131, 131, 131,
750
- 374, 131, 131, 131, 131, 131, 132, 374, 374, 374,
751
- 132, 132, 132, 132, 132, 132, 132, 132, 132, 132,
752
- 132, 132, 132, 132, 374, 132, 132, 134, 134, 134,
753
- 134, 374, 374, 374, 134, 374, 134, 134, 134, 134,
754
- 135, 374, 135, 374, 135, 374, 374, 135, 135, 140,
755
-
756
- 374, 374, 374, 374, 140, 374, 140, 374, 140, 374,
757
- 374, 140, 140, 153, 374, 374, 374, 153, 153, 153,
758
- 153, 153, 374, 153, 153, 374, 153, 153, 153, 153,
759
- 153, 374, 153, 153, 155, 374, 374, 374, 155, 155,
760
- 155, 155, 155, 374, 155, 155, 374, 155, 155, 155,
761
- 155, 155, 374, 155, 155, 164, 374, 374, 374, 164,
762
- 164, 164, 164, 164, 374, 164, 164, 374, 164, 164,
763
- 164, 164, 164, 374, 164, 164, 166, 374, 374, 374,
764
- 166, 166, 166, 166, 166, 374, 166, 166, 374, 166,
765
- 166, 166, 166, 166, 374, 166, 166, 167, 374, 167,
766
-
767
- 374, 167, 374, 374, 167, 167, 171, 171, 374, 171,
768
- 171, 171, 171, 171, 171, 171, 171, 171, 171, 171,
769
- 171, 171, 374, 374, 171, 171, 171, 172, 374, 374,
770
- 172, 374, 374, 374, 374, 172, 374, 172, 374, 172,
771
- 374, 374, 172, 172, 192, 192, 192, 374, 192, 374,
772
- 374, 192, 192, 212, 212, 374, 374, 212, 374, 212,
773
- 212, 374, 374, 212, 212, 212, 212, 212, 212, 212,
774
- 212, 212, 212, 212, 214, 214, 374, 214, 214, 214,
775
- 214, 214, 214, 214, 214, 214, 214, 214, 214, 214,
776
- 214, 214, 214, 214, 214, 219, 219, 219, 374, 219,
777
-
778
- 374, 374, 219, 219, 227, 227, 227, 227, 227, 227,
779
- 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
780
- 374, 374, 227, 227, 227, 241, 241, 374, 374, 241,
781
- 374, 241, 241, 374, 374, 241, 241, 241, 241, 241,
782
- 241, 241, 241, 241, 241, 241, 242, 242, 374, 374,
783
- 242, 374, 242, 242, 374, 374, 242, 242, 242, 242,
784
- 242, 242, 242, 242, 242, 242, 242, 244, 244, 374,
785
- 374, 244, 374, 244, 244, 374, 374, 244, 244, 244,
786
- 244, 244, 244, 244, 244, 244, 244, 244, 245, 245,
787
- 245, 245, 245, 245, 245, 245, 245, 245, 245, 245,
788
-
789
- 245, 245, 245, 245, 245, 245, 245, 245, 245, 252,
790
- 252, 252, 374, 252, 374, 374, 252, 252, 262, 262,
791
- 262, 262, 262, 262, 262, 262, 262, 262, 262, 262,
792
- 262, 262, 262, 262, 374, 374, 262, 262, 262, 264,
793
- 264, 264, 264, 264, 264, 264, 264, 264, 264, 264,
794
- 264, 264, 264, 264, 264, 374, 374, 264, 264, 264,
795
- 272, 272, 374, 374, 272, 374, 272, 272, 374, 374,
796
- 272, 272, 272, 272, 272, 272, 272, 272, 272, 272,
797
- 272, 278, 278, 278, 374, 278, 374, 374, 278, 278,
798
- 288, 288, 288, 288, 288, 288, 288, 288, 288, 288,
799
-
800
- 288, 288, 288, 288, 288, 288, 288, 288, 288, 288,
801
- 288, 290, 290, 290, 290, 290, 290, 290, 290, 290,
802
- 290, 290, 290, 290, 290, 290, 290, 290, 374, 290,
803
- 290, 290, 211, 211, 374, 374, 211, 374, 211, 211,
804
- 374, 374, 211, 211, 211, 211, 211, 211, 211, 211,
805
- 211, 211, 211, 291, 291, 374, 374, 291, 374, 291,
806
- 291, 374, 374, 291, 291, 291, 291, 291, 291, 291,
807
- 291, 291, 291, 291, 300, 300, 300, 374, 300, 374,
808
- 374, 300, 300, 303, 303, 303, 303, 303, 303, 303,
809
- 303, 303, 303, 303, 303, 303, 303, 303, 303, 374,
810
-
811
- 374, 303, 303, 303, 305, 305, 305, 305, 305, 305,
812
- 305, 305, 305, 305, 305, 305, 305, 305, 305, 305,
813
- 374, 374, 305, 305, 305, 312, 312, 374, 374, 312,
814
- 374, 312, 312, 374, 374, 312, 312, 312, 312, 312,
815
- 312, 312, 312, 312, 312, 312, 319, 319, 319, 319,
816
- 319, 319, 319, 319, 319, 319, 319, 319, 319, 319,
817
- 319, 319, 374, 374, 319, 319, 319, 329, 329, 374,
818
- 374, 329, 374, 329, 329, 374, 374, 329, 329, 329,
819
- 329, 329, 329, 329, 329, 329, 329, 329, 335, 335,
820
- 335, 335, 335, 335, 335, 335, 335, 335, 335, 335,
821
-
822
- 335, 335, 335, 335, 374, 374, 335, 335, 335, 337,
823
- 337, 337, 337, 337, 337, 337, 337, 337, 337, 337,
824
- 337, 337, 337, 337, 337, 374, 374, 337, 337, 337,
825
- 341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
826
- 341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
827
- 341, 349, 349, 349, 349, 349, 349, 349, 349, 349,
828
- 349, 349, 349, 349, 349, 349, 349, 374, 374, 349,
829
- 349, 349, 363, 363, 363, 363, 363, 363, 363, 363,
830
- 363, 363, 363, 363, 363, 363, 363, 363, 374, 374,
831
- 363, 363, 363, 365, 365, 365, 365, 365, 365, 365,
832
-
833
- 365, 365, 365, 365, 365, 365, 365, 365, 365, 374,
834
- 374, 365, 365, 365, 371, 371, 371, 371, 371, 371,
835
- 371, 371, 371, 371, 371, 371, 371, 371, 371, 371,
836
- 374, 374, 371, 371, 371, 373, 373, 373, 373, 373,
837
- 373, 373, 373, 373, 373, 373, 373, 373, 373, 373,
838
- 373, 374, 374, 373, 373, 373, 17, 374, 374, 374,
839
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
840
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
841
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
842
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
843
-
844
- 374, 374, 374, 374, 374, 374, 374
845
- } ;
846
-
847
- static yyconst flex_int16_t yy_chk[2208] =
848
- { 0,
849
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
850
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
851
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
852
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
853
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
854
- 2, 22, 22, 2, 11, 12, 2, 11, 12, 2,
855
- 3, 3, 3, 3, 87, 4, 4, 4, 4, 2,
856
- 87, 11, 12, 2, 73, 15, 373, 3, 15, 70,
857
- 70, 2, 4, 5, 5, 5, 5, 6, 6, 6,
858
- 6, 32, 7, 7, 7, 7, 13, 32, 15, 13,
859
-
860
- 5, 73, 24, 24, 6, 13, 78, 79, 3, 7,
861
- 24, 32, 371, 4, 24, 8, 8, 8, 8, 9,
862
- 9, 9, 9, 142, 10, 10, 10, 10, 142, 176,
863
- 176, 5, 8, 78, 79, 6, 9, 79, 368, 14,
864
- 7, 10, 14, 25, 30, 14, 16, 30, 14, 16,
865
- 30, 366, 16, 30, 25, 16, 25, 54, 14, 365,
866
- 54, 81, 14, 8, 81, 16, 54, 9, 84, 16,
867
- 14, 84, 10, 20, 20, 20, 20, 16, 19, 19,
868
- 19, 19, 21, 21, 21, 21, 363, 19, 27, 27,
869
- 28, 28, 31, 223, 223, 31, 27, 19, 28, 356,
870
-
871
- 27, 19, 28, 31, 31, 56, 58, 354, 56, 58,
872
- 37, 37, 37, 37, 56, 41, 41, 41, 41, 27,
873
- 60, 20, 351, 60, 28, 122, 19, 37, 122, 58,
874
- 21, 34, 41, 350, 122, 349, 34, 34, 34, 34,
875
- 34, 34, 34, 60, 114, 34, 82, 114, 34, 34,
876
- 34, 34, 82, 34, 34, 34, 35, 35, 37, 94,
877
- 35, 343, 94, 41, 35, 143, 82, 114, 35, 45,
878
- 45, 45, 45, 49, 49, 49, 49, 143, 342, 34,
879
- 34, 52, 52, 52, 52, 147, 45, 35, 77, 94,
880
- 49, 53, 53, 53, 53, 341, 63, 63, 63, 63,
881
-
882
- 64, 64, 64, 64, 339, 69, 69, 69, 69, 147,
883
- 161, 77, 147, 161, 77, 148, 162, 45, 148, 162,
884
- 163, 49, 77, 163, 77, 77, 337, 77, 335, 52,
885
- 111, 111, 111, 111, 95, 95, 95, 95, 331, 53,
886
- 57, 57, 57, 57, 63, 148, 330, 57, 64, 57,
887
- 57, 95, 57, 69, 172, 327, 173, 112, 112, 112,
888
- 112, 231, 231, 57, 59, 59, 59, 59, 322, 173,
889
- 320, 59, 186, 59, 59, 186, 59, 156, 111, 172,
890
- 156, 173, 95, 59, 61, 61, 61, 61, 61, 61,
891
- 61, 61, 61, 61, 61, 61, 156, 61, 61, 177,
892
-
893
- 319, 61, 61, 61, 61, 112, 61, 61, 61, 99,
894
- 99, 99, 99, 103, 103, 103, 103, 107, 107, 107,
895
- 107, 177, 117, 399, 177, 117, 99, 214, 214, 399,
896
- 103, 117, 61, 61, 107, 175, 154, 154, 154, 154,
897
- 165, 165, 165, 165, 180, 117, 154, 174, 154, 174,
898
- 165, 178, 165, 179, 175, 178, 180, 99, 280, 280,
899
- 175, 103, 200, 181, 181, 107, 179, 409, 200, 180,
900
- 204, 427, 174, 409, 214, 317, 178, 427, 179, 202,
901
- 196, 196, 196, 196, 154, 201, 316, 200, 165, 181,
902
- 181, 182, 182, 201, 315, 204, 182, 196, 182, 182,
903
-
904
- 202, 207, 182, 260, 202, 182, 206, 207, 182, 205,
905
- 201, 182, 208, 182, 182, 203, 203, 203, 206, 205,
906
- 210, 210, 208, 203, 211, 314, 211, 429, 260, 219,
907
- 219, 206, 207, 429, 205, 211, 211, 208, 311, 182,
908
- 182, 219, 220, 220, 220, 220, 228, 210, 203, 212,
909
- 212, 278, 228, 229, 212, 236, 212, 212, 222, 229,
910
- 212, 222, 212, 212, 230, 310, 212, 237, 266, 212,
911
- 230, 212, 212, 237, 236, 222, 278, 228, 229, 309,
912
- 236, 245, 245, 241, 239, 241, 247, 247, 266, 230,
913
- 239, 305, 237, 266, 241, 241, 303, 212, 212, 213,
914
-
915
- 213, 298, 252, 252, 213, 257, 213, 213, 307, 307,
916
- 213, 257, 213, 213, 252, 239, 213, 265, 285, 213,
917
- 300, 213, 213, 253, 253, 253, 253, 265, 245, 269,
918
- 332, 332, 269, 247, 285, 297, 257, 296, 269, 333,
919
- 333, 295, 265, 285, 294, 300, 290, 213, 213, 238,
920
- 238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
921
- 238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
922
- 238, 238, 289, 238, 238, 238, 238, 238, 238, 238,
923
- 238, 238, 238, 238, 238, 238, 238, 238, 238, 238,
924
- 238, 238, 238, 238, 238, 238, 238, 238, 238, 242,
925
-
926
- 242, 288, 258, 287, 242, 283, 242, 242, 258, 286,
927
- 242, 273, 242, 242, 273, 286, 242, 338, 338, 242,
928
- 293, 242, 242, 293, 344, 344, 259, 259, 273, 281,
929
- 306, 301, 301, 258, 259, 277, 324, 293, 276, 301,
930
- 286, 275, 324, 325, 325, 306, 268, 242, 242, 243,
931
- 243, 325, 345, 345, 243, 306, 243, 243, 347, 259,
932
- 243, 264, 243, 243, 301, 361, 243, 324, 262, 243,
933
- 255, 243, 243, 353, 353, 254, 325, 251, 346, 346,
934
- 346, 360, 360, 347, 250, 248, 346, 240, 234, 360,
935
- 361, 232, 227, 224, 221, 218, 217, 243, 243, 244,
936
-
937
- 244, 216, 215, 209, 244, 198, 244, 244, 197, 195,
938
- 244, 346, 244, 244, 360, 194, 244, 192, 190, 244,
939
- 189, 244, 244, 188, 187, 184, 183, 171, 170, 169,
940
- 168, 167, 160, 159, 158, 157, 152, 151, 150, 149,
941
- 146, 145, 144, 141, 138, 137, 136, 244, 244, 267,
942
- 131, 128, 124, 118, 110, 108, 106, 104, 267, 102,
943
- 267, 267, 267, 267, 267, 267, 267, 267, 267, 267,
944
- 267, 267, 267, 267, 267, 267, 267, 267, 267, 267,
945
- 267, 267, 267, 272, 272, 100, 98, 96, 272, 92,
946
- 272, 272, 89, 86, 272, 83, 272, 272, 76, 75,
947
-
948
- 272, 74, 71, 272, 67, 272, 272, 65, 50, 46,
949
- 42, 38, 26, 23, 17, 0, 0, 0, 0, 0,
950
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
951
- 0, 272, 272, 291, 291, 0, 0, 0, 291, 0,
952
- 291, 291, 0, 0, 291, 0, 291, 291, 0, 0,
953
- 291, 0, 0, 291, 0, 291, 291, 0, 0, 0,
954
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
955
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
956
- 0, 291, 291, 292, 292, 0, 0, 0, 292, 0,
957
- 292, 292, 0, 0, 292, 0, 292, 292, 0, 0,
958
-
959
- 292, 0, 0, 292, 0, 292, 292, 0, 0, 0,
960
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
961
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
962
- 0, 292, 292, 312, 312, 0, 0, 0, 312, 0,
963
- 312, 312, 0, 0, 312, 312, 312, 312, 0, 0,
964
- 312, 0, 0, 312, 0, 312, 312, 312, 0, 0,
965
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
966
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
967
- 0, 312, 312, 313, 313, 0, 0, 0, 313, 0,
968
- 313, 313, 0, 0, 313, 313, 313, 313, 0, 0,
969
-
970
- 313, 0, 0, 313, 0, 313, 313, 313, 0, 0,
971
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
972
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
973
- 0, 313, 313, 375, 375, 375, 375, 375, 375, 375,
974
- 375, 375, 375, 375, 375, 375, 375, 375, 375, 375,
975
- 375, 375, 375, 375, 376, 376, 376, 376, 376, 376,
976
- 376, 376, 376, 376, 376, 376, 376, 376, 376, 376,
977
- 376, 376, 376, 376, 376, 377, 377, 377, 377, 377,
978
- 377, 377, 377, 377, 377, 377, 377, 377, 377, 377,
979
- 377, 377, 377, 377, 377, 377, 378, 378, 378, 378,
980
-
981
- 378, 378, 378, 378, 378, 378, 378, 378, 378, 378,
982
- 378, 378, 378, 378, 378, 378, 378, 379, 379, 379,
983
- 379, 379, 0, 0, 379, 379, 380, 380, 380, 380,
984
- 380, 0, 0, 380, 380, 381, 0, 0, 381, 381,
985
- 381, 381, 381, 381, 381, 381, 381, 0, 381, 381,
986
- 381, 381, 381, 381, 381, 381, 382, 382, 0, 382,
987
- 382, 382, 382, 382, 382, 382, 382, 382, 382, 382,
988
- 0, 382, 382, 382, 382, 382, 383, 0, 0, 0,
989
- 383, 383, 383, 383, 383, 383, 383, 383, 383, 383,
990
- 383, 383, 383, 383, 383, 383, 383, 384, 384, 384,
991
-
992
- 0, 0, 0, 384, 0, 0, 384, 0, 384, 0,
993
- 0, 0, 0, 0, 384, 385, 0, 0, 0, 385,
994
- 385, 385, 385, 385, 0, 385, 385, 0, 385, 385,
995
- 385, 385, 385, 385, 385, 385, 386, 386, 0, 386,
996
- 386, 386, 386, 386, 386, 386, 386, 386, 386, 386,
997
- 0, 386, 386, 386, 386, 386, 387, 0, 0, 0,
998
- 387, 387, 387, 387, 387, 387, 387, 387, 387, 387,
999
- 387, 387, 387, 387, 0, 387, 387, 388, 388, 388,
1000
- 388, 0, 0, 0, 388, 0, 388, 388, 388, 388,
1001
- 389, 0, 389, 0, 389, 0, 0, 389, 389, 390,
1002
-
1003
- 0, 0, 0, 0, 390, 0, 390, 0, 390, 0,
1004
- 0, 390, 390, 391, 0, 0, 0, 391, 391, 391,
1005
- 391, 391, 0, 391, 391, 0, 391, 391, 391, 391,
1006
- 391, 0, 391, 391, 392, 0, 0, 0, 392, 392,
1007
- 392, 392, 392, 0, 392, 392, 0, 392, 392, 392,
1008
- 392, 392, 0, 392, 392, 393, 0, 0, 0, 393,
1009
- 393, 393, 393, 393, 0, 393, 393, 0, 393, 393,
1010
- 393, 393, 393, 0, 393, 393, 394, 0, 0, 0,
1011
- 394, 394, 394, 394, 394, 0, 394, 394, 0, 394,
1012
- 394, 394, 394, 394, 0, 394, 394, 395, 0, 395,
1013
-
1014
- 0, 395, 0, 0, 395, 395, 396, 396, 0, 396,
1015
- 396, 396, 396, 396, 396, 396, 396, 396, 396, 396,
1016
- 396, 396, 0, 0, 396, 396, 396, 397, 0, 0,
1017
- 397, 0, 0, 0, 0, 397, 0, 397, 0, 397,
1018
- 0, 0, 397, 397, 398, 398, 398, 0, 398, 0,
1019
- 0, 398, 398, 400, 400, 0, 0, 400, 0, 400,
1020
- 400, 0, 0, 400, 400, 400, 400, 400, 400, 400,
1021
- 400, 400, 400, 400, 401, 401, 0, 401, 401, 401,
1022
- 401, 401, 401, 401, 401, 401, 401, 401, 401, 401,
1023
- 401, 401, 401, 401, 401, 402, 402, 402, 0, 402,
1024
-
1025
- 0, 0, 402, 402, 403, 403, 403, 403, 403, 403,
1026
- 403, 403, 403, 403, 403, 403, 403, 403, 403, 403,
1027
- 0, 0, 403, 403, 403, 404, 404, 0, 0, 404,
1028
- 0, 404, 404, 0, 0, 404, 404, 404, 404, 404,
1029
- 404, 404, 404, 404, 404, 404, 405, 405, 0, 0,
1030
- 405, 0, 405, 405, 0, 0, 405, 405, 405, 405,
1031
- 405, 405, 405, 405, 405, 405, 405, 406, 406, 0,
1032
- 0, 406, 0, 406, 406, 0, 0, 406, 406, 406,
1033
- 406, 406, 406, 406, 406, 406, 406, 406, 407, 407,
1034
- 407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
1035
-
1036
- 407, 407, 407, 407, 407, 407, 407, 407, 407, 408,
1037
- 408, 408, 0, 408, 0, 0, 408, 408, 410, 410,
1038
- 410, 410, 410, 410, 410, 410, 410, 410, 410, 410,
1039
- 410, 410, 410, 410, 0, 0, 410, 410, 410, 411,
1040
- 411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
1041
- 411, 411, 411, 411, 411, 0, 0, 411, 411, 411,
1042
- 412, 412, 0, 0, 412, 0, 412, 412, 0, 0,
1043
- 412, 412, 412, 412, 412, 412, 412, 412, 412, 412,
1044
- 412, 413, 413, 413, 0, 413, 0, 0, 413, 413,
1045
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
1046
-
1047
- 414, 414, 414, 414, 414, 414, 414, 414, 414, 414,
1048
- 414, 415, 415, 415, 415, 415, 415, 415, 415, 415,
1049
- 415, 415, 415, 415, 415, 415, 415, 415, 0, 415,
1050
- 415, 415, 416, 416, 0, 0, 416, 0, 416, 416,
1051
- 0, 0, 416, 416, 416, 416, 416, 416, 416, 416,
1052
- 416, 416, 416, 417, 417, 0, 0, 417, 0, 417,
1053
- 417, 0, 0, 417, 417, 417, 417, 417, 417, 417,
1054
- 417, 417, 417, 417, 418, 418, 418, 0, 418, 0,
1055
- 0, 418, 418, 419, 419, 419, 419, 419, 419, 419,
1056
- 419, 419, 419, 419, 419, 419, 419, 419, 419, 0,
1057
-
1058
- 0, 419, 419, 419, 420, 420, 420, 420, 420, 420,
1059
- 420, 420, 420, 420, 420, 420, 420, 420, 420, 420,
1060
- 0, 0, 420, 420, 420, 421, 421, 0, 0, 421,
1061
- 0, 421, 421, 0, 0, 421, 421, 421, 421, 421,
1062
- 421, 421, 421, 421, 421, 421, 422, 422, 422, 422,
1063
- 422, 422, 422, 422, 422, 422, 422, 422, 422, 422,
1064
- 422, 422, 0, 0, 422, 422, 422, 423, 423, 0,
1065
- 0, 423, 0, 423, 423, 0, 0, 423, 423, 423,
1066
- 423, 423, 423, 423, 423, 423, 423, 423, 424, 424,
1067
- 424, 424, 424, 424, 424, 424, 424, 424, 424, 424,
1068
-
1069
- 424, 424, 424, 424, 0, 0, 424, 424, 424, 425,
1070
- 425, 425, 425, 425, 425, 425, 425, 425, 425, 425,
1071
- 425, 425, 425, 425, 425, 0, 0, 425, 425, 425,
1072
- 426, 426, 426, 426, 426, 426, 426, 426, 426, 426,
1073
- 426, 426, 426, 426, 426, 426, 426, 426, 426, 426,
1074
- 426, 428, 428, 428, 428, 428, 428, 428, 428, 428,
1075
- 428, 428, 428, 428, 428, 428, 428, 0, 0, 428,
1076
- 428, 428, 430, 430, 430, 430, 430, 430, 430, 430,
1077
- 430, 430, 430, 430, 430, 430, 430, 430, 0, 0,
1078
- 430, 430, 430, 431, 431, 431, 431, 431, 431, 431,
1079
-
1080
- 431, 431, 431, 431, 431, 431, 431, 431, 431, 0,
1081
- 0, 431, 431, 431, 432, 432, 432, 432, 432, 432,
1082
- 432, 432, 432, 432, 432, 432, 432, 432, 432, 432,
1083
- 0, 0, 432, 432, 432, 433, 433, 433, 433, 433,
1084
- 433, 433, 433, 433, 433, 433, 433, 433, 433, 433,
1085
- 433, 0, 0, 433, 433, 433, 374, 374, 374, 374,
1086
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
1087
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
1088
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
1089
- 374, 374, 374, 374, 374, 374, 374, 374, 374, 374,
1090
-
1091
- 374, 374, 374, 374, 374, 374, 374
1092
- } ;
1093
-
1094
- extern int yy_flex_debug;
1095
- int yy_flex_debug = 0;
1096
-
1097
- static yy_state_type *yy_state_buf=0, *yy_state_ptr=0;
1098
- static char *yy_full_match;
1099
- static int yy_lp;
1100
- static int yy_looking_for_trail_begin = 0;
1101
- static int yy_full_lp;
1102
- static int *yy_full_state;
1103
- #define YY_TRAILING_MASK 0x2000
1104
- #define YY_TRAILING_HEAD_MASK 0x4000
1105
- #define REJECT \
1106
- { \
1107
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */ \
1108
- yy_cp = (yy_full_match); /* restore poss. backed-over text */ \
1109
- (yy_lp) = (yy_full_lp); /* restore orig. accepting pos. */ \
1110
- (yy_state_ptr) = (yy_full_state); /* restore orig. state */ \
1111
- yy_current_state = *(yy_state_ptr); /* restore curr. state */ \
1112
- ++(yy_lp); \
1113
- goto find_rule; \
1114
- }
1115
-
1116
- #define yymore() yymore_used_but_not_detected
1117
- #define YY_MORE_ADJ 0
1118
- #define YY_RESTORE_YY_MORE_OFFSET
1119
- char *yytext;
1120
- #line 1 "parser.l"
1121
- #line 2 "parser.l"
1122
- #include <stdlib.h>
1123
- #include "parser.tab.h"
1124
-
1125
- // HACK for parsing end of bold/italic text at EOF
1126
- // see http://flex.sourceforge.net/manual/How-can-I-match-text-only-at-the-end-of-a-file_003f.html#How-can-I-match-text-only-at-the-end-of-a-file_003f
1127
- int was_fake_br = 0;
1128
- int parse_links_only = 0;
1129
-
1130
- extern char* in_buf;
1131
- extern char* in_pos;
1132
- extern size_t in_buf_len;
1133
-
1134
- #undef YY_BUF_SIZE
1135
- #define YY_BUF_SIZE 1300000
1136
- #undef YY_READ_BUF_SIZE
1137
- #define YY_READ_BUF_SIZE 1200000
1138
-
1139
- #define YY_NO_UNISTD_H
1140
-
1141
-
1142
- #define MIN(a,b) ((a) < (b)) ? (a) : (b)
1143
-
1144
- #ifdef RUBY_VERSION
1145
-
1146
- #define YY_INPUT(buf,result,max_size) \
1147
- { \
1148
- size_t unread_size = in_buf_len - (in_pos - in_buf); \
1149
- if( unread_size > 0 ){ \
1150
- size_t blocksize = MIN(max_size, unread_size); \
1151
- was_fake_br = 0; \
1152
- memcpy(buf,in_pos,blocksize); \
1153
- in_pos += blocksize; \
1154
- result = blocksize; \
1155
- } else if ( !was_fake_br ){ \
1156
- memcpy(buf,"\n\xff",2); result = 2; was_fake_br = 1; \
1157
- } else { \
1158
- result = 0; \
1159
- } \
1160
- }
1161
-
1162
- #else
1163
-
1164
- #define YY_INPUT(buf,result,max_size) \
1165
- if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1166
- { \
1167
- int c = '*'; \
1168
- int n; \
1169
- for ( n = 0; n < max_size && \
1170
- (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1171
- buf[n] = (char) c; \
1172
- if ( c == '\n' ) \
1173
- buf[n++] = (char) c; \
1174
- if ( c == EOF && ferror( yyin ) ) \
1175
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
1176
- result = n; \
1177
- } \
1178
- else \
1179
- { \
1180
- errno=0; \
1181
- while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
1182
- { \
1183
- if( errno != EINTR) \
1184
- { \
1185
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
1186
- break; \
1187
- } \
1188
- errno=0; \
1189
- clearerr(yyin); \
1190
- } \
1191
- }\
1192
- if( result == 0 && errno == 0 && was_fake_br == 0 ){\
1193
- strcpy(buf,"\n\xff"); result = 2; was_fake_br = 1; \
1194
- }
1195
-
1196
- #endif // ifdef RUBY_VERSION
1197
-
1198
-
1199
-
1200
- #line 1201 "lex.yy.c"
1201
-
1202
- #define INITIAL 0
1203
- #define _PRE_CODE 1
1204
- #define _PRE 2
1205
- #define _CODE 3
1206
- #define _NOTEXTILE 4
1207
- #define _LINKS_ONLY 5
1208
- #define _BOLD 6
1209
- #define _ITALIC 7
1210
-
1211
- #ifndef YY_NO_UNISTD_H
1212
- /* Special case for "unistd.h", since it is non-ANSI. We include it way
1213
- * down here because we want the user's section 1 to have been scanned first.
1214
- * The user has a chance to override it with an option.
1215
- */
1216
- #include <unistd.h>
1217
- #endif
1218
-
1219
- #ifndef YY_EXTRA_TYPE
1220
- #define YY_EXTRA_TYPE void *
1221
- #endif
1222
-
1223
- static int yy_init_globals (void );
1224
-
1225
- /* Accessor methods to globals.
1226
- These are made visible to non-reentrant scanners for convenience. */
1227
-
1228
- int yylex_destroy (void );
1229
-
1230
- int yyget_debug (void );
1231
-
1232
- void yyset_debug (int debug_flag );
1233
-
1234
- YY_EXTRA_TYPE yyget_extra (void );
1235
-
1236
- void yyset_extra (YY_EXTRA_TYPE user_defined );
1237
-
1238
- FILE *yyget_in (void );
1239
-
1240
- void yyset_in (FILE * in_str );
1241
-
1242
- FILE *yyget_out (void );
1243
-
1244
- void yyset_out (FILE * out_str );
1245
-
1246
- int yyget_leng (void );
1247
-
1248
- char *yyget_text (void );
1249
-
1250
- int yyget_lineno (void );
1251
-
1252
- void yyset_lineno (int line_number );
1253
-
1254
- /* Macros after this point can all be overridden by user definitions in
1255
- * section 1.
1256
- */
1257
-
1258
- #ifndef YY_SKIP_YYWRAP
1259
- #ifdef __cplusplus
1260
- extern "C" int yywrap (void );
1261
- #else
1262
- extern int yywrap (void );
1263
- #endif
1264
- #endif
1265
-
1266
- static void yyunput (int c,char *buf_ptr );
1267
-
1268
- #ifndef yytext_ptr
1269
- static void yy_flex_strncpy (char *,yyconst char *,int );
1270
- #endif
1271
-
1272
- #ifdef YY_NEED_STRLEN
1273
- static int yy_flex_strlen (yyconst char * );
1274
- #endif
1275
-
1276
- #ifndef YY_NO_INPUT
1277
-
1278
- #ifdef __cplusplus
1279
- static int yyinput (void );
1280
- #else
1281
- static int input (void );
1282
- #endif
1283
-
1284
- #endif
1285
-
1286
- static int yy_start_stack_ptr = 0;
1287
- static int yy_start_stack_depth = 0;
1288
- static int *yy_start_stack = NULL;
1289
-
1290
- static void yy_push_state (int new_state );
1291
-
1292
- static void yy_pop_state (void );
1293
-
1294
- static int yy_top_state (void );
1295
-
1296
- /* Amount of stuff to slurp up with each read. */
1297
- #ifndef YY_READ_BUF_SIZE
1298
- #ifdef __ia64__
1299
- /* On IA-64, the buffer size is 16k, not 8k */
1300
- #define YY_READ_BUF_SIZE 16384
1301
- #else
1302
- #define YY_READ_BUF_SIZE 8192
1303
- #endif /* __ia64__ */
1304
- #endif
1305
-
1306
- /* Copy whatever the last rule matched to the standard output. */
1307
- #ifndef ECHO
1308
- /* This used to be an fputs(), but since the string might contain NUL's,
1309
- * we now use fwrite().
1310
- */
1311
- #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
1312
- #endif
1313
-
1314
- /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
1315
- * is returned in "result".
1316
- */
1317
- #ifndef YY_INPUT
1318
- #define YY_INPUT(buf,result,max_size) \
1319
- if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
1320
- { \
1321
- int c = '*'; \
1322
- size_t n; \
1323
- for ( n = 0; n < max_size && \
1324
- (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1325
- buf[n] = (char) c; \
1326
- if ( c == '\n' ) \
1327
- buf[n++] = (char) c; \
1328
- if ( c == EOF && ferror( yyin ) ) \
1329
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
1330
- result = n; \
1331
- } \
1332
- else \
1333
- { \
1334
- errno=0; \
1335
- while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
1336
- { \
1337
- if( errno != EINTR) \
1338
- { \
1339
- YY_FATAL_ERROR( "input in flex scanner failed" ); \
1340
- break; \
1341
- } \
1342
- errno=0; \
1343
- clearerr(yyin); \
1344
- } \
1345
- }\
1346
- \
1347
-
1348
- #endif
1349
-
1350
- /* No semi-colon after return; correct usage is to write "yyterminate();" -
1351
- * we don't want an extra ';' after the "return" because that will cause
1352
- * some compilers to complain about unreachable statements.
1353
- */
1354
- #ifndef yyterminate
1355
- #define yyterminate() return YY_NULL
1356
- #endif
1357
-
1358
- /* Number of entries by which start-condition stack grows. */
1359
- #ifndef YY_START_STACK_INCR
1360
- #define YY_START_STACK_INCR 25
1361
- #endif
1362
-
1363
- /* Report a fatal error. */
1364
- #ifndef YY_FATAL_ERROR
1365
- #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
1366
- #endif
1367
-
1368
- /* end tables serialization structures and prototypes */
1369
-
1370
- /* Default declaration of generated scanner - a define so the user can
1371
- * easily add parameters.
1372
- */
1373
- #ifndef YY_DECL
1374
- #define YY_DECL_IS_OURS 1
1375
-
1376
- extern int yylex (void);
1377
-
1378
- #define YY_DECL int yylex (void)
1379
- #endif /* !YY_DECL */
1380
-
1381
- /* Code executed at the beginning of each rule, after yytext and yyleng
1382
- * have been set up.
1383
- */
1384
- #ifndef YY_USER_ACTION
1385
- #define YY_USER_ACTION
1386
- #endif
1387
-
1388
- /* Code executed at the end of each rule. */
1389
- #ifndef YY_BREAK
1390
- #define YY_BREAK break;
1391
- #endif
1392
-
1393
- #define YY_RULE_SETUP \
1394
- if ( yyleng > 0 ) \
1395
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \
1396
- (yytext[yyleng - 1] == '\n'); \
1397
- YY_USER_ACTION
1398
-
1399
- /** The main scanner function which does all the work.
1400
- */
1401
- YY_DECL
1402
- {
1403
- register yy_state_type yy_current_state;
1404
- register char *yy_cp, *yy_bp;
1405
- register int yy_act;
1406
-
1407
- #line 86 "parser.l"
1408
-
1409
- if( parse_links_only ) BEGIN(_LINKS_ONLY);
1410
-
1411
- #line 1412 "lex.yy.c"
1412
-
1413
- if ( !(yy_init) )
1414
- {
1415
- (yy_init) = 1;
1416
-
1417
- #ifdef YY_USER_INIT
1418
- YY_USER_INIT;
1419
- #endif
1420
-
1421
- /* Create the reject buffer large enough to save one state per allowed character. */
1422
- if ( ! (yy_state_buf) )
1423
- (yy_state_buf) = (yy_state_type *)yyalloc(YY_STATE_BUF_SIZE );
1424
- if ( ! (yy_state_buf) )
1425
- YY_FATAL_ERROR( "out of dynamic memory in yylex()" );
1426
-
1427
- if ( ! (yy_start) )
1428
- (yy_start) = 1; /* first start state */
1429
-
1430
- if ( ! yyin )
1431
- yyin = stdin;
1432
-
1433
- if ( ! yyout )
1434
- yyout = stdout;
1435
-
1436
- if ( ! YY_CURRENT_BUFFER ) {
1437
- yyensure_buffer_stack ();
1438
- YY_CURRENT_BUFFER_LVALUE =
1439
- yy_create_buffer(yyin,YY_BUF_SIZE );
1440
- }
1441
-
1442
- yy_load_buffer_state( );
1443
- }
1444
-
1445
- while ( 1 ) /* loops until end-of-file is reached */
1446
- {
1447
- yy_cp = (yy_c_buf_p);
1448
-
1449
- /* Support of yytext. */
1450
- *yy_cp = (yy_hold_char);
1451
-
1452
- /* yy_bp points to the position in yy_ch_buf of the start of
1453
- * the current run.
1454
- */
1455
- yy_bp = yy_cp;
1456
-
1457
- yy_current_state = (yy_start);
1458
- yy_current_state += YY_AT_BOL();
1459
-
1460
- (yy_state_ptr) = (yy_state_buf);
1461
- *(yy_state_ptr)++ = yy_current_state;
1462
-
1463
- yy_match:
1464
- do
1465
- {
1466
- register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1467
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1468
- {
1469
- yy_current_state = (int) yy_def[yy_current_state];
1470
- if ( yy_current_state >= 375 )
1471
- yy_c = yy_meta[(unsigned int) yy_c];
1472
- }
1473
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1474
- *(yy_state_ptr)++ = yy_current_state;
1475
- ++yy_cp;
1476
- }
1477
- while ( yy_base[yy_current_state] != 2157 );
1478
-
1479
- yy_find_action:
1480
- yy_current_state = *--(yy_state_ptr);
1481
- (yy_lp) = yy_accept[yy_current_state];
1482
- find_rule: /* we branch to this label when backing up */
1483
- for ( ; ; ) /* until we find what rule we matched */
1484
- {
1485
- if ( (yy_lp) && (yy_lp) < yy_accept[yy_current_state + 1] )
1486
- {
1487
- yy_act = yy_acclist[(yy_lp)];
1488
- if ( yy_act & YY_TRAILING_HEAD_MASK ||
1489
- (yy_looking_for_trail_begin) )
1490
- {
1491
- if ( yy_act == (yy_looking_for_trail_begin) )
1492
- {
1493
- (yy_looking_for_trail_begin) = 0;
1494
- yy_act &= ~YY_TRAILING_HEAD_MASK;
1495
- break;
1496
- }
1497
- }
1498
- else if ( yy_act & YY_TRAILING_MASK )
1499
- {
1500
- (yy_looking_for_trail_begin) = yy_act & ~YY_TRAILING_MASK;
1501
- (yy_looking_for_trail_begin) |= YY_TRAILING_HEAD_MASK;
1502
- }
1503
- else
1504
- {
1505
- (yy_full_match) = yy_cp;
1506
- (yy_full_state) = (yy_state_ptr);
1507
- (yy_full_lp) = (yy_lp);
1508
- break;
1509
- }
1510
- ++(yy_lp);
1511
- goto find_rule;
1512
- }
1513
- --yy_cp;
1514
- yy_current_state = *--(yy_state_ptr);
1515
- (yy_lp) = yy_accept[yy_current_state];
1516
- }
1517
-
1518
- YY_DO_BEFORE_ACTION;
1519
-
1520
- do_action: /* This label is used only to access EOF actions. */
1521
-
1522
- switch ( yy_act )
1523
- { /* beginning of action switch */
1524
-
1525
- case 1:
1526
- YY_RULE_SETUP
1527
- #line 90 "parser.l"
1528
- ; /* EOF mark. should not appear in valid UTF8 text */
1529
- YY_BREAK
1530
- case 2:
1531
- /* rule 2 can match eol */
1532
- YY_RULE_SETUP
1533
- #line 91 "parser.l"
1534
- ; /* EOF + skip tailing whitespace */
1535
- YY_BREAK
1536
- case 3:
1537
- /* rule 3 can match eol */
1538
- YY_RULE_SETUP
1539
- #line 92 "parser.l"
1540
- { return BR; }
1541
- YY_BREAK
1542
-
1543
- case 4:
1544
- /* rule 4 can match eol */
1545
- YY_RULE_SETUP
1546
- #line 95 "parser.l"
1547
- { yy_push_state(_PRE_CODE); return PRE_CODE_START; }
1548
- YY_BREAK
1549
- case 5:
1550
- /* rule 5 can match eol */
1551
- YY_RULE_SETUP
1552
- #line 96 "parser.l"
1553
- { yy_push_state(_PRE); return PRE_START; }
1554
- YY_BREAK
1555
- case 6:
1556
- /* rule 6 can match eol */
1557
- YY_RULE_SETUP
1558
- #line 97 "parser.l"
1559
- { yy_push_state(_NOTEXTILE); return NOTEXTILE_START; }
1560
- YY_BREAK
1561
- case 7:
1562
- /* rule 7 can match eol */
1563
- YY_RULE_SETUP
1564
- #line 98 "parser.l"
1565
- { yy_push_state(_CODE); return CODE_START; }
1566
- YY_BREAK
1567
- case 8:
1568
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1569
- (yy_c_buf_p) = yy_cp = yy_bp + 1;
1570
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1571
- YY_RULE_SETUP
1572
- #line 100 "parser.l"
1573
- { yylval.ivalue=0; yy_push_state(_BOLD); return BOLD_START; }
1574
- YY_BREAK
1575
- case 9:
1576
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1577
- (yy_c_buf_p) = yy_cp -= 1;
1578
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1579
- YY_RULE_SETUP
1580
- #line 101 "parser.l"
1581
- { yylval.ivalue=1; yy_push_state(_BOLD); return BOLD_START; }
1582
- YY_BREAK
1583
- case 10:
1584
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1585
- (yy_c_buf_p) = yy_cp = yy_bp + 1;
1586
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1587
- YY_RULE_SETUP
1588
- #line 103 "parser.l"
1589
- { yylval.ivalue=0; yy_push_state(_ITALIC); return ITALIC_START; }
1590
- YY_BREAK
1591
- case 11:
1592
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1593
- (yy_c_buf_p) = yy_cp -= 1;
1594
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1595
- YY_RULE_SETUP
1596
- #line 104 "parser.l"
1597
- { yylval.ivalue=1; yy_push_state(_ITALIC); return ITALIC_START; }
1598
- YY_BREAK
1599
- case 12:
1600
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1601
- (yy_c_buf_p) = yy_cp = yy_bp + 2;
1602
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1603
- YY_RULE_SETUP
1604
- #line 106 "parser.l"
1605
- { yylval.ivalue=0; yy_push_state(_BOLD); yy_push_state(_ITALIC); return BOLD_ITALIC_START; }
1606
- YY_BREAK
1607
- case 13:
1608
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1609
- (yy_c_buf_p) = yy_cp -= 1;
1610
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1611
- YY_RULE_SETUP
1612
- #line 107 "parser.l"
1613
- { yylval.ivalue=1; yy_push_state(_BOLD); yy_push_state(_ITALIC); return BOLD_ITALIC_START; }
1614
- YY_BREAK
1615
- case 14:
1616
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1617
- (yy_c_buf_p) = yy_cp = yy_bp + 2;
1618
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1619
- YY_RULE_SETUP
1620
- #line 109 "parser.l"
1621
- { yylval.ivalue=0; yy_push_state(_ITALIC); yy_push_state(_BOLD); return ITALIC_BOLD_START; }
1622
- YY_BREAK
1623
- case 15:
1624
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1625
- (yy_c_buf_p) = yy_cp -= 1;
1626
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1627
- YY_RULE_SETUP
1628
- #line 110 "parser.l"
1629
- { yylval.ivalue=1; yy_push_state(_ITALIC); yy_push_state(_BOLD); return ITALIC_BOLD_START; }
1630
- YY_BREAK
1631
- case 16:
1632
- /* rule 16 can match eol */
1633
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1634
- (yy_c_buf_p) = yy_cp -= 1;
1635
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1636
- YY_RULE_SETUP
1637
- #line 112 "parser.l"
1638
- { yylval.svalue = yytext; return INLINE_CODE; }
1639
- YY_BREAK
1640
- case 17:
1641
- /* rule 17 can match eol */
1642
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1643
- (yy_c_buf_p) = yy_cp -= 1;
1644
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1645
- YY_RULE_SETUP
1646
- #line 113 "parser.l"
1647
- { yylval.svalue = yytext; return INLINE_CODE; }
1648
- YY_BREAK
1649
- case 18:
1650
- /* rule 18 can match eol */
1651
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1652
- (yy_c_buf_p) = yy_cp -= 1;
1653
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1654
- YY_RULE_SETUP
1655
- #line 115 "parser.l"
1656
- {
1657
- yylval.svalue = yytext+4;
1658
- switch(yytext[1]){
1659
- case '1': return H1;
1660
- case '2': return H2;
1661
- case '3': return H3;
1662
- case '4': return H4;
1663
- case '5': return H5;
1664
- }
1665
- return H1;
1666
- }
1667
- YY_BREAK
1668
- case 19:
1669
- YY_RULE_SETUP
1670
- #line 127 "parser.l"
1671
- { yylval.ivalue=3; return ULI; }
1672
- YY_BREAK
1673
- case 20:
1674
- YY_RULE_SETUP
1675
- #line 128 "parser.l"
1676
- { yylval.ivalue=2; return ULI; }
1677
- YY_BREAK
1678
- case 21:
1679
- YY_RULE_SETUP
1680
- #line 129 "parser.l"
1681
- { yylval.ivalue=1; return ULI; }
1682
- YY_BREAK
1683
- case 22:
1684
- YY_RULE_SETUP
1685
- #line 131 "parser.l"
1686
- { yylval.ivalue=3; return OLI; }
1687
- YY_BREAK
1688
- case 23:
1689
- YY_RULE_SETUP
1690
- #line 132 "parser.l"
1691
- { yylval.ivalue=2; return OLI; }
1692
- YY_BREAK
1693
- case 24:
1694
- YY_RULE_SETUP
1695
- #line 133 "parser.l"
1696
- { yylval.ivalue=1; return OLI; }
1697
- YY_BREAK
1698
-
1699
- case 25:
1700
- YY_RULE_SETUP
1701
- #line 137 "parser.l"
1702
- { yylval.svalue = yytext; return URL; }
1703
- YY_BREAK
1704
- case 26:
1705
- YY_RULE_SETUP
1706
- #line 139 "parser.l"
1707
- { yylval.svalue = yytext; return EMAIL; }
1708
- YY_BREAK
1709
- case 27:
1710
- /* rule 27 can match eol */
1711
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1712
- (yy_c_buf_p) = yy_cp -= 1;
1713
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1714
- YY_RULE_SETUP
1715
- #line 141 "parser.l"
1716
- { yylval.svalue = yytext; return TICKET_LINK; }
1717
- YY_BREAK
1718
- case 28:
1719
- /* rule 28 can match eol */
1720
- YY_RULE_SETUP
1721
- #line 142 "parser.l"
1722
- { yylval.svalue = yytext; return TICKET_LINK; }
1723
- YY_BREAK
1724
- case 29:
1725
- /* rule 29 can match eol */
1726
- YY_RULE_SETUP
1727
- #line 143 "parser.l"
1728
- { yylval.svalue = yytext; return TICKET_LINK; }
1729
- YY_BREAK
1730
- case 30:
1731
- /* rule 30 can match eol */
1732
- YY_RULE_SETUP
1733
- #line 145 "parser.l"
1734
- { yylval.svalue = yytext+11; return SVN_REVISION_LINK; }
1735
- YY_BREAK
1736
- case 31:
1737
- /* rule 31 can match eol */
1738
- YY_RULE_SETUP
1739
- #line 146 "parser.l"
1740
- { yylval.svalue = yytext+11; return GIT_REVISION_LINK; }
1741
- YY_BREAK
1742
- case 32:
1743
- /* rule 32 can match eol */
1744
- YY_RULE_SETUP
1745
- #line 147 "parser.l"
1746
- { yylval.svalue = yytext+4; return SVN_REVISION_LINK; }
1747
- YY_BREAK
1748
- case 33:
1749
- /* rule 33 can match eol */
1750
- YY_RULE_SETUP
1751
- #line 148 "parser.l"
1752
- { yylval.svalue = yytext+4; return GIT_REVISION_LINK; }
1753
- YY_BREAK
1754
- case 34:
1755
- /* rule 34 can match eol */
1756
- YY_RULE_SETUP
1757
- #line 150 "parser.l"
1758
- { yylval.svalue = yytext+11; return SVN_N_REVISION_LINK; }
1759
- YY_BREAK
1760
- case 35:
1761
- /* rule 35 can match eol */
1762
- YY_RULE_SETUP
1763
- #line 151 "parser.l"
1764
- { yylval.svalue = yytext+11; return GIT_N_REVISION_LINK; }
1765
- YY_BREAK
1766
- case 36:
1767
- /* rule 36 can match eol */
1768
- YY_RULE_SETUP
1769
- #line 152 "parser.l"
1770
- { yylval.svalue = yytext+4; return SVN_N_REVISION_LINK; }
1771
- YY_BREAK
1772
- case 37:
1773
- /* rule 37 can match eol */
1774
- YY_RULE_SETUP
1775
- #line 153 "parser.l"
1776
- { yylval.svalue = yytext+4; return GIT_N_REVISION_LINK; }
1777
- YY_BREAK
1778
- case 38:
1779
- /* rule 38 can match eol */
1780
- YY_RULE_SETUP
1781
- #line 155 "parser.l"
1782
- { yylval.svalue = yytext+6; return URL_WITH_PROTO_LINK; }
1783
- YY_BREAK
1784
- case 39:
1785
- /* rule 39 can match eol */
1786
- YY_RULE_SETUP
1787
- #line 156 "parser.l"
1788
- { yylval.svalue = yytext+6; return URL_WITH_PROTO_LINK; }
1789
- YY_BREAK
1790
- case 40:
1791
- /* rule 40 can match eol */
1792
- YY_RULE_SETUP
1793
- #line 157 "parser.l"
1794
- { yylval.svalue = yytext+6; return URL_WITHOUT_PROTO_LINK; }
1795
- YY_BREAK
1796
- case 41:
1797
- /* rule 41 can match eol */
1798
- YY_RULE_SETUP
1799
- #line 159 "parser.l"
1800
- { yylval.svalue = yytext+7; return WIKI_LINK; }
1801
- YY_BREAK
1802
- case 42:
1803
- /* rule 42 can match eol */
1804
- YY_RULE_SETUP
1805
- #line 160 "parser.l"
1806
- { yylval.svalue = yytext+2; return WIKI_LINK; }
1807
- YY_BREAK
1808
- case 43:
1809
- YY_RULE_SETUP
1810
- #line 162 "parser.l"
1811
- { yylval.svalue = yytext+3; return ANCHOR_LINK; }
1812
- YY_BREAK
1813
- case 44:
1814
- /* rule 44 can match eol */
1815
- YY_RULE_SETUP
1816
- #line 164 "parser.l"
1817
- { yylval.svalue = yytext+7; return FILE_LINK; }
1818
- YY_BREAK
1819
- case 45:
1820
- /* rule 45 can match eol */
1821
- YY_RULE_SETUP
1822
- #line 165 "parser.l"
1823
- { yylval.svalue = yytext+8; return IMAGE_LINK; }
1824
- YY_BREAK
1825
- case 46:
1826
- YY_RULE_SETUP
1827
- #line 167 "parser.l"
1828
- ; /* skip spaces at line start */
1829
- YY_BREAK
1830
- case 47:
1831
- YY_RULE_SETUP
1832
- #line 168 "parser.l"
1833
- { yylval.ivalue = ' '; return T_CHAR; }
1834
- YY_BREAK
1835
- case 48:
1836
- YY_RULE_SETUP
1837
- #line 170 "parser.l"
1838
- { yylval.svalue = yytext; return T_WORD; }
1839
- YY_BREAK
1840
- case 49:
1841
- YY_RULE_SETUP
1842
- #line 172 "parser.l"
1843
- { yylval.ivalue = yytext[0]; return T_CHAR; }
1844
- YY_BREAK
1845
-
1846
- case 50:
1847
- /* rule 50 can match eol */
1848
- YY_RULE_SETUP
1849
- #line 175 "parser.l"
1850
- { yy_pop_state(); return NOTEXTILE_END; }
1851
- YY_BREAK
1852
- case 51:
1853
- /* rule 51 can match eol */
1854
- YY_RULE_SETUP
1855
- #line 176 "parser.l"
1856
- { yy_pop_state(); return NOTEXTILE_END; }
1857
- YY_BREAK
1858
- case 52:
1859
- YY_RULE_SETUP
1860
- #line 177 "parser.l"
1861
- { yylval.ivalue = yytext[0]; return T_CHAR; }
1862
- YY_BREAK
1863
- case YY_STATE_EOF(_NOTEXTILE):
1864
- #line 178 "parser.l"
1865
- { yy_pop_state(); return NOTEXTILE_END; }
1866
- YY_BREAK
1867
- case 53:
1868
- /* rule 53 can match eol */
1869
- YY_RULE_SETUP
1870
- #line 180 "parser.l"
1871
- { yy_pop_state(); return PRE_CODE_END; }
1872
- YY_BREAK
1873
- case 54:
1874
- /* rule 54 can match eol */
1875
- YY_RULE_SETUP
1876
- #line 181 "parser.l"
1877
- { yy_pop_state(); return PRE_CODE_END; }
1878
- YY_BREAK
1879
- case 55:
1880
- YY_RULE_SETUP
1881
- #line 182 "parser.l"
1882
- { yylval.ivalue = yytext[0]; return T_CHAR; }
1883
- YY_BREAK
1884
- case YY_STATE_EOF(_PRE_CODE):
1885
- #line 183 "parser.l"
1886
- { yy_pop_state(); return PRE_CODE_END; }
1887
- YY_BREAK
1888
- case 56:
1889
- /* rule 56 can match eol */
1890
- YY_RULE_SETUP
1891
- #line 185 "parser.l"
1892
- { yy_pop_state(); return PRE_END; }
1893
- YY_BREAK
1894
- case 57:
1895
- /* rule 57 can match eol */
1896
- YY_RULE_SETUP
1897
- #line 186 "parser.l"
1898
- { yy_pop_state(); return PRE_END; }
1899
- YY_BREAK
1900
- case 58:
1901
- YY_RULE_SETUP
1902
- #line 187 "parser.l"
1903
- { yylval.ivalue = yytext[0]; return T_CHAR; }
1904
- YY_BREAK
1905
- case YY_STATE_EOF(_PRE):
1906
- #line 188 "parser.l"
1907
- { yy_pop_state(); return PRE_END; }
1908
- YY_BREAK
1909
- case 59:
1910
- /* rule 59 can match eol */
1911
- YY_RULE_SETUP
1912
- #line 190 "parser.l"
1913
- { yy_pop_state(); return CODE_END; }
1914
- YY_BREAK
1915
- case 60:
1916
- /* rule 60 can match eol */
1917
- YY_RULE_SETUP
1918
- #line 191 "parser.l"
1919
- { yy_pop_state(); return CODE_END; }
1920
- YY_BREAK
1921
- case 61:
1922
- YY_RULE_SETUP
1923
- #line 192 "parser.l"
1924
- { yylval.ivalue = yytext[0]; return T_CHAR; }
1925
- YY_BREAK
1926
- case YY_STATE_EOF(_CODE):
1927
- #line 193 "parser.l"
1928
- { yy_pop_state(); return CODE_END; }
1929
- YY_BREAK
1930
- case 62:
1931
- YY_RULE_SETUP
1932
- #line 195 "parser.l"
1933
- { yylval.svalue = " *"; return T_WORD; } /* skip lone star */
1934
- YY_BREAK
1935
- case 63:
1936
- /* rule 63 can match eol */
1937
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1938
- (yy_c_buf_p) = yy_cp = yy_bp + 1;
1939
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1940
- YY_RULE_SETUP
1941
- #line 196 "parser.l"
1942
- { yy_pop_state(); return BOLD_END; }
1943
- YY_BREAK
1944
- case YY_STATE_EOF(_BOLD):
1945
- #line 197 "parser.l"
1946
- { yy_pop_state(); return REVERT_BOLD; }
1947
- YY_BREAK
1948
- case 64:
1949
- YY_RULE_SETUP
1950
- #line 199 "parser.l"
1951
- { yylval.svalue = " _"; return T_WORD; } /* skip lone underscore */
1952
- YY_BREAK
1953
- case 65:
1954
- /* rule 65 can match eol */
1955
- *yy_cp = (yy_hold_char); /* undo effects of setting up yytext */
1956
- (yy_c_buf_p) = yy_cp = yy_bp + 1;
1957
- YY_DO_BEFORE_ACTION; /* set up yytext again */
1958
- YY_RULE_SETUP
1959
- #line 200 "parser.l"
1960
- { yy_pop_state(); return ITALIC_END; }
1961
- YY_BREAK
1962
- case YY_STATE_EOF(_ITALIC):
1963
- #line 201 "parser.l"
1964
- { yy_pop_state(); return REVERT_ITALIC; }
1965
- YY_BREAK
1966
- case 66:
1967
- YY_RULE_SETUP
1968
- #line 203 "parser.l"
1969
- ECHO;
1970
- YY_BREAK
1971
- #line 1972 "lex.yy.c"
1972
- case YY_STATE_EOF(INITIAL):
1973
- case YY_STATE_EOF(_LINKS_ONLY):
1974
- yyterminate();
1975
-
1976
- case YY_END_OF_BUFFER:
1977
- {
1978
- /* Amount of text matched not including the EOB char. */
1979
- int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1980
-
1981
- /* Undo the effects of YY_DO_BEFORE_ACTION. */
1982
- *yy_cp = (yy_hold_char);
1983
- YY_RESTORE_YY_MORE_OFFSET
1984
-
1985
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1986
- {
1987
- /* We're scanning a new file or input source. It's
1988
- * possible that this happened because the user
1989
- * just pointed yyin at a new source and called
1990
- * yylex(). If so, then we have to assure
1991
- * consistency between YY_CURRENT_BUFFER and our
1992
- * globals. Here is the right place to do so, because
1993
- * this is the first action (other than possibly a
1994
- * back-up) that will match for the new input source.
1995
- */
1996
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1997
- YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1998
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1999
- }
2000
-
2001
- /* Note that here we test for yy_c_buf_p "<=" to the position
2002
- * of the first EOB in the buffer, since yy_c_buf_p will
2003
- * already have been incremented past the NUL character
2004
- * (since all states make transitions on EOB to the
2005
- * end-of-buffer state). Contrast this with the test
2006
- * in input().
2007
- */
2008
- if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2009
- { /* This was really a NUL. */
2010
- yy_state_type yy_next_state;
2011
-
2012
- (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
2013
-
2014
- yy_current_state = yy_get_previous_state( );
2015
-
2016
- /* Okay, we're now positioned to make the NUL
2017
- * transition. We couldn't have
2018
- * yy_get_previous_state() go ahead and do it
2019
- * for us because it doesn't know how to deal
2020
- * with the possibility of jamming (and we don't
2021
- * want to build jamming into it because then it
2022
- * will run more slowly).
2023
- */
2024
-
2025
- yy_next_state = yy_try_NUL_trans( yy_current_state );
2026
-
2027
- yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2028
-
2029
- if ( yy_next_state )
2030
- {
2031
- /* Consume the NUL. */
2032
- yy_cp = ++(yy_c_buf_p);
2033
- yy_current_state = yy_next_state;
2034
- goto yy_match;
2035
- }
2036
-
2037
- else
2038
- {
2039
- yy_cp = (yy_c_buf_p);
2040
- goto yy_find_action;
2041
- }
2042
- }
2043
-
2044
- else switch ( yy_get_next_buffer( ) )
2045
- {
2046
- case EOB_ACT_END_OF_FILE:
2047
- {
2048
- (yy_did_buffer_switch_on_eof) = 0;
2049
-
2050
- if ( yywrap( ) )
2051
- {
2052
- /* Note: because we've taken care in
2053
- * yy_get_next_buffer() to have set up
2054
- * yytext, we can now set up
2055
- * yy_c_buf_p so that if some total
2056
- * hoser (like flex itself) wants to
2057
- * call the scanner after we return the
2058
- * YY_NULL, it'll still work - another
2059
- * YY_NULL will get returned.
2060
- */
2061
- (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
2062
-
2063
- yy_act = YY_STATE_EOF(YY_START);
2064
- goto do_action;
2065
- }
2066
-
2067
- else
2068
- {
2069
- if ( ! (yy_did_buffer_switch_on_eof) )
2070
- YY_NEW_FILE;
2071
- }
2072
- break;
2073
- }
2074
-
2075
- case EOB_ACT_CONTINUE_SCAN:
2076
- (yy_c_buf_p) =
2077
- (yytext_ptr) + yy_amount_of_matched_text;
2078
-
2079
- yy_current_state = yy_get_previous_state( );
2080
-
2081
- yy_cp = (yy_c_buf_p);
2082
- yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2083
- goto yy_match;
2084
-
2085
- case EOB_ACT_LAST_MATCH:
2086
- (yy_c_buf_p) =
2087
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
2088
-
2089
- yy_current_state = yy_get_previous_state( );
2090
-
2091
- yy_cp = (yy_c_buf_p);
2092
- yy_bp = (yytext_ptr) + YY_MORE_ADJ;
2093
- goto yy_find_action;
2094
- }
2095
- break;
2096
- }
2097
-
2098
- default:
2099
- YY_FATAL_ERROR(
2100
- "fatal flex scanner internal error--no action found" );
2101
- } /* end of action switch */
2102
- } /* end of scanning one token */
2103
- } /* end of yylex */
2104
-
2105
- /* yy_get_next_buffer - try to read in a new buffer
2106
- *
2107
- * Returns a code representing an action:
2108
- * EOB_ACT_LAST_MATCH -
2109
- * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
2110
- * EOB_ACT_END_OF_FILE - end of file
2111
- */
2112
- static int yy_get_next_buffer (void)
2113
- {
2114
- register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
2115
- register char *source = (yytext_ptr);
2116
- register int number_to_move, i;
2117
- int ret_val;
2118
-
2119
- if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
2120
- YY_FATAL_ERROR(
2121
- "fatal flex scanner internal error--end of buffer missed" );
2122
-
2123
- if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
2124
- { /* Don't try to fill the buffer, so this is an EOF. */
2125
- if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
2126
- {
2127
- /* We matched a single character, the EOB, so
2128
- * treat this as a final EOF.
2129
- */
2130
- return EOB_ACT_END_OF_FILE;
2131
- }
2132
-
2133
- else
2134
- {
2135
- /* We matched some text prior to the EOB, first
2136
- * process it.
2137
- */
2138
- return EOB_ACT_LAST_MATCH;
2139
- }
2140
- }
2141
-
2142
- /* Try to read more data. */
2143
-
2144
- /* First move last chars to start of buffer. */
2145
- number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
2146
-
2147
- for ( i = 0; i < number_to_move; ++i )
2148
- *(dest++) = *(source++);
2149
-
2150
- if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2151
- /* don't do the read, it's not guaranteed to return an EOF,
2152
- * just force an EOF
2153
- */
2154
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
2155
-
2156
- else
2157
- {
2158
- int num_to_read =
2159
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
2160
-
2161
- while ( num_to_read <= 0 )
2162
- { /* Not enough room in the buffer - grow it. */
2163
-
2164
- YY_FATAL_ERROR(
2165
- "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2166
-
2167
- }
2168
-
2169
- if ( num_to_read > YY_READ_BUF_SIZE )
2170
- num_to_read = YY_READ_BUF_SIZE;
2171
-
2172
- /* Read in more data. */
2173
- YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2174
- (yy_n_chars), (size_t) num_to_read );
2175
-
2176
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2177
- }
2178
-
2179
- if ( (yy_n_chars) == 0 )
2180
- {
2181
- if ( number_to_move == YY_MORE_ADJ )
2182
- {
2183
- ret_val = EOB_ACT_END_OF_FILE;
2184
- yyrestart(yyin );
2185
- }
2186
-
2187
- else
2188
- {
2189
- ret_val = EOB_ACT_LAST_MATCH;
2190
- YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2191
- YY_BUFFER_EOF_PENDING;
2192
- }
2193
- }
2194
-
2195
- else
2196
- ret_val = EOB_ACT_CONTINUE_SCAN;
2197
-
2198
- if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2199
- /* Extend the array by 50%, plus the number we really need. */
2200
- yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
2201
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
2202
- if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2203
- YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
2204
- }
2205
-
2206
- (yy_n_chars) += number_to_move;
2207
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
2208
- YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
2209
-
2210
- (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2211
-
2212
- return ret_val;
2213
- }
2214
-
2215
- /* yy_get_previous_state - get the state just before the EOB char was reached */
2216
-
2217
- static yy_state_type yy_get_previous_state (void)
2218
- {
2219
- register yy_state_type yy_current_state;
2220
- register char *yy_cp;
2221
-
2222
- yy_current_state = (yy_start);
2223
- yy_current_state += YY_AT_BOL();
2224
-
2225
- (yy_state_ptr) = (yy_state_buf);
2226
- *(yy_state_ptr)++ = yy_current_state;
2227
-
2228
- for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
2229
- {
2230
- register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2231
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2232
- {
2233
- yy_current_state = (int) yy_def[yy_current_state];
2234
- if ( yy_current_state >= 375 )
2235
- yy_c = yy_meta[(unsigned int) yy_c];
2236
- }
2237
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2238
- *(yy_state_ptr)++ = yy_current_state;
2239
- }
2240
-
2241
- return yy_current_state;
2242
- }
2243
-
2244
- /* yy_try_NUL_trans - try to make a transition on the NUL character
2245
- *
2246
- * synopsis
2247
- * next_state = yy_try_NUL_trans( current_state );
2248
- */
2249
- static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
2250
- {
2251
- register int yy_is_jam;
2252
-
2253
- register YY_CHAR yy_c = 1;
2254
- while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2255
- {
2256
- yy_current_state = (int) yy_def[yy_current_state];
2257
- if ( yy_current_state >= 375 )
2258
- yy_c = yy_meta[(unsigned int) yy_c];
2259
- }
2260
- yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2261
- yy_is_jam = (yy_current_state == 374);
2262
- if ( ! yy_is_jam )
2263
- *(yy_state_ptr)++ = yy_current_state;
2264
-
2265
- return yy_is_jam ? 0 : yy_current_state;
2266
- }
2267
-
2268
- static void yyunput (int c, register char * yy_bp )
2269
- {
2270
- register char *yy_cp;
2271
-
2272
- yy_cp = (yy_c_buf_p);
2273
-
2274
- /* undo effects of setting up yytext */
2275
- *yy_cp = (yy_hold_char);
2276
-
2277
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2278
- { /* need to shift things up to make room */
2279
- /* +2 for EOB chars. */
2280
- register int number_to_move = (yy_n_chars) + 2;
2281
- register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
2282
- YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
2283
- register char *source =
2284
- &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
2285
-
2286
- while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2287
- *--dest = *--source;
2288
-
2289
- yy_cp += (int) (dest - source);
2290
- yy_bp += (int) (dest - source);
2291
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
2292
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
2293
-
2294
- if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2295
- YY_FATAL_ERROR( "flex scanner push-back overflow" );
2296
- }
2297
-
2298
- *--yy_cp = (char) c;
2299
-
2300
- (yytext_ptr) = yy_bp;
2301
- (yy_hold_char) = *yy_cp;
2302
- (yy_c_buf_p) = yy_cp;
2303
- }
2304
-
2305
- #ifndef YY_NO_INPUT
2306
- #ifdef __cplusplus
2307
- static int yyinput (void)
2308
- #else
2309
- static int input (void)
2310
- #endif
2311
-
2312
- {
2313
- int c;
2314
-
2315
- *(yy_c_buf_p) = (yy_hold_char);
2316
-
2317
- if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
2318
- {
2319
- /* yy_c_buf_p now points to the character we want to return.
2320
- * If this occurs *before* the EOB characters, then it's a
2321
- * valid NUL; if not, then we've hit the end of the buffer.
2322
- */
2323
- if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2324
- /* This was really a NUL. */
2325
- *(yy_c_buf_p) = '\0';
2326
-
2327
- else
2328
- { /* need more input */
2329
- int offset = (yy_c_buf_p) - (yytext_ptr);
2330
- ++(yy_c_buf_p);
2331
-
2332
- switch ( yy_get_next_buffer( ) )
2333
- {
2334
- case EOB_ACT_LAST_MATCH:
2335
- /* This happens because yy_g_n_b()
2336
- * sees that we've accumulated a
2337
- * token and flags that we need to
2338
- * try matching the token before
2339
- * proceeding. But for input(),
2340
- * there's no matching to consider.
2341
- * So convert the EOB_ACT_LAST_MATCH
2342
- * to EOB_ACT_END_OF_FILE.
2343
- */
2344
-
2345
- /* Reset buffer status. */
2346
- yyrestart(yyin );
2347
-
2348
- /*FALLTHROUGH*/
2349
-
2350
- case EOB_ACT_END_OF_FILE:
2351
- {
2352
- if ( yywrap( ) )
2353
- return EOF;
2354
-
2355
- if ( ! (yy_did_buffer_switch_on_eof) )
2356
- YY_NEW_FILE;
2357
- #ifdef __cplusplus
2358
- return yyinput();
2359
- #else
2360
- return input();
2361
- #endif
2362
- }
2363
-
2364
- case EOB_ACT_CONTINUE_SCAN:
2365
- (yy_c_buf_p) = (yytext_ptr) + offset;
2366
- break;
2367
- }
2368
- }
2369
- }
2370
-
2371
- c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
2372
- *(yy_c_buf_p) = '\0'; /* preserve yytext */
2373
- (yy_hold_char) = *++(yy_c_buf_p);
2374
-
2375
- YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n');
2376
-
2377
- return c;
2378
- }
2379
- #endif /* ifndef YY_NO_INPUT */
2380
-
2381
- /** Immediately switch to a different input stream.
2382
- * @param input_file A readable stream.
2383
- *
2384
- * @note This function does not reset the start condition to @c INITIAL .
2385
- */
2386
- void yyrestart (FILE * input_file )
2387
- {
2388
-
2389
- if ( ! YY_CURRENT_BUFFER ){
2390
- yyensure_buffer_stack ();
2391
- YY_CURRENT_BUFFER_LVALUE =
2392
- yy_create_buffer(yyin,YY_BUF_SIZE );
2393
- }
2394
-
2395
- yy_init_buffer(YY_CURRENT_BUFFER,input_file );
2396
- yy_load_buffer_state( );
2397
- }
2398
-
2399
- /** Switch to a different input buffer.
2400
- * @param new_buffer The new input buffer.
2401
- *
2402
- */
2403
- void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer )
2404
- {
2405
-
2406
- /* TODO. We should be able to replace this entire function body
2407
- * with
2408
- * yypop_buffer_state();
2409
- * yypush_buffer_state(new_buffer);
2410
- */
2411
- yyensure_buffer_stack ();
2412
- if ( YY_CURRENT_BUFFER == new_buffer )
2413
- return;
2414
-
2415
- if ( YY_CURRENT_BUFFER )
2416
- {
2417
- /* Flush out information for old buffer. */
2418
- *(yy_c_buf_p) = (yy_hold_char);
2419
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2420
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2421
- }
2422
-
2423
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
2424
- yy_load_buffer_state( );
2425
-
2426
- /* We don't actually know whether we did this switch during
2427
- * EOF (yywrap()) processing, but the only time this flag
2428
- * is looked at is after yywrap() is called, so it's safe
2429
- * to go ahead and always set it.
2430
- */
2431
- (yy_did_buffer_switch_on_eof) = 1;
2432
- }
2433
-
2434
- static void yy_load_buffer_state (void)
2435
- {
2436
- (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2437
- (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2438
- yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2439
- (yy_hold_char) = *(yy_c_buf_p);
2440
- }
2441
-
2442
- /** Allocate and initialize an input buffer state.
2443
- * @param file A readable stream.
2444
- * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2445
- *
2446
- * @return the allocated buffer state.
2447
- */
2448
- YY_BUFFER_STATE yy_create_buffer (FILE * file, int size )
2449
- {
2450
- YY_BUFFER_STATE b;
2451
-
2452
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
2453
- if ( ! b )
2454
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2455
-
2456
- b->yy_buf_size = size;
2457
-
2458
- /* yy_ch_buf has to be 2 characters longer than the size given because
2459
- * we need to put in 2 end-of-buffer characters.
2460
- */
2461
- b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
2462
- if ( ! b->yy_ch_buf )
2463
- YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2464
-
2465
- b->yy_is_our_buffer = 1;
2466
-
2467
- yy_init_buffer(b,file );
2468
-
2469
- return b;
2470
- }
2471
-
2472
- /** Destroy the buffer.
2473
- * @param b a buffer created with yy_create_buffer()
2474
- *
2475
- */
2476
- void yy_delete_buffer (YY_BUFFER_STATE b )
2477
- {
2478
-
2479
- if ( ! b )
2480
- return;
2481
-
2482
- if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2483
- YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
2484
-
2485
- if ( b->yy_is_our_buffer )
2486
- yyfree((void *) b->yy_ch_buf );
2487
-
2488
- yyfree((void *) b );
2489
- }
2490
-
2491
- #ifndef __cplusplus
2492
- extern int isatty (int );
2493
- #endif /* __cplusplus */
2494
-
2495
- /* Initializes or reinitializes a buffer.
2496
- * This function is sometimes called more than once on the same buffer,
2497
- * such as during a yyrestart() or at EOF.
2498
- */
2499
- static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
2500
-
2501
- {
2502
- int oerrno = errno;
2503
-
2504
- yy_flush_buffer(b );
2505
-
2506
- b->yy_input_file = file;
2507
- b->yy_fill_buffer = 1;
2508
-
2509
- /* If b is the current buffer, then yy_init_buffer was _probably_
2510
- * called from yyrestart() or through yy_get_next_buffer.
2511
- * In that case, we don't want to reset the lineno or column.
2512
- */
2513
- if (b != YY_CURRENT_BUFFER){
2514
- b->yy_bs_lineno = 1;
2515
- b->yy_bs_column = 0;
2516
- }
2517
-
2518
- b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2519
-
2520
- errno = oerrno;
2521
- }
2522
-
2523
- /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2524
- * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2525
- *
2526
- */
2527
- void yy_flush_buffer (YY_BUFFER_STATE b )
2528
- {
2529
- if ( ! b )
2530
- return;
2531
-
2532
- b->yy_n_chars = 0;
2533
-
2534
- /* We always need two end-of-buffer characters. The first causes
2535
- * a transition to the end-of-buffer state. The second causes
2536
- * a jam in that state.
2537
- */
2538
- b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR;
2539
- b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
2540
-
2541
- b->yy_buf_pos = &b->yy_ch_buf[0];
2542
-
2543
- b->yy_at_bol = 1;
2544
- b->yy_buffer_status = YY_BUFFER_NEW;
2545
-
2546
- if ( b == YY_CURRENT_BUFFER )
2547
- yy_load_buffer_state( );
2548
- }
2549
-
2550
- /** Pushes the new state onto the stack. The new state becomes
2551
- * the current state. This function will allocate the stack
2552
- * if necessary.
2553
- * @param new_buffer The new state.
2554
- *
2555
- */
2556
- void yypush_buffer_state (YY_BUFFER_STATE new_buffer )
2557
- {
2558
- if (new_buffer == NULL)
2559
- return;
2560
-
2561
- yyensure_buffer_stack();
2562
-
2563
- /* This block is copied from yy_switch_to_buffer. */
2564
- if ( YY_CURRENT_BUFFER )
2565
- {
2566
- /* Flush out information for old buffer. */
2567
- *(yy_c_buf_p) = (yy_hold_char);
2568
- YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2569
- YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2570
- }
2571
-
2572
- /* Only push if top exists. Otherwise, replace top. */
2573
- if (YY_CURRENT_BUFFER)
2574
- (yy_buffer_stack_top)++;
2575
- YY_CURRENT_BUFFER_LVALUE = new_buffer;
2576
-
2577
- /* copied from yy_switch_to_buffer. */
2578
- yy_load_buffer_state( );
2579
- (yy_did_buffer_switch_on_eof) = 1;
2580
- }
2581
-
2582
- /** Removes and deletes the top of the stack, if present.
2583
- * The next element becomes the new top.
2584
- *
2585
- */
2586
- void yypop_buffer_state (void)
2587
- {
2588
- if (!YY_CURRENT_BUFFER)
2589
- return;
2590
-
2591
- yy_delete_buffer(YY_CURRENT_BUFFER );
2592
- YY_CURRENT_BUFFER_LVALUE = NULL;
2593
- if ((yy_buffer_stack_top) > 0)
2594
- --(yy_buffer_stack_top);
2595
-
2596
- if (YY_CURRENT_BUFFER) {
2597
- yy_load_buffer_state( );
2598
- (yy_did_buffer_switch_on_eof) = 1;
2599
- }
2600
- }
2601
-
2602
- /* Allocates the stack if it does not exist.
2603
- * Guarantees space for at least one push.
2604
- */
2605
- static void yyensure_buffer_stack (void)
2606
- {
2607
- int num_to_alloc;
2608
-
2609
- if (!(yy_buffer_stack)) {
2610
-
2611
- /* First allocation is just for 2 elements, since we don't know if this
2612
- * scanner will even need a stack. We use 2 instead of 1 to avoid an
2613
- * immediate realloc on the next call.
2614
- */
2615
- num_to_alloc = 1;
2616
- (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
2617
- (num_to_alloc * sizeof(struct yy_buffer_state*)
2618
- );
2619
- if ( ! (yy_buffer_stack) )
2620
- YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2621
-
2622
- memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2623
-
2624
- (yy_buffer_stack_max) = num_to_alloc;
2625
- (yy_buffer_stack_top) = 0;
2626
- return;
2627
- }
2628
-
2629
- if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2630
-
2631
- /* Increase the buffer to prepare for a possible push. */
2632
- int grow_size = 8 /* arbitrary grow size */;
2633
-
2634
- num_to_alloc = (yy_buffer_stack_max) + grow_size;
2635
- (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc
2636
- ((yy_buffer_stack),
2637
- num_to_alloc * sizeof(struct yy_buffer_state*)
2638
- );
2639
- if ( ! (yy_buffer_stack) )
2640
- YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2641
-
2642
- /* zero only the new slots.*/
2643
- memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
2644
- (yy_buffer_stack_max) = num_to_alloc;
2645
- }
2646
- }
2647
-
2648
- /** Setup the input buffer state to scan directly from a user-specified character buffer.
2649
- * @param base the character buffer
2650
- * @param size the size in bytes of the character buffer
2651
- *
2652
- * @return the newly allocated buffer state object.
2653
- */
2654
- YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size )
2655
- {
2656
- YY_BUFFER_STATE b;
2657
-
2658
- if ( size < 2 ||
2659
- base[size-2] != YY_END_OF_BUFFER_CHAR ||
2660
- base[size-1] != YY_END_OF_BUFFER_CHAR )
2661
- /* They forgot to leave room for the EOB's. */
2662
- return 0;
2663
-
2664
- b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
2665
- if ( ! b )
2666
- YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2667
-
2668
- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2669
- b->yy_buf_pos = b->yy_ch_buf = base;
2670
- b->yy_is_our_buffer = 0;
2671
- b->yy_input_file = 0;
2672
- b->yy_n_chars = b->yy_buf_size;
2673
- b->yy_is_interactive = 0;
2674
- b->yy_at_bol = 1;
2675
- b->yy_fill_buffer = 0;
2676
- b->yy_buffer_status = YY_BUFFER_NEW;
2677
-
2678
- yy_switch_to_buffer(b );
2679
-
2680
- return b;
2681
- }
2682
-
2683
- /** Setup the input buffer state to scan a string. The next call to yylex() will
2684
- * scan from a @e copy of @a str.
2685
- * @param yystr a NUL-terminated string to scan
2686
- *
2687
- * @return the newly allocated buffer state object.
2688
- * @note If you want to scan bytes that may contain NUL values, then use
2689
- * yy_scan_bytes() instead.
2690
- */
2691
- YY_BUFFER_STATE yy_scan_string (yyconst char * yystr )
2692
- {
2693
-
2694
- return yy_scan_bytes(yystr,strlen(yystr) );
2695
- }
2696
-
2697
- /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
2698
- * scan from a @e copy of @a bytes.
2699
- * @param yybytes the byte buffer to scan
2700
- * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
2701
- *
2702
- * @return the newly allocated buffer state object.
2703
- */
2704
- YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len )
2705
- {
2706
- YY_BUFFER_STATE b;
2707
- char *buf;
2708
- yy_size_t n;
2709
- int i;
2710
-
2711
- /* Get memory for full buffer, including space for trailing EOB's. */
2712
- n = _yybytes_len + 2;
2713
- buf = (char *) yyalloc(n );
2714
- if ( ! buf )
2715
- YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2716
-
2717
- for ( i = 0; i < _yybytes_len; ++i )
2718
- buf[i] = yybytes[i];
2719
-
2720
- buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2721
-
2722
- b = yy_scan_buffer(buf,n );
2723
- if ( ! b )
2724
- YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2725
-
2726
- /* It's okay to grow etc. this buffer, and we should throw it
2727
- * away when we're done.
2728
- */
2729
- b->yy_is_our_buffer = 1;
2730
-
2731
- return b;
2732
- }
2733
-
2734
- static void yy_push_state (int new_state )
2735
- {
2736
- if ( (yy_start_stack_ptr) >= (yy_start_stack_depth) )
2737
- {
2738
- yy_size_t new_size;
2739
-
2740
- (yy_start_stack_depth) += YY_START_STACK_INCR;
2741
- new_size = (yy_start_stack_depth) * sizeof( int );
2742
-
2743
- if ( ! (yy_start_stack) )
2744
- (yy_start_stack) = (int *) yyalloc(new_size );
2745
-
2746
- else
2747
- (yy_start_stack) = (int *) yyrealloc((void *) (yy_start_stack),new_size );
2748
-
2749
- if ( ! (yy_start_stack) )
2750
- YY_FATAL_ERROR( "out of memory expanding start-condition stack" );
2751
- }
2752
-
2753
- (yy_start_stack)[(yy_start_stack_ptr)++] = YY_START;
2754
-
2755
- BEGIN(new_state);
2756
- }
2757
-
2758
- static void yy_pop_state (void)
2759
- {
2760
- if ( --(yy_start_stack_ptr) < 0 )
2761
- YY_FATAL_ERROR( "start-condition stack underflow" );
2762
-
2763
- BEGIN((yy_start_stack)[(yy_start_stack_ptr)]);
2764
- }
2765
-
2766
- static int yy_top_state (void)
2767
- {
2768
- return (yy_start_stack)[(yy_start_stack_ptr) - 1];
2769
- }
2770
-
2771
- #ifndef YY_EXIT_FAILURE
2772
- #define YY_EXIT_FAILURE 2
2773
- #endif
2774
-
2775
- static void yy_fatal_error (yyconst char* msg )
2776
- {
2777
- (void) fprintf( stderr, "%s\n", msg );
2778
- exit( YY_EXIT_FAILURE );
2779
- }
2780
-
2781
- /* Redefine yyless() so it works in section 3 code. */
2782
-
2783
- #undef yyless
2784
- #define yyless(n) \
2785
- do \
2786
- { \
2787
- /* Undo effects of setting up yytext. */ \
2788
- int yyless_macro_arg = (n); \
2789
- YY_LESS_LINENO(yyless_macro_arg);\
2790
- yytext[yyleng] = (yy_hold_char); \
2791
- (yy_c_buf_p) = yytext + yyless_macro_arg; \
2792
- (yy_hold_char) = *(yy_c_buf_p); \
2793
- *(yy_c_buf_p) = '\0'; \
2794
- yyleng = yyless_macro_arg; \
2795
- } \
2796
- while ( 0 )
2797
-
2798
- /* Accessor methods (get/set functions) to struct members. */
2799
-
2800
- /** Get the current line number.
2801
- *
2802
- */
2803
- int yyget_lineno (void)
2804
- {
2805
-
2806
- return yylineno;
2807
- }
2808
-
2809
- /** Get the input stream.
2810
- *
2811
- */
2812
- FILE *yyget_in (void)
2813
- {
2814
- return yyin;
2815
- }
2816
-
2817
- /** Get the output stream.
2818
- *
2819
- */
2820
- FILE *yyget_out (void)
2821
- {
2822
- return yyout;
2823
- }
2824
-
2825
- /** Get the length of the current token.
2826
- *
2827
- */
2828
- int yyget_leng (void)
2829
- {
2830
- return yyleng;
2831
- }
2832
-
2833
- /** Get the current token.
2834
- *
2835
- */
2836
-
2837
- char *yyget_text (void)
2838
- {
2839
- return yytext;
2840
- }
2841
-
2842
- /** Set the current line number.
2843
- * @param line_number
2844
- *
2845
- */
2846
- void yyset_lineno (int line_number )
2847
- {
2848
-
2849
- yylineno = line_number;
2850
- }
2851
-
2852
- /** Set the input stream. This does not discard the current
2853
- * input buffer.
2854
- * @param in_str A readable stream.
2855
- *
2856
- * @see yy_switch_to_buffer
2857
- */
2858
- void yyset_in (FILE * in_str )
2859
- {
2860
- yyin = in_str ;
2861
- }
2862
-
2863
- void yyset_out (FILE * out_str )
2864
- {
2865
- yyout = out_str ;
2866
- }
2867
-
2868
- int yyget_debug (void)
2869
- {
2870
- return yy_flex_debug;
2871
- }
2872
-
2873
- void yyset_debug (int bdebug )
2874
- {
2875
- yy_flex_debug = bdebug ;
2876
- }
2877
-
2878
- static int yy_init_globals (void)
2879
- {
2880
- /* Initialization is the same as for the non-reentrant scanner.
2881
- * This function is called from yylex_destroy(), so don't allocate here.
2882
- */
2883
-
2884
- (yy_buffer_stack) = 0;
2885
- (yy_buffer_stack_top) = 0;
2886
- (yy_buffer_stack_max) = 0;
2887
- (yy_c_buf_p) = (char *) 0;
2888
- (yy_init) = 0;
2889
- (yy_start) = 0;
2890
-
2891
- (yy_start_stack_ptr) = 0;
2892
- (yy_start_stack_depth) = 0;
2893
- (yy_start_stack) = NULL;
2894
-
2895
- (yy_state_buf) = 0;
2896
- (yy_state_ptr) = 0;
2897
- (yy_full_match) = 0;
2898
- (yy_lp) = 0;
2899
-
2900
- /* Defined in main.c */
2901
- #ifdef YY_STDINIT
2902
- yyin = stdin;
2903
- yyout = stdout;
2904
- #else
2905
- yyin = (FILE *) 0;
2906
- yyout = (FILE *) 0;
2907
- #endif
2908
-
2909
- /* For future reference: Set errno on error, since we are called by
2910
- * yylex_init()
2911
- */
2912
- return 0;
2913
- }
2914
-
2915
- /* yylex_destroy is for both reentrant and non-reentrant scanners. */
2916
- int yylex_destroy (void)
2917
- {
2918
-
2919
- /* Pop the buffer stack, destroying each element. */
2920
- while(YY_CURRENT_BUFFER){
2921
- yy_delete_buffer(YY_CURRENT_BUFFER );
2922
- YY_CURRENT_BUFFER_LVALUE = NULL;
2923
- yypop_buffer_state();
2924
- }
2925
-
2926
- /* Destroy the stack itself. */
2927
- yyfree((yy_buffer_stack) );
2928
- (yy_buffer_stack) = NULL;
2929
-
2930
- /* Destroy the start condition stack. */
2931
- yyfree((yy_start_stack) );
2932
- (yy_start_stack) = NULL;
2933
-
2934
- yyfree ( (yy_state_buf) );
2935
- (yy_state_buf) = NULL;
2936
-
2937
- /* Reset the globals. This is important in a non-reentrant scanner so the next time
2938
- * yylex() is called, initialization will occur. */
2939
- yy_init_globals( );
2940
-
2941
- return 0;
2942
- }
2943
-
2944
- /*
2945
- * Internal utility routines.
2946
- */
2947
-
2948
- #ifndef yytext_ptr
2949
- static void yy_flex_strncpy (char* s1, yyconst char * s2, int n )
2950
- {
2951
- register int i;
2952
- for ( i = 0; i < n; ++i )
2953
- s1[i] = s2[i];
2954
- }
2955
- #endif
2956
-
2957
- #ifdef YY_NEED_STRLEN
2958
- static int yy_flex_strlen (yyconst char * s )
2959
- {
2960
- register int n;
2961
- for ( n = 0; s[n]; ++n )
2962
- ;
2963
-
2964
- return n;
2965
- }
2966
- #endif
2967
-
2968
- void *yyalloc (yy_size_t size )
2969
- {
2970
- return (void *) malloc( size );
2971
- }
2972
-
2973
- void *yyrealloc (void * ptr, yy_size_t size )
2974
- {
2975
- /* The cast to (char *) in the following accommodates both
2976
- * implementations that use char* generic pointers, and those
2977
- * that use void* generic pointers. It works with the latter
2978
- * because both ANSI C and C++ allow castless assignment from
2979
- * any pointer type to void*, and deal with argument conversions
2980
- * as though doing an assignment.
2981
- */
2982
- return (void *) realloc( (char *) ptr, size );
2983
- }
2984
-
2985
- void yyfree (void * ptr )
2986
- {
2987
- free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
2988
- }
2989
-
2990
- #define YYTABLES_NAME "yytables"
2991
-
2992
- #line 203 "parser.l"
2993
-
2994
-
2995
-
2996
-