/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /usr/src/contrib/flex-2.4.6/RCS/flex.skl,v 1.3 1994/01/24 05:03:21 vern Exp $
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
/* Use prototypes in function declarations. */
/* The "const" storage-class-modifier is valid. */
#else /* ! __cplusplus */
#endif /* ! __cplusplus */
#define YY_PROTO(proto) proto
#define YY_PROTO(proto) ()
/* Returned upon end-of-file. */
/* Promotes a possibly negative, possibly signed char to an unsigned
* integer for use as an array index. If the signed char is negative,
* we want to instead treat it as an 8-bit unsigned char, hence the
#define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
/* Enter a start condition. This macro really ought to take a parameter,
* but we do it the disgusting crufty way forced on us by the ()-less
#define BEGIN yy_start = 1 + 2 *
/* Translate the current start state into a value that can be later handed
* to BEGIN to return to the state.
#define YY_START ((yy_start - 1) / 2)
/* Action number for EOF rule of a given start state. */
#define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
/* Special action meaning "start processing a new file". Now included
* only for backward compatibility with previous versions of flex.
#define YY_NEW_FILE yyrestart( yyin )
#define YY_END_OF_BUFFER_CHAR 0
/* Size of default input buffer. */
#define YY_BUF_SIZE 16384
typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
extern FILE *yyin
, *yyout
;
extern int yywrap
YY_PROTO(( void ));
#define EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
/* The funky do-while in the following #define is used to turn the definition
* int a single C statement (which needs a semi-colon terminator). This
* avoids problems with code like:
* Prior to using the do-while the compiler would get upset at the
* "else" because it interpreted the "if" statement as being all
* done when it reached the ';' after the yyless() call.
/* Return all but the first 'n' matched characters back to the input stream. */
/* Undo effects of setting up yytext. */ \
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
#define unput(c) yyunput( c, yytext_ptr )
char *yy_ch_buf
; /* input buffer */
char *yy_buf_pos
; /* current position in input buffer */
/* Size of input buffer in bytes, not including room for EOB
/* Number of characters read into yy_ch_buf, not including EOB
/* Whether this is an "interactive" input source; if so, and
* if we're using stdio for input, then we want to use getc()
* instead of fread(), to make sure we stop fetching input after
/* Whether to try to fill the input buffer when we reach the
/* Whether we've seen an EOF on this buffer. */
/* "Pending" happens when the EOF has been seen but there's still
* some text to process. Note that when we actually see the EOF,
* we switch the status back to "not seen" (via yyrestart()), so
* that the user can continue scanning by just pointing yyin at
static YY_BUFFER_STATE yy_current_buffer
= 0;
/* We provide macros for accessing buffer states in case in the
* future we want to put the buffer states in a more general
#define YY_CURRENT_BUFFER yy_current_buffer
/* yy_hold_char holds the character lost when yytext is formed. */
static char yy_hold_char
;
static int yy_n_chars
; /* number of characters read into yy_ch_buf */
/* Points to current character in buffer. */
static char *yy_c_buf_p
= (char *) 0;
static int yy_init
= 1; /* whether we need to initialize */
static int yy_start
= 0; /* start state number */
/* Flag which is used to allow yywrap()'s to do buffer switches
* instead of setting up a fresh yyin. A bit of a hack ...
static int yy_did_buffer_switch_on_eof
;
static void yyunput
YY_PROTO(( int c
, char *buf_ptr
));
void yyrestart
YY_PROTO(( FILE *input_file
));
void yy_switch_to_buffer
YY_PROTO(( YY_BUFFER_STATE new_buffer
));
void yy_load_buffer_state
YY_PROTO(( void ));
YY_BUFFER_STATE yy_create_buffer
YY_PROTO(( FILE *file
, int size
));
void yy_delete_buffer
YY_PROTO(( YY_BUFFER_STATE b
));
void yy_init_buffer
YY_PROTO(( YY_BUFFER_STATE b
, FILE *file
));
static int yy_start_stack_ptr
= 0;
static int yy_start_stack_depth
= 0;
static int *yy_start_stack
= 0;
static void yy_push_state
YY_PROTO(( int new_state
));
static void yy_pop_state
YY_PROTO(( void ));
static int yy_top_state
YY_PROTO(( void ));
static void yy_flex_strcpy
YY_PROTO(( char *, const char * ));
static void *yy_flex_alloc
YY_PROTO(( unsigned int ));
static void *yy_flex_realloc
YY_PROTO(( void *ptr
, unsigned int ));
static void yy_flex_free
YY_PROTO(( void * ));
#define yy_new_buffer yy_create_buffer
#define ACTION_COMMENT 16
#define PERCENT_BRACE_ACTION 18
typedef unsigned char YY_CHAR
;
typedef int yy_state_type
;
FILE *yyin
= (FILE *) 0, *yyout
= (FILE *) 0;
#define yytext_ptr yytext
static int yyinput
YY_PROTO(( void ));
static int input
YY_PROTO(( void ));
static yy_state_type yy_get_previous_state
YY_PROTO(( void ));
static yy_state_type yy_try_NUL_trans
YY_PROTO(( yy_state_type current_state
));
static int yy_get_next_buffer
YY_PROTO(( void ));
static void yy_fatal_error
YY_PROTO(( const char msg
[] ));
/* Done after the current pattern has been matched and before the
* corresponding action - sets up yytext.
#define YY_DO_BEFORE_ACTION \
yyleng = yy_cp - yy_bp; \
#define YY_END_OF_BUFFER 113
static const short int yy_accept
[408] =
0, 0, 0, 0, 41, 41, 110, 110, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 113, 111, 6, 17, 111, 15, 1, 16,
111, 111, 111, 14, 60, 53, 54, 60, 47, 60,
59, 60, 60, 60, 60, 44, 43, 60, 60, 45,
46, 41, 42, 41, 40, 39, 40, 40, 110, 110,
26, 27, 26, 26, 26, 26, 26, 26, 29, 28,
30, 29, 65, 61, 62, 64, 66, 80, 81, 80,
78, 77, 79, 67, 69, 67, 68, 67, 72, 72,
72, 74, 76, 74, 74, 74, 75, 92, 97, 92,
96, 98, 98, 93, 93, 93, 90, 91, 111, 31,
111, 83, 111, 82, 20, 22, 20, 21, 101, 102,
101, 100, 103, 105, 103, 106, 107, 88, 88, 89,
88, 88, 88, 88, 88, 88, 36, 33, 32, 36,
36, 36, 88, 6, 17, 0, 17, 15, 1, 16,
0, 16, 13, 7, 0, 0, 0, 3, 0, 4,
0, 2, 14, 53, 54, 0, 0, 0, 54, 50,
50, 0, 0, 57, 0, 108, 108, 108, 49, 48,
49, 44, 43, 0, 43, 56, 44, 41, 42, 40,
39, 39, 37, 38, 110, 110, 26, 27, 26, 26,
26, 26, 29, 28, 30, 63, 64, 81, 77, 69,
109, 109, 109, 70, 71, 76, 73, 92, 97, 0,
95, 0, 94, 93, 93, 93, 0, 31, 0, 31,
31, 83, 20, 22, 18, 101, 102, 101, 102, 102,
99, 103, 105, 104, 88, 88, 88, 89, 85, 88,
88, 88, 36, 33, 32, 36, 36, 84, 13, 7,
0, 12, 0, 0, 0, 0, 3, 0, 0, 4,
0, 5, 0, 51, 0, 52, 0, 0, 57, 0,
57, 57, 108, 108, 49, 49, 58, 56, 37, 38,
26, 26, 26, 23, 26, 0, 109, 109, 93, 93,
0, 19, 0, 85, 85, 88, 88, 36, 36, 12,
0, 0, 0, 3, 0, 0, 4, 5, 5, 52,
52, 0, 57, 57, 57, 57, 108, 26, 26, 23,
23, 0, 109, 93, 93, 19, 19, 88, 88, 36,
36, 0, 0, 0, 10, 0, 57, 57, 57, 57,
26, 26, 93, 93, 88, 88, 36, 36, 0, 0,
0, 0, 57, 57, 24, 25, 86, 87, 86, 87,
34, 35, 0, 9, 0, 0, 11, 55, 9, 9,
static const int yy_ec
[256] =
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 1, 5, 1, 6, 7, 1, 8, 9,
9, 10, 9, 11, 12, 9, 13, 14, 14, 14,
14, 14, 14, 14, 14, 14, 14, 1, 1, 15,
1, 16, 9, 1, 22, 23, 24, 25, 26, 27,
21, 21, 28, 29, 30, 21, 31, 32, 33, 34,
21, 35, 36, 37, 38, 21, 21, 39, 40, 21,
17, 18, 19, 20, 21, 1, 22, 23, 24, 25,
26, 27, 21, 21, 28, 29, 30, 21, 31, 32,
33, 34, 21, 35, 36, 37, 38, 21, 21, 39,
40, 21, 41, 42, 43, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
static const int yy_meta
[44] =
1, 2, 3, 1, 4, 1, 1, 5, 1, 6,
1, 7, 5, 8, 1, 1, 1, 9, 10, 1,
11, 12, 12, 12, 12, 12, 12, 11, 11, 11,
11, 11, 11, 11, 11, 11, 13, 11, 11, 11,
static const short int yy_base
[470] =
0, 43, 85, 126, 89, 102, 1611, 1610, 168, 1605,
108, 111, 211, 0, 1591, 1590, 252, 254, 116, 119,
98, 122, 144, 146, 297, 0, 93, 104, 338, 340,
149, 151, 257, 266, 268, 274, 383, 0, 425, 428,
1596, 1595, 1607, 1615, 278, 1602, 1602, 0, 281, 1600,
1600, 462, 1592, 0, 1615, 431, 1597, 1597, 1615, 285,
1615, 1584, 1580, 331, 503, 437, 1593, 1593, 110, 1580,
1615, 0, 1590, 1590, 0, 1590, 1588, 221, 1587, 1615,
0, 1585, 1585, 1615, 0, 1561, 1546, 1511, 0, 1551,
1543, 1543, 1615, 1615, 1498, 0, 1615, 1615, 1500, 1487,
1615, 1463, 1615, 1615, 1466, 1460, 1615, 332, 1615, 333,
126, 1615, 1411, 1398, 0, 334, 1615, 0, 1383, 1383,
1615, 341, 1371, 0, 1354, 1336, 1615, 1615, 271, 1371,
287, 1370, 1366, 1615, 0, 1362, 1349, 1331, 290, 1335,
347, 1325, 0, 1323, 1310, 1615, 0, 0, 350, 1306,
1287, 1246, 1615, 0, 1249, 1227, 0, 1264, 1261, 1255,
1225, 1197, 1213, 351, 1213, 1213, 1615, 0, 358, 1198,
1193, 1615, 0, 0, 443, 361, 447, 0, 342, 0,
363, 1615, 0, 451, 1191, 1188, 1149, 365, 1615, 1615,
1185, 1181, 1155, 1135, 423, 1615, 1125, 0, 0, 1615,
546, 588, 1121, 1108, 1615, 0, 1615, 0, 1615, 0,
0, 1095, 0, 0, 1088, 1615, 0, 1615, 0, 1061,
1041, 630, 0, 1069, 1615, 1615, 0, 1615, 838, 1615,
1615, 837, 0, 1615, 1615, 1615, 1615, 0, 1615, 434,
1615, 0, 1615, 0, 821, 817, 373, 843, 376, 1615,
842, 1615, 0, 1615, 463, 467, 834, 471, 1615, 833,
1615, 0, 1615, 1615, 0, 441, 793, 1615, 673, 0,
805, 802, 0, 830, 1615, 795, 792, 1615, 0, 0,
594, 818, 817, 597, 784, 790, 0, 775, 786, 0,
473, 807, 478, 1615, 486, 806, 590, 776, 790, 588,
469, 703, 793, 0, 0, 0, 1615, 0, 0, 0,
780, 772, 0, 800, 800, 730, 788, 0, 775, 767,
600, 795, 602, 0, 773, 772, 764, 770, 762, 1615,
610, 772, 751, 0, 740, 745, 0, 1615, 765, 1615,
764, 740, 488, 803, 601, 817, 1615, 742, 730, 1615,
760, 760, 1615, 738, 726, 1615, 756, 735, 723, 733,
721, 714, 716, 726, 1615, 724, 602, 831, 715, 658,
512, 473, 454, 459, 435, 438, 422, 430, 606, 410,
357, 342, 338, 278, 0, 0, 0, 0, 0, 0,
0, 0, 614, 255, 618, 131, 1615, 1615, 1615, 156,
620, 622, 153, 625, 1615, 95, 1615, 858, 872, 886,
900, 914, 928, 942, 956, 970, 984, 998, 1012, 1026,
1040, 1054, 1062, 1075, 1081, 1094, 1108, 1122, 1136, 1150,
1164, 1178, 1186, 1199, 1207, 1220, 1234, 1248, 1262, 1272,
1280, 1293, 1307, 1321, 1335, 1349, 1363, 1371, 1384, 1398,
1412, 1416, 1419, 1432, 1446, 1460, 710, 1474, 1487, 1501,
1515, 711, 1529, 1537, 1544, 712, 743, 1557, 1571
static const short int yy_def
[470] =
407, 407, 408, 408, 409, 410, 411, 411, 407, 9,
412, 412, 407, 13, 413, 413, 414, 414, 415, 415,
416, 416, 417, 417, 407, 25, 418, 418, 413, 413,
419, 419, 420, 420, 421, 421, 407, 37, 422, 422,
37, 37, 407, 407, 407, 407, 407, 423, 407, 407,
407, 424, 407, 425, 407, 407, 407, 407, 407, 407,
407, 407, 426, 427, 407, 407, 407, 407, 407, 407,
407, 428, 407, 428, 429, 430, 429, 429, 431, 407,
432, 407, 432, 407, 433, 433, 433, 432, 434, 407,
407, 434, 407, 407, 407, 435, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 427, 407, 436,
437, 407, 407, 407, 438, 427, 407, 439, 407, 439,
407, 440, 407, 441, 441, 441, 407, 407, 442, 407,
442, 407, 407, 407, 443, 407, 443, 407, 444, 407,
444, 407, 445, 407, 445, 407, 446, 447, 447, 407,
447, 447, 407, 448, 448, 448, 449, 407, 407, 449,
449, 449, 447, 407, 407, 407, 407, 423, 407, 407,
407, 407, 450, 451, 407, 407, 407, 452, 407, 453,
454, 407, 425, 407, 407, 407, 407, 455, 407, 407,
407, 407, 407, 456, 426, 407, 407, 457, 458, 407,
407, 407, 407, 407, 407, 459, 407, 428, 407, 429,
430, 430, 460, 461, 431, 407, 432, 407, 433, 433,
433, 407, 434, 407, 407, 407, 435, 407, 407, 407,
407, 407, 462, 407, 407, 407, 407, 439, 407, 440,
407, 440, 407, 441, 441, 441, 442, 407, 442, 407,
407, 407, 443, 407, 463, 444, 407, 444, 407, 407,
407, 445, 407, 407, 447, 447, 447, 407, 407, 448,
448, 448, 449, 407, 407, 449, 449, 407, 450, 451,
407, 407, 407, 407, 407, 407, 464, 407, 407, 465,
454, 407, 454, 407, 455, 407, 455, 407, 456, 456,
456, 456, 407, 466, 458, 201, 407, 459, 460, 461,
433, 433, 222, 407, 222, 222, 407, 467, 441, 441,
463, 407, 463, 269, 269, 448, 448, 449, 449, 407,
407, 407, 407, 464, 407, 407, 465, 407, 407, 407,
407, 407, 456, 456, 456, 456, 407, 433, 433, 407,
407, 316, 407, 441, 441, 407, 407, 448, 448, 449,
449, 407, 407, 407, 407, 407, 456, 456, 456, 456,
433, 433, 441, 441, 448, 448, 449, 449, 468, 407,
407, 407, 456, 456, 433, 433, 441, 441, 448, 448,
449, 449, 468, 407, 468, 407, 407, 407, 407, 407,
469, 469, 407, 469, 407, 407, 0, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407
static const short int yy_nxt
[1659] =
44, 45, 46, 47, 44, 44, 44, 44, 44, 44,
44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 48, 48, 48, 48, 48, 48,
44, 44, 44, 44, 49, 50, 51, 44, 44, 52,
44, 44, 44, 44, 44, 53, 44, 44, 44, 44,
44, 44, 44, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 54, 54, 54, 54, 54, 54, 54,
54, 54, 54, 44, 44, 44, 56, 57, 58, 59,
60, 73, 74, 61, 61, 130, 131, 61, 405, 62,
44, 63, 64, 76, 73, 77, 130, 131, 78, 90,
91, 92, 90, 91, 92, 110, 206, 111, 105, 106,
107, 105, 106, 107, 44, 65, 61, 66, 67, 68,
59, 60, 69, 108, 61, 61, 108, 235, 61, 110,
70, 111, 63, 64, 235, 71, 113, 114, 113, 114,
207, 136, 137, 136, 137, 115, 405, 115, 138, 399,
138, 116, 117, 116, 117, 401, 65, 61, 81, 81,
82, 83, 81, 81, 81, 81, 81, 84, 81, 81,
81, 81, 81, 81, 81, 81, 81, 81, 85, 85,
85, 85, 85, 85, 85, 85, 85, 85, 85, 85,
85, 85, 86, 85, 85, 85, 85, 87, 81, 81,
81, 93, 93, 44, 93, 93, 93, 93, 93, 93,
94, 94, 93, 93, 93, 93, 95, 93, 93, 93,
93, 96, 96, 96, 96, 96, 96, 96, 96, 96,
96, 96, 96, 96, 96, 96, 96, 96, 96, 96,
96, 93, 93, 93, 99, 100, 99, 100, 399, 140,
141, 213, 101, 214, 101, 102, 142, 102, 140, 141,
144, 145, 146, 248, 249, 142, 144, 145, 146, 164,
165, 166, 169, 170, 171, 147, 190, 191, 192, 251,
249, 147, 257, 258, 103, 300, 103, 118, 118, 119,
120, 121, 118, 118, 122, 118, 118, 118, 118, 123,
118, 118, 118, 118, 118, 118, 118, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 124, 124,
124, 125, 124, 124, 124, 124, 126, 127, 118, 128,
132, 133, 132, 133, 197, 197, 232, 197, 241, 260,
258, 266, 164, 165, 166, 300, 267, 398, 242, 169,
170, 171, 281, 282, 283, 292, 293, 296, 297, 198,
198, 233, 198, 288, 284, 248, 249, 289, 251, 249,
134, 397, 134, 148, 149, 150, 151, 148, 148, 152,
148, 148, 153, 148, 148, 148, 148, 148, 148, 148,
148, 148, 148, 154, 154, 154, 154, 154, 154, 154,
154, 154, 154, 154, 154, 154, 154, 155, 154, 154,
154, 154, 156, 148, 148, 148, 158, 159, 160, 158,
159, 160, 184, 185, 186, 396, 301, 187, 202, 203,
204, 241, 266, 187, 281, 282, 283, 267, 281, 282,
283, 242, 184, 185, 186, 392, 284, 187, 391, 161,
284, 302, 161, 390, 162, 322, 323, 162, 174, 257,
258, 389, 188, 260, 258, 292, 293, 285, 188, 286,
339, 293, 345, 175, 388, 176, 300, 176, 296, 297,
387, 176, 188, 176, 176, 177, 176, 178, 386, 179,
180, 367, 181, 199, 199, 300, 199, 199, 199, 199,
199, 199, 199, 199, 199, 199, 200, 199, 199, 199,
199, 199, 199, 201, 201, 201, 201, 201, 201, 201,
201, 201, 201, 201, 201, 201, 201, 201, 201, 201,
201, 201, 201, 199, 199, 199, 305, 305, 385, 305,
305, 305, 305, 305, 305, 305, 305, 306, 305, 306,
305, 305, 305, 305, 305, 305, 306, 306, 306, 306,
306, 306, 306, 306, 306, 306, 306, 306, 306, 306,
306, 306, 306, 306, 306, 306, 305, 305, 307, 202,
203, 204, 341, 297, 187, 281, 282, 283, 331, 282,
283, 343, 322, 323, 357, 323, 299, 284, 394, 395,
284, 331, 282, 283, 369, 383, 394, 395, 300, 300,
400, 395, 403, 404, 403, 404, 344, 406, 404, 188,
313, 313, 314, 315, 313, 313, 313, 313, 313, 316,
313, 313, 313, 313, 313, 313, 313, 313, 313, 313,
316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
313, 313, 313, 324, 324, 300, 324, 324, 324, 324,
324, 324, 325, 324, 324, 324, 324, 324, 324, 324,
324, 324, 324, 325, 325, 325, 325, 325, 325, 325,
325, 325, 325, 325, 325, 325, 325, 325, 325, 325,
325, 325, 325, 324, 324, 324, 346, 304, 318, 347,
300, 304, 318, 347, 346, 346, 346, 346, 346, 346,
316, 316, 300, 352, 316, 316, 316, 316, 316, 382,
316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
353, 381, 380, 379, 353, 378, 377, 376, 375, 356,
374, 373, 351, 350, 372, 371, 366, 340, 338, 365,
316, 316, 316, 325, 325, 364, 325, 325, 325, 325,
325, 325, 363, 325, 325, 325, 325, 325, 325, 325,
325, 325, 325, 362, 361, 360, 359, 358, 356, 355,
354, 231, 351, 350, 349, 348, 196, 300, 342, 340,
338, 336, 335, 325, 325, 325, 368, 333, 332, 330,
300, 330, 329, 328, 368, 368, 368, 368, 368, 368,
370, 274, 327, 326, 300, 269, 259, 259, 370, 370,
370, 370, 370, 370, 384, 250, 250, 320, 300, 319,
317, 229, 384, 384, 384, 384, 384, 384, 55, 55,
55, 55, 55, 55, 55, 55, 55, 55, 55, 55,
55, 55, 72, 72, 72, 72, 72, 72, 72, 72,
72, 72, 72, 72, 72, 72, 75, 75, 75, 75,
75, 75, 75, 75, 75, 75, 75, 75, 75, 75,
79, 79, 79, 79, 79, 79, 79, 79, 79, 79,
79, 79, 79, 79, 89, 89, 89, 89, 89, 89,
89, 89, 89, 89, 89, 89, 89, 89, 44, 44,
44, 44, 44, 44, 44, 44, 44, 44, 44, 44,
44, 44, 98, 98, 98, 98, 98, 98, 98, 98,
98, 98, 98, 98, 98, 98, 104, 104, 104, 104,
104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
109, 109, 109, 109, 109, 109, 109, 109, 109, 109,
109, 109, 109, 109, 112, 112, 112, 112, 112, 112,
112, 112, 112, 112, 112, 112, 112, 112, 129, 129,
129, 129, 129, 129, 129, 129, 129, 129, 129, 129,
129, 129, 135, 135, 135, 135, 135, 135, 135, 135,
135, 135, 135, 135, 135, 135, 139, 139, 139, 139,
139, 139, 139, 139, 139, 139, 139, 139, 139, 139,
143, 143, 143, 143, 143, 143, 143, 143, 143, 143,
143, 143, 143, 143, 157, 157, 157, 157, 157, 157,
157, 157, 157, 157, 157, 157, 157, 157, 168, 168,
224, 312, 168, 168, 168, 173, 173, 173, 173, 173,
173, 173, 173, 173, 173, 173, 173, 183, 183, 311,
216, 183, 183, 183, 194, 194, 212, 194, 194, 194,
194, 194, 194, 194, 194, 194, 194, 194, 196, 196,
205, 196, 196, 196, 196, 196, 196, 196, 196, 196,
196, 196, 208, 208, 205, 208, 208, 208, 208, 208,
208, 208, 208, 208, 208, 208, 210, 210, 303, 210,
210, 210, 210, 210, 210, 210, 210, 210, 210, 210,
211, 211, 300, 211, 211, 211, 211, 211, 211, 211,
211, 211, 211, 211, 215, 215, 215, 215, 215, 215,
215, 215, 215, 215, 215, 215, 215, 215, 217, 217,
298, 217, 217, 190, 217, 217, 217, 217, 190, 294,
189, 217, 219, 219, 189, 172, 219, 219, 219, 223,
223, 172, 223, 223, 223, 223, 223, 223, 223, 223,
223, 223, 223, 227, 227, 167, 167, 227, 227, 227,
231, 231, 278, 231, 231, 231, 231, 231, 231, 231,
231, 231, 231, 231, 234, 234, 277, 234, 234, 234,
234, 234, 234, 234, 234, 234, 234, 234, 237, 237,
276, 237, 237, 237, 237, 237, 237, 275, 237, 237,
237, 237, 238, 238, 275, 274, 272, 238, 238, 238,
238, 238, 240, 240, 271, 240, 240, 240, 240, 240,
240, 240, 240, 240, 240, 240, 244, 244, 269, 268,
244, 244, 244, 247, 247, 247, 247, 247, 247, 247,
247, 247, 247, 247, 247, 247, 247, 253, 253, 268,
253, 253, 263, 253, 253, 253, 253, 253, 253, 253,
253, 256, 256, 256, 256, 256, 263, 256, 256, 256,
256, 256, 256, 256, 256, 262, 262, 261, 259, 262,
262, 262, 262, 255, 262, 262, 262, 262, 262, 264,
264, 254, 264, 264, 264, 264, 264, 264, 264, 264,
264, 264, 264, 265, 265, 254, 265, 265, 252, 265,
265, 265, 265, 252, 250, 246, 265, 270, 270, 245,
243, 270, 270, 270, 273, 239, 239, 273, 273, 273,
273, 273, 273, 273, 273, 273, 273, 273, 279, 279,
236, 279, 279, 279, 279, 279, 279, 279, 279, 279,
279, 279, 280, 280, 236, 280, 280, 280, 280, 280,
280, 280, 280, 280, 280, 280, 287, 287, 287, 290,
290, 290, 291, 291, 291, 291, 291, 291, 291, 291,
291, 291, 291, 291, 291, 291, 295, 295, 295, 295,
295, 295, 295, 295, 295, 295, 295, 295, 295, 295,
299, 299, 230, 299, 299, 299, 299, 299, 299, 230,
299, 299, 299, 299, 305, 305, 229, 305, 305, 305,
305, 305, 305, 305, 305, 305, 305, 308, 308, 228,
308, 308, 308, 308, 308, 308, 308, 308, 308, 308,
308, 309, 309, 228, 309, 309, 309, 309, 309, 309,
309, 309, 309, 309, 309, 310, 310, 226, 310, 310,
310, 310, 310, 310, 310, 310, 310, 310, 310, 321,
321, 321, 321, 321, 321, 321, 321, 321, 321, 321,
321, 321, 321, 334, 334, 225, 225, 334, 334, 334,
337, 337, 224, 222, 337, 337, 337, 393, 393, 393,
393, 393, 393, 393, 393, 393, 393, 393, 393, 393,
393, 402, 402, 402, 402, 402, 402, 402, 402, 402,
402, 402, 402, 402, 402, 221, 220, 218, 218, 216,
209, 212, 209, 209, 193, 205, 205, 195, 193, 189,
189, 182, 172, 172, 167, 167, 407, 163, 163, 97,
97, 88, 80, 80, 43, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407
static const short int yy_chk
[1659] =
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 3, 3, 3, 3,
3, 5, 5, 3, 3, 27, 27, 3, 406, 3,
21, 3, 3, 6, 6, 6, 28, 28, 6, 11,
11, 11, 12, 12, 12, 21, 69, 21, 19, 19,
19, 20, 20, 20, 22, 3, 3, 4, 4, 4,
4, 4, 4, 19, 4, 4, 20, 111, 4, 22,
4, 22, 4, 4, 111, 4, 23, 23, 24, 24,
69, 31, 31, 32, 32, 23, 403, 24, 31, 400,
32, 23, 23, 24, 24, 396, 4, 4, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
9, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 13, 13, 13, 13, 13, 13,
13, 13, 13, 13, 17, 17, 18, 18, 394, 33,
33, 78, 17, 78, 18, 17, 33, 18, 34, 34,
35, 35, 35, 129, 129, 34, 36, 36, 36, 45,
45, 45, 49, 49, 49, 35, 60, 60, 60, 131,
131, 36, 139, 139, 17, 384, 18, 25, 25, 25,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
25, 25, 25, 25, 25, 25, 25, 25, 25, 25,
29, 29, 30, 30, 64, 108, 110, 116, 122, 141,
141, 149, 164, 164, 164, 383, 149, 382, 122, 169,
169, 169, 176, 176, 176, 181, 181, 188, 188, 64,
108, 110, 116, 179, 176, 247, 247, 179, 249, 249,
29, 381, 30, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 37, 37, 37, 37,
37, 37, 37, 37, 37, 37, 39, 39, 39, 40,
40, 40, 56, 56, 56, 380, 195, 56, 66, 66,
66, 240, 266, 66, 175, 175, 175, 266, 177, 177,
177, 240, 184, 184, 184, 378, 175, 184, 377, 39,
177, 195, 40, 376, 39, 255, 255, 40, 52, 256,
256, 375, 56, 258, 258, 291, 291, 175, 66, 177,
293, 293, 301, 52, 374, 52, 301, 52, 295, 295,
373, 52, 184, 52, 52, 52, 52, 52, 372, 52,
52, 343, 52, 65, 65, 343, 65, 65, 65, 65,
65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
65, 65, 65, 65, 65, 65, 65, 65, 65, 65,
65, 65, 65, 65, 65, 65, 201, 201, 371, 201,
201, 201, 201, 201, 201, 201, 201, 201, 201, 201,
201, 201, 201, 201, 201, 201, 201, 201, 201, 201,
201, 201, 201, 201, 201, 201, 201, 201, 201, 201,
201, 201, 201, 201, 201, 201, 201, 201, 201, 202,
202, 202, 297, 297, 202, 281, 281, 281, 284, 284,
284, 300, 321, 321, 323, 323, 300, 281, 379, 379,
284, 331, 331, 331, 345, 367, 393, 393, 345, 367,
395, 395, 401, 401, 402, 402, 300, 404, 404, 202,
222, 222, 222, 222, 222, 222, 222, 222, 222, 222,
222, 222, 222, 222, 222, 222, 222, 222, 222, 222,
222, 222, 222, 222, 222, 222, 222, 222, 222, 222,
222, 222, 222, 222, 222, 222, 222, 222, 222, 222,
222, 222, 222, 269, 269, 370, 269, 269, 269, 269,
269, 269, 269, 269, 269, 269, 269, 269, 269, 269,
269, 269, 269, 269, 269, 269, 269, 269, 269, 269,
269, 269, 269, 269, 269, 269, 269, 269, 269, 269,
269, 269, 269, 269, 269, 269, 302, 457, 462, 466,
302, 457, 462, 466, 302, 302, 302, 302, 302, 302,
316, 316, 369, 316, 316, 316, 316, 316, 316, 366,
316, 316, 316, 316, 316, 316, 316, 316, 316, 316,
467, 364, 363, 362, 467, 361, 360, 359, 358, 357,
355, 354, 352, 351, 349, 348, 342, 341, 339, 336,
316, 316, 316, 325, 325, 335, 325, 325, 325, 325,
325, 325, 333, 325, 325, 325, 325, 325, 325, 325,
325, 325, 325, 332, 329, 328, 327, 326, 322, 320,
319, 317, 315, 314, 312, 311, 303, 299, 298, 296,
292, 289, 288, 325, 325, 325, 344, 286, 285, 283,
344, 282, 277, 276, 344, 344, 344, 344, 344, 344,
346, 274, 272, 271, 346, 267, 260, 257, 346, 346,
346, 346, 346, 346, 368, 251, 248, 246, 368, 245,
232, 229, 368, 368, 368, 368, 368, 368, 408, 408,
408, 408, 408, 408, 408, 408, 408, 408, 408, 408,
408, 408, 409, 409, 409, 409, 409, 409, 409, 409,
409, 409, 409, 409, 409, 409, 410, 410, 410, 410,
410, 410, 410, 410, 410, 410, 410, 410, 410, 410,
411, 411, 411, 411, 411, 411, 411, 411, 411, 411,
411, 411, 411, 411, 412, 412, 412, 412, 412, 412,
412, 412, 412, 412, 412, 412, 412, 412, 413, 413,
413, 413, 413, 413, 413, 413, 413, 413, 413, 413,
413, 413, 414, 414, 414, 414, 414, 414, 414, 414,
414, 414, 414, 414, 414, 414, 415, 415, 415, 415,
415, 415, 415, 415, 415, 415, 415, 415, 415, 415,
416, 416, 416, 416, 416, 416, 416, 416, 416, 416,
416, 416, 416, 416, 417, 417, 417, 417, 417, 417,
417, 417, 417, 417, 417, 417, 417, 417, 418, 418,
418, 418, 418, 418, 418, 418, 418, 418, 418, 418,
418, 418, 419, 419, 419, 419, 419, 419, 419, 419,
419, 419, 419, 419, 419, 419, 420, 420, 420, 420,
420, 420, 420, 420, 420, 420, 420, 420, 420, 420,
421, 421, 421, 421, 421, 421, 421, 421, 421, 421,
421, 421, 421, 421, 422, 422, 422, 422, 422, 422,
422, 422, 422, 422, 422, 422, 422, 422, 423, 423,
224, 221, 423, 423, 423, 424, 424, 424, 424, 424,
424, 424, 424, 424, 424, 424, 424, 425, 425, 220,
215, 425, 425, 425, 426, 426, 212, 426, 426, 426,
426, 426, 426, 426, 426, 426, 426, 426, 427, 427,
204, 427, 427, 427, 427, 427, 427, 427, 427, 427,
427, 427, 428, 428, 203, 428, 428, 428, 428, 428,
428, 428, 428, 428, 428, 428, 429, 429, 197, 429,
429, 429, 429, 429, 429, 429, 429, 429, 429, 429,
430, 430, 194, 430, 430, 430, 430, 430, 430, 430,
430, 430, 430, 430, 431, 431, 431, 431, 431, 431,
431, 431, 431, 431, 431, 431, 431, 431, 432, 432,
193, 432, 432, 192, 432, 432, 432, 432, 191, 187,
186, 432, 433, 433, 185, 171, 433, 433, 433, 434,
434, 170, 434, 434, 434, 434, 434, 434, 434, 434,
434, 434, 434, 435, 435, 166, 165, 435, 435, 435,
436, 436, 163, 436, 436, 436, 436, 436, 436, 436,
436, 436, 436, 436, 437, 437, 162, 437, 437, 437,
437, 437, 437, 437, 437, 437, 437, 437, 438, 438,
161, 438, 438, 438, 438, 438, 438, 160, 438, 438,
438, 438, 439, 439, 159, 158, 156, 439, 439, 439,
439, 439, 440, 440, 155, 440, 440, 440, 440, 440,
440, 440, 440, 440, 440, 440, 441, 441, 152, 151,
441, 441, 441, 442, 442, 442, 442, 442, 442, 442,
442, 442, 442, 442, 442, 442, 442, 443, 443, 150,
443, 443, 145, 443, 443, 443, 443, 443, 443, 443,
443, 444, 444, 444, 444, 444, 144, 444, 444, 444,
444, 444, 444, 444, 444, 445, 445, 142, 140, 445,
445, 445, 445, 138, 445, 445, 445, 445, 445, 446,
446, 137, 446, 446, 446, 446, 446, 446, 446, 446,
446, 446, 446, 447, 447, 136, 447, 447, 133, 447,
447, 447, 447, 132, 130, 126, 447, 448, 448, 125,
123, 448, 448, 448, 449, 120, 119, 449, 449, 449,
449, 449, 449, 449, 449, 449, 449, 449, 450, 450,
114, 450, 450, 450, 450, 450, 450, 450, 450, 450,
450, 450, 451, 451, 113, 451, 451, 451, 451, 451,
451, 451, 451, 451, 451, 451, 452, 452, 452, 453,
453, 453, 454, 454, 454, 454, 454, 454, 454, 454,
454, 454, 454, 454, 454, 454, 455, 455, 455, 455,
455, 455, 455, 455, 455, 455, 455, 455, 455, 455,
456, 456, 106, 456, 456, 456, 456, 456, 456, 105,
456, 456, 456, 456, 458, 458, 102, 458, 458, 458,
458, 458, 458, 458, 458, 458, 458, 459, 459, 100,
459, 459, 459, 459, 459, 459, 459, 459, 459, 459,
459, 460, 460, 99, 460, 460, 460, 460, 460, 460,
460, 460, 460, 460, 460, 461, 461, 95, 461, 461,
461, 461, 461, 461, 461, 461, 461, 461, 461, 463,
463, 463, 463, 463, 463, 463, 463, 463, 463, 463,
463, 463, 463, 464, 464, 92, 91, 464, 464, 464,
465, 465, 90, 88, 465, 465, 465, 468, 468, 468,
468, 468, 468, 468, 468, 468, 468, 468, 468, 468,
468, 469, 469, 469, 469, 469, 469, 469, 469, 469,
469, 469, 469, 469, 469, 87, 86, 83, 82, 79,
77, 76, 74, 73, 70, 68, 67, 63, 62, 58,
57, 53, 51, 50, 47, 46, 43, 42, 41, 16,
15, 10, 8, 7, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407, 407, 407,
407, 407, 407, 407, 407, 407, 407, 407
static yy_state_type yy_last_accepting_state
;
static char *yy_last_accepting_cpos
;
/* The intent behind this definition is that it'll catch
* any uses of REJECT which lex missed.
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
/* scan.l - scanner for flex input */
* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* The United States Government has rights in this work pursuant
* to contract no. DE-AC03-76SF00098 between the United States
* Department of Energy and the University of California.
* Redistribution and use in source and binary forms are permitted provided
* that: (1) source distributions retain this entire copyright notice and
* comment, and (2) distributions including binaries display the following
* acknowledgement: ``This product includes software developed by the
* University of California, Berkeley and its contributors'' in the
* documentation or other materials provided with the distribution and in
* all advertising materials mentioning features or use of this software.
* Neither the name of the University nor the names of its contributors may
* be used to endorse or promote products derived from this software without
* specific prior written permission.
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
/* $Header: scan.l,v 1.2 94/01/04 14:33:09 vern Exp $ */
#define ACTION_ECHO add_action( yytext )
#define MARK_END_OF_PROLOG mark_prolog();
yylval = (unsigned char) yytext[0]; \
strcpy( nmstr, yytext ); \
#define PUT_BACK_STRING(str, start) \
for ( i = strlen( str ) - 1; i >= start; --i ) \
#define CHECK_REJECT(str) \
if ( all_upper( str ) ) \
#define CHECK_YYMORE(str) \
if ( all_lower( str ) ) \
/* Macros after this point can all be overridden by user definitions in
/* Just try to get by without declaring the routines. This will fail
* miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
* or sizeof(void*) != sizeof(int).
/* Amount of stuff to slurp up with each read. */
#define YY_READ_BUF_SIZE 8192
/* Copy whatever the last rule matched to the standard output. */
/* This used to be an fputs(), but since the string might contain NUL's,
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
#define YY_INPUT(buf,result,max_size) \
if ( yy_current_buffer->yy_is_interactive ) \
result = c == EOF ? 0 : 1; \
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
YY_FATAL_ERROR( "input in lex scanner failed" );
/* No semi-colon after return; correct usage is to write "yyterminate();" -
* we don't want an extra ';' after the "return" because that will cause
* some compilers to complain about unreachable statements.
#define yyterminate() return YY_NULL
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
/* Report a fatal error. */
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
/* Default declaration of generated scanner - a define so the user can
#define YY_DECL int yylex YY_PROTO(( void ))
/* Code executed at the beginning of each rule, after yytext and yyleng
/* Code executed at the end of each rule. */
register yy_state_type yy_current_state
;
register char *yy_cp
, *yy_bp
;
static int bracelevel
, didadef
, indented_code
, checking_used
;
int doing_codeblock
= false;
Char nmdef
[MAXLINE
], myesc();
yy_start
= 1; /* first start state */
yy_init_buffer( yy_current_buffer
, yyin
);
yy_create_buffer( yyin
, YY_BUF_SIZE
);
while ( 1 ) /* loops until end-of-file is reached */
/* yy_bp points to the position in yy_ch_buf of the start of
yy_current_state
= yy_start
;
register YY_CHAR yy_c
= yy_ec
[YY_SC_TO_UI(*yy_cp
)];
if ( yy_accept
[yy_current_state
] )
yy_last_accepting_state
= yy_current_state
;
yy_last_accepting_cpos
= yy_cp
;
while ( yy_chk
[yy_base
[yy_current_state
] + yy_c
] != yy_current_state
)
yy_current_state
= (int) yy_def
[yy_current_state
];
if ( yy_current_state
>= 408 )
yy_c
= yy_meta
[(unsigned int) yy_c
];
yy_current_state
= yy_nxt
[yy_base
[yy_current_state
] + (unsigned int) yy_c
];
while ( yy_base
[yy_current_state
] != 1615 );
yy_act
= yy_accept
[yy_current_state
];
do_action
: /* This label is used only to access EOF actions. */
{ /* beginning of action switch */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
yy_cp
= yy_last_accepting_cpos
;
yy_current_state
= yy_last_accepting_state
;
indented_code
= true; BEGIN(CODEBLOCK
);
ACTION_ECHO
; BEGIN(C_COMMENT
);
line_directive_out( (FILE *) 0 );
line_directive_out( (FILE *) 0 );
warn( "%pointer incompatible with -l option" );
warn( "%array incompatible with -+ option" );
warn( "%used/%unused have been deprecated" );
checking_used
= REALLY_USED
; BEGIN(USED_LIST
);
warn( "%used/%unused have been deprecated" );
checking_used
= REALLY_NOT_USED
; BEGIN(USED_LIST
);
synerr( "unrecognized '%' directive" );
++linenum
; /* allows blank lines in section 1 */
ACTION_ECHO
; BEGIN(INITIAL
);
++linenum
; ACTION_ECHO
; BEGIN(INITIAL
);
++linenum
; BEGIN(INITIAL
);
ACTION_ECHO
; CHECK_REJECT(yytext
);
ACTION_ECHO
; CHECK_YYMORE(yytext
);
/* separates name and definition */
strcpy( (char *) nmdef
, yytext
);
/* Skip trailing whitespace. */
for ( i
= strlen( (char *) nmdef
) - 1;
i
>= 0 && (nmdef
[i
] == ' ' || nmdef
[i
] == '\t');
ndinstal( nmstr
, nmdef
);
synerr( "incomplete name definition" );
++linenum
; BEGIN(INITIAL
); RETURNNAME
;
++linenum
; BEGIN(INITIAL
);
if ( all_upper( yytext
) )
reject_really_used
= checking_used
;
"unrecognized %used/%unused construct" );
if ( all_lower( yytext
) )
yymore_really_used
= checking_used
;
"unrecognized %used/%unused construct" );
synerr( "unrecognized %used/%unused construct" );
++bracelevel
; yyless( 2 ); /* eat only %{ */
--bracelevel
; yyless( 2 ); /* eat only %} */
ACTION_ECHO
; /* indented code in prolog */
{ /* non-indented code */
yyless( 0 ); /* put it all back */
case YY_STATE_EOF(SECT2PROLOG
):
yyterminate(); /* to stop the parser */
++linenum
; /* allow blank lines in section 2 */
indented_code
= (yytext
[0] != '%');
BEGIN(QUOTE
); return '"';
*yy_cp
= yy_hold_char
; /* undo effects of setting up yytext */
yy_c_buf_p
= yy_cp
= yy_bp
+ 1;
YY_DO_BEFORE_ACTION
; /* set up yytext again */
*yy_cp
= yy_hold_char
; /* undo effects of setting up yytext */
yy_c_buf_p
= yy_cp
= yy_bp
+ 1;
YY_DO_BEFORE_ACTION
; /* set up yytext again */
BEGIN(PERCENT_BRACE_ACTION
);
continued_action
= true; ++linenum
; return '\n';
/* This rule is separate from the one below because
* otherwise we get variable trailing context, so
* we can't build the scanner using -{f,F}.
continued_action
= false;
continued_action
= false;
unput( '\n' ); /* so <ACTION> sees it */
yyterminate(); /* to stop the parser */
/* Check to see if we've already encountered this
if ( (cclval
= ccllookup( (Char
*) nmstr
)) )
synerr( "bad character class" );
/* We fudge a bit. We know that this ccl will
* soon be numbered as lastccl + 1 by cclinit.
cclinstal( (Char
*) nmstr
, lastccl
+ 1 );
/* Push back everything but the leading bracket
* so the ccl can be rescanned.
strcpy( nmstr
, yytext
+ 1 );
nmstr
[yyleng
- 2] = '\0'; /* chop trailing brace */
if ( ! (nmdefptr
= ndlookup( nmstr
)) )
format_synerr( "undefined definition {%s}",
{ /* push back name surrounded by ()'s */
int len
= strlen( (char *) nmdefptr
);
if ( lex_compat
|| nmdefptr
[0] == '^' ||
(len
> 0 && nmdefptr
[len
- 1] == '$') )
{ /* don't use ()'s after all */
PUT_BACK_STRING((char *) nmdefptr
, 0);
if ( nmdefptr
[0] == '^' )
PUT_BACK_STRING((char *) nmdefptr
, 0);
return (unsigned char) yytext
[0];
return (unsigned char) yytext
[0];
BEGIN(SECT2
); return '>';
*yy_cp
= yy_hold_char
; /* undo effects of setting up yytext */
yy_c_buf_p
= yy_cp
= yy_bp
+ 1;
YY_DO_BEFORE_ACTION
; /* set up yytext again */
BEGIN(CARETISBOL
); return '>';
format_synerr( "bad <start condition>: %s", yytext
);
BEGIN(SECT2
); return '^';
BEGIN(SECT2
); return '"';
synerr( "missing quote" );
*yy_cp
= yy_hold_char
; /* undo effects of setting up yytext */
yy_c_buf_p
= yy_cp
= yy_bp
+ 1;
YY_DO_BEFORE_ACTION
; /* set up yytext again */
*yy_cp
= yy_hold_char
; /* undo effects of setting up yytext */
yy_c_buf_p
= yy_cp
= yy_bp
+ 1;
YY_DO_BEFORE_ACTION
; /* set up yytext again */
*yy_cp
= yy_hold_char
; /* undo effects of setting up yytext */
yy_c_buf_p
= yy_cp
= yy_bp
+ 1;
YY_DO_BEFORE_ACTION
; /* set up yytext again */
BEGIN(SECT2
); return ']';
synerr( "bad character class" );
yylval
= myctoi( yytext
);
BEGIN(SECT2
); return '}';
synerr( "bad character inside {}'s" );
synerr( "bad name in {}'s" ); BEGIN(SECT2
);
synerr( "missing }" ); ++linenum
; BEGIN(SECT2
);
ACTION_ECHO
; BEGIN(ACTION_COMMENT
);
(doing_codeblock
&& indented_code
) )
add_action( "\tYY_BREAK\n" );
/* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */
ACTION_ECHO
; ++bracelevel
;
ACTION_ECHO
; --bracelevel
;
ACTION_ECHO
; BEGIN(ACTION_COMMENT
);
ACTION_ECHO
; /* character constant */
ACTION_ECHO
; BEGIN(ACTION_STRING
);
add_action( "\tYY_BREAK\n" );
ACTION_ECHO
; BEGIN(ACTION
);
case YY_STATE_EOF(ACTION
):
case YY_STATE_EOF(ACTION_COMMENT
):
case YY_STATE_EOF(ACTION_STRING
):
synerr( "EOF encountered inside an action" );
yylval
= myesc( (Char
*) yytext
);
yylval
= myesc( (Char
*) yytext
);
case YY_STATE_EOF(SECT3
):
sectnum
= 0; yyterminate();
format_synerr( "bad character: %s", yytext
);
YY_FATAL_ERROR( "lex scanner jammed" );
case YY_STATE_EOF(INITIAL
):
case YY_STATE_EOF(SECT2
):
case YY_STATE_EOF(CODEBLOCK
):
case YY_STATE_EOF(PICKUPDEF
):
case YY_STATE_EOF(CARETISBOL
):
case YY_STATE_EOF(QUOTE
):
case YY_STATE_EOF(FIRSTCCL
):
case YY_STATE_EOF(RECOVER
):
case YY_STATE_EOF(BRACEERROR
):
case YY_STATE_EOF(C_COMMENT
):
case YY_STATE_EOF(PERCENT_BRACE_ACTION
):
case YY_STATE_EOF(USED_LIST
):
case YY_STATE_EOF(CODEBLOCK_2
):
/* Amount of text matched not including the EOB char. */
int yy_amount_of_matched_text
= yy_cp
- yytext_ptr
- 1;
/* Undo the effects of YY_DO_BEFORE_ACTION. */
if ( yy_current_buffer
->yy_input_file
!= yyin
)
/* This can happen if we scan a file, yywrap() returns
* 1, and then later the user points yyin at a new
* file to resume scanning. We have to assure
* consistency between yy_current_buffer and our
* globals. Here is the right place to do so, because
* this is the first action (other than possibly a
* back-up) that will match for the new input file.
yy_current_buffer
->yy_input_file
= yyin
;
yy_n_chars
= yy_current_buffer
->yy_n_chars
;
/* Note that here we test for yy_c_buf_p "<=" to the position
* of the first EOB in the buffer, since yy_c_buf_p will
* already have been incremented past the NUL character
* (since all states make transitions on EOB to the
* end-of-buffer state). Contrast this with the test
if ( yy_c_buf_p
<= &yy_current_buffer
->yy_ch_buf
[yy_n_chars
] )
{ /* This was really a NUL. */
yy_state_type yy_next_state
;
yy_c_buf_p
= yytext_ptr
+ yy_amount_of_matched_text
;
yy_current_state
= yy_get_previous_state();
/* Okay, we're now positioned to make the NUL
* transition. We couldn't have
* yy_get_previous_state() go ahead and do it
* for us because it doesn't know how to deal
* with the possibility of jamming (and we don't
* want to build jamming into it because then it
yy_next_state
= yy_try_NUL_trans( yy_current_state
);
yy_bp
= yytext_ptr
+ YY_MORE_ADJ
;
yy_current_state
= yy_next_state
;
else switch ( yy_get_next_buffer() )
case EOB_ACT_END_OF_FILE
:
yy_did_buffer_switch_on_eof
= 0;
/* Note: because we've taken care in
* yy_get_next_buffer() to have set up
* yytext, we can now set up
* yy_c_buf_p so that if some total
* hoser (like flex itself) wants to
* call the scanner after we return the
* YY_NULL, it'll still work - another
* YY_NULL will get returned.
yy_c_buf_p
= yytext_ptr
+ YY_MORE_ADJ
;
yy_act
= YY_STATE_EOF(YY_START
);
if ( ! yy_did_buffer_switch_on_eof
)
case EOB_ACT_CONTINUE_SCAN
:
yytext_ptr
+ yy_amount_of_matched_text
;
yy_current_state
= yy_get_previous_state();
yy_bp
= yytext_ptr
+ YY_MORE_ADJ
;
&yy_current_buffer
->yy_ch_buf
[yy_n_chars
];
yy_current_state
= yy_get_previous_state();
yy_bp
= yytext_ptr
+ YY_MORE_ADJ
;
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
/* yy_get_next_buffer - try to read in a new buffer
* Returns a code representing an action:
* EOB_ACT_CONTINUE_SCAN - continue scanning from current position
* EOB_ACT_END_OF_FILE - end of file
static int yy_get_next_buffer()
register char *dest
= yy_current_buffer
->yy_ch_buf
;
register char *source
= yytext_ptr
- 1; /* copy prev. char, too */
register int number_to_move
, i
;
if ( yy_c_buf_p
> &yy_current_buffer
->yy_ch_buf
[yy_n_chars
+ 1] )
"fatal flex scanner internal error--end of buffer missed" );
if ( yy_current_buffer
->yy_fill_buffer
== 0 )
{ /* Don't try to fill the buffer, so this is an EOF. */
if ( yy_c_buf_p
- yytext_ptr
- YY_MORE_ADJ
== 1 )
/* We matched a singled characater, the EOB, so
* treat this as a final EOF.
return EOB_ACT_END_OF_FILE
;
/* We matched some text prior to the EOB, first
return EOB_ACT_LAST_MATCH
;
/* Try to read more data. */
/* First move last chars to start of buffer. */
number_to_move
= yy_c_buf_p
- yytext_ptr
;
for ( i
= 0; i
< number_to_move
; ++i
)
if ( yy_current_buffer
->yy_eof_status
!= EOF_NOT_SEEN
)
/* don't do the read, it's not guaranteed to return an EOF,
yy_current_buffer
->yy_buf_size
- number_to_move
- 1;
while ( num_to_read
<= 0 )
{ /* Not enough room in the buffer - grow it. */
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
/* just a shorter name for the current buffer */
YY_BUFFER_STATE b
= yy_current_buffer
;
int yy_c_buf_p_offset
= yy_c_buf_p
- b
->yy_ch_buf
;
yy_flex_realloc( (void *) b
->yy_ch_buf
,
"fatal error - scanner input buffer overflow" );
yy_c_buf_p
= &b
->yy_ch_buf
[yy_c_buf_p_offset
];
num_to_read
= yy_current_buffer
->yy_buf_size
-
if ( num_to_read
> YY_READ_BUF_SIZE
)
num_to_read
= YY_READ_BUF_SIZE
;
YY_INPUT( (&yy_current_buffer
->yy_ch_buf
[number_to_move
]),
yy_n_chars
, num_to_read
);
if ( number_to_move
- YY_MORE_ADJ
== 1 )
ret_val
= EOB_ACT_END_OF_FILE
;
ret_val
= EOB_ACT_LAST_MATCH
;
yy_current_buffer
->yy_eof_status
= EOF_PENDING
;
ret_val
= EOB_ACT_CONTINUE_SCAN
;
yy_n_chars
+= number_to_move
;
yy_current_buffer
->yy_ch_buf
[yy_n_chars
] = YY_END_OF_BUFFER_CHAR
;
yy_current_buffer
->yy_ch_buf
[yy_n_chars
+ 1] = YY_END_OF_BUFFER_CHAR
;
/* yytext begins at the second character in yy_ch_buf; the first
* character is the one which preceded it before reading in the latest
* buffer; it needs to be kept around in case it's a newline, so
* yy_get_previous_state() will have with '^' rules active.
yytext_ptr
= &yy_current_buffer
->yy_ch_buf
[1];
/* yy_get_previous_state - get the state just before the EOB char was reached */
static yy_state_type
yy_get_previous_state()
register yy_state_type yy_current_state
;
register char *yy_bp
= yytext_ptr
;
yy_current_state
= yy_start
;
for ( yy_cp
= yytext_ptr
+ YY_MORE_ADJ
; yy_cp
< yy_c_buf_p
; ++yy_cp
)
register YY_CHAR yy_c
= (*yy_cp
? yy_ec
[YY_SC_TO_UI(*yy_cp
)] : 1);
if ( yy_accept
[yy_current_state
] )
yy_last_accepting_state
= yy_current_state
;
yy_last_accepting_cpos
= yy_cp
;
while ( yy_chk
[yy_base
[yy_current_state
] + yy_c
] != yy_current_state
)
yy_current_state
= (int) yy_def
[yy_current_state
];
if ( yy_current_state
>= 408 )
yy_c
= yy_meta
[(unsigned int) yy_c
];
yy_current_state
= yy_nxt
[yy_base
[yy_current_state
] + (unsigned int) yy_c
];
/* yy_try_NUL_trans - try to make a transition on the NUL character
* next_state = yy_try_NUL_trans( current_state );
static yy_state_type
yy_try_NUL_trans( yy_state_type yy_current_state
)
static yy_state_type
yy_try_NUL_trans( yy_current_state
)
yy_state_type yy_current_state
;
register char *yy_cp
= yy_c_buf_p
;
register YY_CHAR yy_c
= 1;
if ( yy_accept
[yy_current_state
] )
yy_last_accepting_state
= yy_current_state
;
yy_last_accepting_cpos
= yy_cp
;
while ( yy_chk
[yy_base
[yy_current_state
] + yy_c
] != yy_current_state
)
yy_current_state
= (int) yy_def
[yy_current_state
];
if ( yy_current_state
>= 408 )
yy_c
= yy_meta
[(unsigned int) yy_c
];
yy_current_state
= yy_nxt
[yy_base
[yy_current_state
] + (unsigned int) yy_c
];
yy_is_jam
= (yy_current_state
== 407);
return yy_is_jam
? 0 : yy_current_state
;
static void yyunput( int c
, register char *yy_bp
)
static void yyunput( c
, yy_bp
)
register char *yy_cp
= yy_c_buf_p
;
/* undo effects of setting up yytext */
if ( yy_cp
< yy_current_buffer
->yy_ch_buf
+ 2 )
{ /* need to shift things up to make room */
register int number_to_move
= yy_n_chars
+ 2;
register char *dest
= &yy_current_buffer
->yy_ch_buf
[
yy_current_buffer
->yy_buf_size
+ 2];
&yy_current_buffer
->yy_ch_buf
[number_to_move
];
while ( source
> yy_current_buffer
->yy_ch_buf
)
yy_n_chars
= yy_current_buffer
->yy_buf_size
;
if ( yy_cp
< yy_current_buffer
->yy_ch_buf
+ 2 )
YY_FATAL_ERROR( "flex scanner push-back overflow" );
if ( yy_cp
> yy_bp
&& yy_cp
[-1] == '\n' )
/* Note: the formal parameter *must* be called "yy_bp" for this
* macro to now work correctly.
YY_DO_BEFORE_ACTION
; /* set up yytext again */
*yy_c_buf_p
= yy_hold_char
;
if ( *yy_c_buf_p
== YY_END_OF_BUFFER_CHAR
)
/* yy_c_buf_p now points to the character we want to return.
* If this occurs *before* the EOB characters, then it's a
* valid NUL; if not, then we've hit the end of the buffer.
if ( yy_c_buf_p
< &yy_current_buffer
->yy_ch_buf
[yy_n_chars
] )
/* This was really a NUL. */
switch ( yy_get_next_buffer() )
case EOB_ACT_END_OF_FILE
:
yytext_ptr
+ YY_MORE_ADJ
;
case EOB_ACT_CONTINUE_SCAN
:
yy_c_buf_p
= yytext_ptr
+ YY_MORE_ADJ
;
"unexpected last match in yyinput()" );
"unexpected last match in input()" );
*yy_c_buf_p
= '\0'; /* preserve yytext */
yy_hold_char
= *++yy_c_buf_p
;
void yyrestart( FILE *input_file
)
void yyrestart( input_file
)
if ( ! yy_current_buffer
)
yy_current_buffer
= yy_create_buffer( yyin
, YY_BUF_SIZE
);
yy_init_buffer( yy_current_buffer
, input_file
);
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer
)
void yy_switch_to_buffer( new_buffer
)
YY_BUFFER_STATE new_buffer
;
if ( yy_current_buffer
== new_buffer
)
/* Flush out information for old buffer. */
*yy_c_buf_p
= yy_hold_char
;
yy_current_buffer
->yy_buf_pos
= yy_c_buf_p
;
yy_current_buffer
->yy_n_chars
= yy_n_chars
;
yy_current_buffer
= new_buffer
;
/* We don't actually know whether we did this switch during
* EOF (yywrap()) processing, but the only time this flag
* is looked at is after yywrap() is called, so it's safe
* to go ahead and always set it.
yy_did_buffer_switch_on_eof
= 1;
void yy_load_buffer_state( void )
void yy_load_buffer_state()
yy_n_chars
= yy_current_buffer
->yy_n_chars
;
yytext_ptr
= yy_c_buf_p
= yy_current_buffer
->yy_buf_pos
;
yyin
= yy_current_buffer
->yy_input_file
;
yy_hold_char
= *yy_c_buf_p
;
YY_BUFFER_STATE
yy_create_buffer( FILE *file
, int size
)
YY_BUFFER_STATE
yy_create_buffer( file
, size
)
b
= (YY_BUFFER_STATE
) yy_flex_alloc( sizeof( struct yy_buffer_state
) );
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
/* yy_ch_buf has to be 2 characters longer than the size given because
* we need to put in 2 end-of-buffer characters.
b
->yy_ch_buf
= (char *) yy_flex_alloc( b
->yy_buf_size
+ 2 );
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
yy_init_buffer( b
, file
);
void yy_delete_buffer( YY_BUFFER_STATE b
)
void yy_delete_buffer( b
)
if ( b
== yy_current_buffer
)
yy_current_buffer
= (YY_BUFFER_STATE
) 0;
yy_flex_free( (void *) b
->yy_ch_buf
);
yy_flex_free( (void *) b
);
void yy_init_buffer( YY_BUFFER_STATE b
, FILE *file
)
void yy_init_buffer( b
, file
)
/* We put in the '\n' and start reading from [1] so that an
* initial match-at-newline will be true.
/* We always need two end-of-buffer characters. The first causes
* a transition to the end-of-buffer state. The second causes
b
->yy_ch_buf
[1] = YY_END_OF_BUFFER_CHAR
;
b
->yy_ch_buf
[2] = YY_END_OF_BUFFER_CHAR
;
b
->yy_buf_pos
= &b
->yy_ch_buf
[1];
b
->yy_is_interactive
= file
? isatty( fileno(file
) ) : 0;
b
->yy_eof_status
= EOF_NOT_SEEN
;
static void yy_push_state( int new_state
)
static void yy_push_state( new_state
)
if ( yy_start_stack_ptr
>= yy_start_stack_depth
)
yy_start_stack_depth
+= YY_START_STACK_INCR
;
new_size
= yy_start_stack_depth
* sizeof( int );
yy_start_stack
= (int *) yy_flex_alloc( new_size
);
yy_start_stack
= (int *) yy_flex_realloc(
(void *) yy_start_stack
, new_size
);
"out of memory expanding start-condition stack" );
yy_start_stack
[yy_start_stack_ptr
++] = YY_START
;
static void yy_pop_state()
if ( --yy_start_stack_ptr
< 0 )
YY_FATAL_ERROR( "start-condition stack underflow" );
BEGIN(yy_start_stack
[yy_start_stack_ptr
]);
static int yy_top_state()
return yy_start_stack
[yy_start_stack_ptr
- 1];
static void yy_fatal_error( const char msg
[] )
static void yy_fatal_error( msg
)
(void) fprintf( stderr
, "%s\n", msg
);
/* Redefine yyless() so it works in section 3 code. */
/* Undo effects of setting up yytext. */ \
yytext[yyleng] = yy_hold_char; \
yy_c_buf_p = yytext + n - YY_MORE_ADJ; \
yy_hold_char = *yy_c_buf_p; \
/* Internal utility routines. */
static void yy_flex_strcpy( char *s1
, const char *s2
)
static void yy_flex_strcpy( s1
, s2
)
while ( (*(s1
++) = *(s2
++)) )
static void *yy_flex_alloc( unsigned int size
)
static void *yy_flex_alloc( size
)
return (void *) malloc( size
);
static void *yy_flex_realloc( void *ptr
, unsigned int size
)
static void *yy_flex_realloc( ptr
, size
)
return (void *) realloc( ptr
, size
);
static void yy_flex_free( void *ptr
)
static void yy_flex_free( ptr
)
if ( --num_input_files
> 0 )
set_input_file( *++input_files
);
/* set_input_file - open the given file (if NULL, stdin) for scanning */
void set_input_file( file
)
yyin
= fopen( infilename
, "r" );
lerrsf( "can't open %s", file
);
/* Wrapper routines for accessing the scanner's malloc routines. */
return yy_flex_alloc( size
);
void *flex_realloc( ptr
, size
)
return yy_flex_realloc( ptr
, size
);