/* A lexical scanner generated by flex */
/* scanner skeleton version:
* $Header: /home/horse/u0/vern/flex/RCS/flex.skel,v 2.16 90/08/03 14:09:36 vern Exp Locker: vern $
/* 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) ()
/* we can't get here if it's an ANSI C compiler, or a C++ compiler,
* so it's got to be a K&R compiler, and therefore there's no standard
* place from which to include these definitions
/* amount of stuff to slurp up with each read */
#define YY_READ_BUF_SIZE 8192
/* returned upon end-of-file */
/* copy whatever the last rule matched to the standard output */
/* cast to (char *) is because for 8-bit chars, yytext is (unsigned char *) */
/* this used to be an fputs(), but since the string might contain NUL's,
#define ECHO (void) fwrite( (char *) 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 ( (result = read( fileno(yyin), (char *) buf, max_size )) < 0 ) \
YY_FATAL_ERROR( "read() in flex 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 )
/* report a fatal error */
/* The funky do-while is used to turn this macro definition into
* a single C statement (which needs a semi-colon terminator).
* This avoids problems with code like:
* if ( something_happens )
* YY_FATAL_ERROR( "oops, the something happened" );
* 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 YY_FATAL_ERROR() call.
#define YY_FATAL_ERROR(msg) \
(void) fputs( msg, stderr ); \
(void) putc( '\n', stderr ); \
/* default yywrap function - always treat EOF as an EOF */
/* 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 *
/* 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" */
yy_init_buffer( yy_current_buffer, yyin ); \
yy_load_buffer_state(); \
/* default declaration of generated scanner - a define so the user can
#define YY_DECL int yylex YY_PROTO(( void ))
/* code executed at the end of each rule */
#define YY_END_OF_BUFFER_CHAR 0
#define YY_BUF_SIZE (YY_READ_BUF_SIZE * 2) /* size of default input buffer */
typedef struct yy_buffer_state
*YY_BUFFER_STATE
;
#define YY_CHAR unsigned char
/* 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: /usr/fsys/odin/a/vern/flex/RCS/scan.l,v 2.9 90/06/27 23:48:34 vern Exp $ (LBL)";
#define ACTION_ECHO fprintf( temp_action_file, "%s", yytext )
#define MARK_END_OF_PROLOG fprintf( temp_action_file, "%%%% end of prolog\n" );
(void) strcpy( nmstr, (char *) yytext ); \
#define PUT_BACK_STRING(str, start) \
for ( i = strlen( (char *) (str) ) - 1; i >= start; --i ) \
#define CHECK_REJECT(str) \
if ( all_upper( str ) ) \
#define CHECK_YYMORE(str) \
if ( all_lower( str ) ) \
#define ACTION_COMMENT 16
#define PERCENT_BRACE_ACTION 18
/* 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 EOB_ACT_CONTINUE_SCAN 0
#define EOB_ACT_END_OF_FILE 1
#define EOB_ACT_LAST_MATCH 2
/* 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_DO_BEFORE_ACTION; /* set up yytext again */ \
#define unput(c) yyunput( c, yytext )
YY_CHAR
*yy_ch_buf
; /* input buffer */
YY_CHAR
*yy_buf_pos
; /* current position in input buffer */
/* size of input buffer in bytes, not including room for EOB characters */
/* number of characters read into yy_ch_buf, not including EOB characters */
int yy_eof_status
; /* whether we've seen an EOF on this buffer */
/* "pending" happens when the EOF has been seen but there's still
static YY_BUFFER_STATE yy_current_buffer
;
/* 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 YY_CHAR yy_hold_char
;
static int yy_n_chars
; /* number of characters read into yy_ch_buf */
extern FILE *yyin
, *yyout
;
FILE *yyin
= (FILE *) 0, *yyout
= (FILE *) 0;
#define YY_END_OF_BUFFER 121
typedef int yy_state_type
;
static const short int yy_accept
[342] =
0, 0, 0, 0, 0, 0, 119, 119, 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, 0, 0, 121, 19, 7, 18, 19, 16,
1, 17, 19, 19, 19, 15, 67, 59, 60, 53,
67, 66, 51, 67, 67, 67, 50, 49, 67, 52,
120, 47, 119, 119, 28, 29, 28, 28, 28, 28,
31, 30, 32, 73, 120, 69, 70, 72, 74, 88,
89, 86, 85, 87, 75, 77, 76, 75, 81, 80,
81, 81, 83, 83, 83, 84, 99, 104, 103, 105,
105, 100, 100, 100, 97, 98, 120, 33, 91, 90,
22, 24, 23, 107, 109, 108, 111, 113, 114, 115,
95, 95, 96, 95, 95, 95, 95, 38, 35, 34,
38, 38, 44, 42, 45, 44, 44, 41, 41, 41,
40, 41, 7, 18, 0, 16, 1, 17, 0, 2,
14, 8, 0, 12, 4, 0, 0, 5, 0, 3,
15, 59, 60, 0, 0, 56, 0, 0, 0, 117,
117, 117, 55, 54, 55, 50, 49, 63, 50, 0,
47, 46, 119, 119, 28, 28, 28, 28, 28, 31,
30, 71, 72, 85, 118, 118, 118, 78, 79, 82,
99, 0, 102, 0, 101, 100, 100, 100, 0, 33,
22, 20, 107, 106, 111, 112, 95, 95, 95, 92,
95, 95, 95, 38, 35, 38, 38, 42, 0, 43,
43, 43, 42, 40, 0, 13, 14, 8, 8, 0,
12, 4, 0, 0, 0, 5, 0, 6, 57, 0,
58, 0, 64, 0, 0, 117, 117, 55, 55, 65,
63, 28, 28, 28, 25, 0, 118, 118, 100, 100,
0, 21, 92, 92, 95, 95, 38, 38, 0, 39,
43, 43, 0, 0, 11, 4, 0, 11, 0, 0,
5, 0, 0, 0, 117, 28, 28, 118, 100, 100,
95, 95, 38, 38, 43, 0, 9, 0, 0, 0,
28, 28, 100, 100, 95, 95, 38, 38, 0, 0,
26, 27, 93, 94, 93, 94, 36, 37, 10, 62,
static const YY_CHAR yy_ec
[256] =
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
1, 4, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 2, 1, 5, 6, 7, 8, 1, 9, 10,
10, 11, 10, 12, 13, 10, 14, 15, 15, 15,
15, 15, 15, 15, 15, 15, 15, 1, 1, 16,
1, 17, 10, 1, 23, 24, 25, 26, 27, 28,
22, 22, 22, 29, 30, 22, 31, 32, 33, 30,
22, 34, 35, 36, 37, 22, 22, 38, 39, 22,
18, 19, 20, 21, 22, 1, 23, 24, 25, 26,
27, 28, 22, 22, 22, 29, 30, 22, 31, 32,
33, 30, 22, 34, 35, 36, 37, 22, 22, 38,
39, 22, 40, 41, 42, 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 YY_CHAR yy_meta
[43] =
1, 2, 3, 2, 4, 1, 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, 11, 11, 5,
static const short int yy_base
[405] =
0, 42, 83, 123, 1401, 1400, 1399, 1398, 164, 1391,
101, 104, 206, 0, 1377, 1376, 106, 107, 93, 110,
132, 133, 137, 246, 266, 0, 1382, 1378, 113, 117,
89, 247, 249, 250, 306, 307, 326, 0, 367, 370,
0, 0, 373, 376, 1380, 1405, 158, 1405, 1343, 0,
252, 1405, 1360, 402, 1351, 0, 1405, 385, 1405, 1405,
260, 1405, 1345, 1338, 76, 442, 483, 1405, 103, 1405,
1353, 0, 1348, 1405, 0, 1405, 0, 1323, 1294, 1290,
0, 311, 1405, 1405, 1405, 1405, 1310, 0, 1405, 1405,
1405, 1405, 1300, 1405, 1405, 1405, 1405, 367, 1405, 1405,
370, 1301, 1405, 0, 375, 1405, 0, 1405, 1405, 305,
1302, 0, 1274, 1250, 1405, 1405, 1282, 1405, 1405, 1405,
0, 1405, 1270, 0, 1405, 1269, 0, 1405, 1405, 0,
0, 314, 1405, 1199, 0, 1201, 1176, 0, 315, 1405,
1187, 1171, 1405, 319, 1405, 1173, 379, 1405, 396, 1169,
1189, 381, 412, 1405, 418, 0, 486, 1405, 1193, 1405,
395, 426, 429, 490, 0, 493, 351, 0, 1180, 1405,
0, 496, 1405, 1136, 1168, 1405, 1143, 383, 403, 1405,
1145, 0, 0, 1405, 537, 499, 1405, 0, 1405, 1154,
0, 1405, 1144, 1405, 0, 0, 1115, 1095, 579, 0,
504, 1405, 0, 1110, 1405, 1097, 0, 1405, 1405, 1405,
0, 496, 1405, 0, 1405, 0, 1075, 1072, 1099, 1405,
0, 1093, 0, 1405, 0, 1405, 0, 508, 1047, 621,
0, 1047, 1032, 0, 507, 1029, 1026, 515, 518, 1405,
1029, 0, 521, 1024, 524, 1405, 527, 0, 528, 531,
662, 0, 665, 1001, 1007, 0, 1030, 1405, 1405, 1022,
1405, 966, 1405, 655, 661, 983, 0, 0, 0, 1405,
0, 946, 934, 0, 1405, 957, 940, 0, 927, 891,
920, 1405, 0, 0, 679, 672, 677, 670, 669, 1405,
687, 0, 698, 675, 1405, 0, 688, 1405, 665, 670,
0, 667, 678, 684, 1405, 669, 631, 1405, 599, 484,
468, 411, 399, 378, 1405, 380, 1405, 303, 494, 663,
228, 230, 215, 131, 111, 111, 96, 90, 69, 72,
0, 0, 0, 0, 0, 0, 0, 0, 1405, 1405,
1405, 712, 725, 738, 751, 764, 777, 790, 803, 816,
829, 842, 855, 868, 881, 894, 907, 914, 926, 939,
945, 957, 970, 983, 996, 1009, 1022, 1029, 1041, 1048,
1060, 1073, 1086, 1099, 1109, 1116, 1128, 1141, 1154, 1167,
1180, 1193, 1200, 1212, 1225, 1238, 1241, 1243, 1255, 1268,
1274, 1286, 1298, 1304, 1316, 1322, 1334, 1341, 1347, 1352,
static const short int yy_def
[405] =
341, 341, 342, 342, 343, 343, 344, 344, 341, 9,
345, 345, 341, 13, 346, 346, 347, 347, 348, 348,
349, 349, 350, 350, 341, 25, 351, 351, 346, 346,
352, 352, 353, 353, 354, 354, 341, 37, 355, 355,
37, 37, 356, 357, 341, 341, 341, 341, 341, 358,
341, 341, 359, 360, 341, 361, 341, 341, 341, 341,
341, 341, 341, 362, 363, 341, 341, 341, 341, 341,
364, 365, 366, 341, 367, 341, 368, 368, 368, 367,
369, 341, 341, 341, 341, 341, 341, 370, 341, 341,
341, 341, 341, 341, 341, 341, 341, 363, 341, 341,
371, 372, 341, 373, 363, 341, 374, 341, 341, 375,
341, 376, 376, 376, 341, 341, 377, 341, 341, 341,
378, 341, 341, 379, 341, 341, 380, 341, 341, 381,
382, 382, 341, 382, 383, 383, 383, 384, 341, 341,
384, 384, 341, 341, 341, 341, 385, 341, 341, 341,
341, 385, 341, 341, 341, 358, 341, 341, 359, 341,
341, 386, 341, 341, 387, 341, 341, 388, 389, 341,
361, 341, 341, 341, 390, 341, 341, 362, 362, 341,
341, 391, 392, 341, 341, 341, 341, 393, 341, 364,
365, 341, 366, 341, 367, 368, 368, 368, 341, 369,
341, 341, 370, 341, 341, 341, 394, 341, 341, 341,
374, 375, 341, 375, 341, 376, 376, 376, 377, 341,
378, 395, 379, 341, 380, 341, 382, 382, 382, 341,
383, 383, 383, 384, 341, 384, 384, 341, 341, 341,
341, 396, 341, 341, 341, 341, 341, 386, 386, 397,
341, 398, 397, 341, 341, 399, 389, 341, 341, 390,
341, 341, 341, 362, 362, 341, 400, 392, 185, 341,
393, 368, 368, 199, 341, 401, 341, 402, 376, 376,
395, 341, 230, 403, 383, 383, 384, 384, 341, 341,
341, 404, 397, 397, 341, 398, 397, 341, 341, 341,
399, 341, 362, 265, 341, 368, 368, 341, 376, 376,
383, 383, 384, 384, 341, 341, 341, 341, 362, 362,
368, 368, 376, 376, 383, 383, 384, 384, 341, 341,
368, 368, 376, 376, 383, 383, 384, 384, 341, 341,
0, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
static const short int yy_nxt
[1448] =
46, 47, 48, 47, 46, 46, 46, 49, 46, 46,
46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
46, 50, 50, 50, 50, 50, 50, 50, 50, 50,
50, 50, 50, 50, 50, 50, 50, 50, 50, 46,
46, 46, 46, 51, 52, 51, 46, 53, 46, 54,
46, 46, 46, 46, 46, 55, 46, 46, 46, 46,
46, 46, 46, 56, 56, 56, 56, 56, 56, 56,
56, 56, 56, 56, 56, 56, 56, 56, 56, 56,
56, 46, 46, 46, 58, 59, 58, 60, 340, 61,
181, 122, 62, 62, 339, 96, 62, 97, 63, 123,
64, 65, 82, 83, 82, 82, 83, 82, 91, 91,
188, 98, 96, 182, 97, 119, 338, 92, 92, 119,
93, 93, 66, 62, 67, 68, 67, 60, 98, 61,
69, 337, 62, 62, 85, 85, 62, 336, 63, 85,
64, 65, 189, 70, 100, 100, 335, 94, 94, 104,
101, 101, 102, 102, 120, 105, 106, 334, 120, 153,
154, 153, 66, 62, 75, 75, 76, 75, 75, 75,
75, 75, 75, 75, 75, 75, 75, 75, 75, 75,
75, 75, 75, 75, 75, 77, 77, 77, 77, 77,
77, 77, 77, 77, 77, 77, 77, 78, 77, 77,
77, 77, 79, 75, 75, 75, 84, 84, 85, 84,
84, 84, 84, 84, 84, 84, 84, 86, 84, 84,
84, 84, 87, 84, 84, 84, 84, 88, 88, 88,
88, 88, 88, 88, 88, 88, 88, 88, 88, 88,
88, 88, 88, 88, 88, 84, 84, 84, 85, 122,
333, 125, 125, 157, 158, 157, 332, 123, 104, 126,
126, 176, 176, 331, 105, 106, 107, 107, 108, 107,
109, 107, 107, 107, 110, 107, 107, 107, 107, 111,
107, 107, 107, 107, 107, 107, 107, 112, 112, 112,
112, 112, 112, 112, 112, 112, 112, 112, 112, 113,
112, 112, 112, 112, 114, 115, 107, 116, 128, 128,
129, 129, 201, 213, 201, 228, 235, 228, 235, 330,
238, 229, 238, 214, 130, 130, 131, 132, 133, 132,
131, 131, 131, 134, 131, 131, 131, 131, 131, 131,
131, 131, 131, 131, 131, 131, 131, 135, 135, 135,
135, 135, 135, 135, 135, 135, 135, 135, 135, 136,
135, 135, 135, 135, 137, 131, 131, 131, 139, 140,
139, 139, 140, 139, 144, 145, 144, 149, 145, 149,
146, 181, 254, 150, 206, 255, 172, 173, 172, 181,
151, 147, 174, 241, 152, 241, 247, 243, 247, 243,
141, 179, 263, 141, 182, 142, 329, 207, 142, 162,
244, 328, 182, 153, 154, 153, 242, 264, 242, 245,
246, 245, 178, 327, 163, 175, 164, 249, 163, 249,
250, 163, 250, 163, 163, 164, 165, 166, 167, 168,
265, 169, 183, 183, 326, 183, 183, 183, 183, 183,
183, 183, 183, 183, 183, 183, 184, 183, 183, 183,
183, 183, 183, 185, 185, 185, 185, 185, 185, 185,
185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
185, 183, 183, 183, 186, 187, 186, 157, 158, 157,
174, 251, 325, 251, 253, 246, 253, 172, 173, 172,
186, 187, 186, 174, 213, 201, 174, 201, 235, 228,
235, 228, 179, 263, 214, 229, 238, 324, 238, 289,
290, 289, 243, 175, 243, 245, 246, 245, 247, 249,
247, 249, 294, 295, 294, 244, 175, 268, 268, 175,
268, 268, 268, 268, 268, 268, 268, 268, 268, 269,
268, 269, 268, 268, 268, 268, 268, 268, 269, 269,
269, 269, 269, 269, 269, 269, 269, 269, 269, 269,
269, 269, 269, 269, 269, 269, 268, 268, 270, 274,
274, 275, 274, 274, 274, 274, 274, 274, 274, 274,
274, 274, 274, 274, 274, 274, 274, 274, 274, 274,
276, 276, 276, 276, 276, 276, 276, 276, 276, 276,
276, 276, 276, 276, 276, 276, 276, 276, 274, 274,
274, 283, 283, 323, 283, 283, 283, 283, 283, 283,
283, 283, 283, 283, 283, 283, 283, 283, 283, 283,
283, 283, 284, 284, 284, 284, 284, 284, 284, 284,
284, 284, 284, 284, 284, 284, 284, 284, 284, 284,
283, 283, 283, 251, 322, 251, 297, 298, 297, 303,
289, 290, 289, 179, 263, 304, 294, 295, 294, 179,
263, 179, 263, 304, 304, 304, 304, 304, 304, 297,
298, 297, 319, 321, 318, 317, 179, 263, 320, 316,
295, 240, 314, 313, 312, 311, 320, 320, 320, 320,
320, 320, 57, 57, 57, 57, 57, 57, 57, 57,
57, 57, 57, 57, 57, 71, 71, 71, 71, 71,
71, 71, 71, 71, 71, 71, 71, 71, 73, 73,
73, 73, 73, 73, 73, 73, 73, 73, 73, 73,
73, 81, 81, 81, 81, 81, 81, 81, 81, 81,
81, 81, 81, 81, 85, 85, 85, 85, 85, 85,
85, 85, 85, 85, 85, 85, 85, 90, 90, 90,
90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
95, 95, 95, 95, 95, 95, 95, 95, 95, 95,
95, 95, 95, 99, 99, 99, 99, 99, 99, 99,
99, 99, 99, 99, 99, 99, 103, 103, 103, 103,
103, 103, 103, 103, 103, 103, 103, 103, 103, 117,
117, 117, 117, 117, 117, 117, 117, 117, 117, 117,
117, 117, 121, 121, 121, 121, 121, 121, 121, 121,
121, 121, 121, 121, 121, 124, 124, 124, 124, 124,
124, 124, 124, 124, 124, 124, 124, 124, 127, 127,
127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
127, 138, 138, 138, 138, 138, 138, 138, 138, 138,
138, 138, 138, 138, 143, 143, 143, 143, 143, 143,
143, 143, 143, 143, 143, 143, 143, 148, 148, 148,
148, 148, 148, 148, 148, 148, 148, 148, 148, 148,
156, 156, 282, 310, 156, 156, 159, 159, 159, 159,
159, 159, 159, 159, 159, 159, 159, 159, 159, 161,
161, 161, 161, 161, 161, 161, 161, 161, 161, 161,
161, 171, 171, 309, 205, 171, 171, 178, 178, 275,
178, 178, 178, 178, 178, 178, 307, 178, 178, 178,
180, 180, 306, 180, 180, 180, 180, 180, 180, 180,
180, 180, 180, 190, 190, 190, 190, 190, 190, 190,
190, 190, 190, 190, 190, 190, 192, 180, 302, 192,
192, 192, 192, 192, 192, 192, 192, 192, 192, 193,
193, 193, 193, 193, 193, 193, 193, 193, 193, 193,
193, 193, 195, 195, 261, 195, 195, 195, 195, 195,
195, 195, 258, 300, 195, 196, 196, 299, 244, 196,
196, 200, 200, 291, 200, 200, 200, 200, 200, 200,
200, 200, 200, 200, 203, 203, 288, 287, 203, 203,
205, 205, 286, 205, 205, 205, 205, 205, 205, 205,
205, 205, 205, 208, 208, 285, 208, 208, 208, 208,
208, 208, 208, 208, 208, 208, 210, 210, 230, 210,
210, 210, 210, 210, 210, 282, 210, 210, 210, 211,
211, 220, 280, 279, 211, 211, 211, 211, 211, 212,
212, 277, 212, 212, 212, 212, 212, 212, 212, 212,
212, 212, 216, 216, 204, 273, 216, 216, 219, 219,
219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
219, 221, 221, 272, 221, 221, 194, 221, 221, 221,
221, 221, 221, 221, 223, 223, 191, 223, 223, 266,
223, 223, 223, 223, 223, 223, 223, 225, 225, 262,
261, 225, 225, 225, 225, 259, 225, 225, 225, 225,
226, 226, 258, 226, 226, 226, 226, 226, 226, 226,
226, 226, 226, 227, 227, 160, 227, 227, 227, 227,
227, 227, 227, 244, 239, 227, 231, 231, 239, 237,
231, 231, 234, 236, 233, 234, 234, 234, 234, 234,
234, 234, 234, 234, 234, 240, 240, 232, 240, 240,
240, 240, 240, 240, 240, 240, 240, 240, 248, 248,
230, 248, 248, 248, 248, 248, 248, 248, 248, 248,
248, 252, 252, 256, 256, 257, 257, 257, 257, 257,
257, 257, 257, 257, 257, 257, 257, 257, 260, 260,
260, 260, 260, 260, 260, 260, 260, 260, 260, 260,
260, 267, 224, 222, 220, 267, 268, 268, 218, 268,
268, 268, 268, 268, 268, 268, 268, 268, 271, 271,
217, 271, 271, 271, 271, 271, 271, 271, 271, 271,
271, 278, 215, 209, 204, 278, 281, 281, 281, 281,
281, 281, 281, 281, 281, 281, 281, 281, 281, 292,
202, 199, 198, 292, 293, 293, 293, 293, 293, 293,
293, 293, 293, 293, 293, 293, 293, 296, 296, 197,
194, 296, 296, 301, 301, 191, 179, 301, 301, 305,
177, 170, 160, 305, 276, 276, 276, 276, 276, 276,
276, 276, 276, 276, 276, 276, 276, 308, 155, 341,
118, 308, 284, 284, 118, 284, 284, 284, 284, 284,
284, 284, 284, 284, 284, 315, 89, 89, 80, 315,
74, 74, 72, 72, 45, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341
static const short int yy_chk
[1448] =
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, 3, 3, 3, 3, 330, 3,
65, 31, 3, 3, 329, 19, 3, 19, 3, 31,
3, 3, 11, 11, 11, 12, 12, 12, 17, 18,
69, 19, 20, 65, 20, 29, 328, 17, 18, 30,
17, 18, 3, 3, 4, 4, 4, 4, 20, 4,
4, 327, 4, 4, 21, 22, 4, 326, 4, 23,
4, 4, 69, 4, 21, 22, 325, 17, 18, 23,
21, 22, 21, 22, 29, 23, 23, 324, 30, 47,
47, 47, 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, 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, 24, 32,
323, 33, 34, 51, 51, 51, 322, 32, 24, 33,
34, 61, 61, 321, 24, 24, 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, 35, 36,
35, 36, 82, 110, 82, 132, 139, 132, 139, 318,
144, 132, 144, 110, 35, 36, 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, 43, 43, 43, 44, 44, 44,
43, 98, 167, 44, 101, 167, 58, 58, 58, 105,
44, 43, 58, 147, 44, 152, 161, 149, 161, 149,
39, 178, 178, 40, 98, 39, 316, 101, 40, 54,
149, 314, 105, 153, 153, 153, 147, 179, 152, 155,
155, 155, 179, 313, 54, 58, 54, 162, 54, 162,
163, 54, 163, 54, 54, 54, 54, 54, 54, 54,
179, 54, 66, 66, 312, 66, 66, 66, 66, 66,
66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
66, 66, 66, 66, 66, 66, 66, 66, 66, 66,
66, 66, 66, 66, 67, 67, 67, 157, 157, 157,
67, 164, 311, 164, 166, 166, 166, 172, 172, 172,
186, 186, 186, 172, 212, 201, 186, 201, 235, 228,
235, 228, 319, 319, 212, 228, 238, 310, 238, 239,
239, 239, 243, 67, 243, 245, 245, 245, 247, 249,
247, 249, 250, 250, 250, 243, 172, 185, 185, 186,
185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
185, 185, 185, 185, 185, 185, 185, 185, 185, 185,
185, 185, 185, 185, 185, 185, 185, 185, 185, 199,
199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
199, 199, 199, 199, 199, 199, 199, 199, 199, 199,
199, 230, 230, 309, 230, 230, 230, 230, 230, 230,
230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
230, 230, 230, 230, 230, 230, 230, 230, 230, 230,
230, 230, 230, 251, 307, 251, 253, 253, 253, 264,
289, 289, 289, 264, 264, 265, 294, 294, 294, 265,
265, 320, 320, 265, 265, 265, 265, 265, 265, 297,
297, 297, 303, 306, 302, 300, 303, 303, 304, 299,
293, 291, 288, 287, 286, 285, 304, 304, 304, 304,
304, 304, 342, 342, 342, 342, 342, 342, 342, 342,
342, 342, 342, 342, 342, 343, 343, 343, 343, 343,
343, 343, 343, 343, 343, 343, 343, 343, 344, 344,
344, 344, 344, 344, 344, 344, 344, 344, 344, 344,
344, 345, 345, 345, 345, 345, 345, 345, 345, 345,
345, 345, 345, 345, 346, 346, 346, 346, 346, 346,
346, 346, 346, 346, 346, 346, 346, 347, 347, 347,
347, 347, 347, 347, 347, 347, 347, 347, 347, 347,
348, 348, 348, 348, 348, 348, 348, 348, 348, 348,
348, 348, 348, 349, 349, 349, 349, 349, 349, 349,
349, 349, 349, 349, 349, 349, 350, 350, 350, 350,
350, 350, 350, 350, 350, 350, 350, 350, 350, 351,
351, 351, 351, 351, 351, 351, 351, 351, 351, 351,
351, 351, 352, 352, 352, 352, 352, 352, 352, 352,
352, 352, 352, 352, 352, 353, 353, 353, 353, 353,
353, 353, 353, 353, 353, 353, 353, 353, 354, 354,
354, 354, 354, 354, 354, 354, 354, 354, 354, 354,
354, 355, 355, 355, 355, 355, 355, 355, 355, 355,
355, 355, 355, 355, 356, 356, 356, 356, 356, 356,
356, 356, 356, 356, 356, 356, 356, 357, 357, 357,
357, 357, 357, 357, 357, 357, 357, 357, 357, 357,
358, 358, 281, 280, 358, 358, 359, 359, 359, 359,
359, 359, 359, 359, 359, 359, 359, 359, 359, 360,
360, 360, 360, 360, 360, 360, 360, 360, 360, 360,
360, 361, 361, 279, 277, 361, 361, 362, 362, 276,
362, 362, 362, 362, 362, 362, 273, 362, 362, 362,
363, 363, 272, 363, 363, 363, 363, 363, 363, 363,
363, 363, 363, 364, 364, 364, 364, 364, 364, 364,
364, 364, 364, 364, 364, 364, 365, 266, 262, 365,
365, 365, 365, 365, 365, 365, 365, 365, 365, 366,
366, 366, 366, 366, 366, 366, 366, 366, 366, 366,
366, 366, 367, 367, 260, 367, 367, 367, 367, 367,
367, 367, 257, 255, 367, 368, 368, 254, 244, 368,
368, 369, 369, 241, 369, 369, 369, 369, 369, 369,
369, 369, 369, 369, 370, 370, 237, 236, 370, 370,
371, 371, 233, 371, 371, 371, 371, 371, 371, 371,
371, 371, 371, 372, 372, 232, 372, 372, 372, 372,
372, 372, 372, 372, 372, 372, 373, 373, 229, 373,
373, 373, 373, 373, 373, 222, 373, 373, 373, 374,
374, 219, 218, 217, 374, 374, 374, 374, 374, 375,
375, 206, 375, 375, 375, 375, 375, 375, 375, 375,
375, 375, 376, 376, 204, 198, 376, 376, 377, 377,
377, 377, 377, 377, 377, 377, 377, 377, 377, 377,
377, 378, 378, 197, 378, 378, 193, 378, 378, 378,
378, 378, 378, 378, 379, 379, 190, 379, 379, 181,
379, 379, 379, 379, 379, 379, 379, 380, 380, 177,
175, 380, 380, 380, 380, 174, 380, 380, 380, 380,
381, 381, 169, 381, 381, 381, 381, 381, 381, 381,
381, 381, 381, 382, 382, 159, 382, 382, 382, 382,
382, 382, 382, 151, 150, 382, 383, 383, 146, 142,
383, 383, 384, 141, 137, 384, 384, 384, 384, 384,
384, 384, 384, 384, 384, 385, 385, 136, 385, 385,
385, 385, 385, 385, 385, 385, 385, 385, 386, 386,
134, 386, 386, 386, 386, 386, 386, 386, 386, 386,
386, 387, 387, 388, 388, 389, 389, 389, 389, 389,
389, 389, 389, 389, 389, 389, 389, 389, 390, 390,
390, 390, 390, 390, 390, 390, 390, 390, 390, 390,
390, 391, 126, 123, 117, 391, 392, 392, 114, 392,
392, 392, 392, 392, 392, 392, 392, 392, 393, 393,
113, 393, 393, 393, 393, 393, 393, 393, 393, 393,
393, 394, 111, 102, 93, 394, 395, 395, 395, 395,
395, 395, 395, 395, 395, 395, 395, 395, 395, 396,
87, 80, 79, 396, 397, 397, 397, 397, 397, 397,
397, 397, 397, 397, 397, 397, 397, 398, 398, 78,
73, 398, 398, 399, 399, 71, 64, 399, 399, 400,
63, 55, 53, 400, 401, 401, 401, 401, 401, 401,
401, 401, 401, 401, 401, 401, 401, 402, 49, 45,
28, 402, 403, 403, 27, 403, 403, 403, 403, 403,
403, 403, 403, 403, 403, 404, 16, 15, 10, 404,
8, 7, 6, 5, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341, 341, 341, 341,
341, 341, 341, 341, 341, 341, 341
static yy_state_type yy_last_accepting_state
;
static YY_CHAR
*yy_last_accepting_cpos
;
/* the intent behind this definition is that it'll catch
* any uses of REJECT which flex missed
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
/* these variables are all declared out here so that section 3 code can
/* points to current character in buffer */
static YY_CHAR
*yy_c_buf_p
= (YY_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 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 yyunput
YY_PROTO(( YY_CHAR c
, YY_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
));
#define yy_new_buffer yy_create_buffer
static int yyinput
YY_PROTO(( void ));
static int input
YY_PROTO(( void ));
register yy_state_type yy_current_state
;
register YY_CHAR
*yy_cp
, *yy_bp
;
static int bracelevel
, didadef
;
int i
, indented_code
, checking_used
, new_xlation
;
int doing_codeblock
= false;
Char nmdef
[MAXLINE
], myesc();
yy_start
= 1; /* first start state */
yy_init_buffer( yy_current_buffer
, yyin
);
yy_current_buffer
= 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 the
yy_current_state
= yy_start
;
register YY_CHAR yy_c
= yy_ec
[*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
= yy_def
[yy_current_state
];
if ( yy_current_state
>= 342 )
yy_current_state
= yy_nxt
[yy_base
[yy_current_state
] + yy_c
];
while ( yy_current_state
!= 341 );
yy_cp
= yy_last_accepting_cpos
;
yy_current_state
= yy_last_accepting_state
;
yy_act
= yy_accept
[yy_current_state
];
do_action
: /* this label is used only to access EOF actions */
case 0: /* must backtrack */
/* 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
);
++linenum
; /* treat as a comment */
line_directive_out( stdout
);
line_directive_out( stdout
);
pinpoint_message( "warning - %%used/%%unused have been deprecated" );
checking_used
= REALLY_USED
; BEGIN(USED_LIST
);
checking_used
= REALLY_NOT_USED
; BEGIN(USED_LIST
);
pinpoint_message( "warning - %%used/%%unused have been deprecated" );
checking_used
= REALLY_NOT_USED
; BEGIN(USED_LIST
);
"old-style lex command at line %d ignored:\n\t%s",
/* ignore old lex directive */
(int *) malloc( sizeof( int ) * (unsigned) csize
);
"dynamic memory failure building %t table" );
for ( i
= 0; i
< csize
; ++i
)
synerr( "unrecognized '%' directive" );
(void) strcpy( nmstr
, (char *) yytext
);
++linenum
; /* allows blank lines in section 1 */
++linenum
; return ( '\n' );
synerr( "illegal character" ); BEGIN(RECOVER
);
++linenum
; ECHO
; BEGIN(INITIAL
);
++linenum
; BEGIN(INITIAL
);
ECHO
; CHECK_REJECT(yytext
);
ECHO
; CHECK_YYMORE(yytext
);
/* separates name and definition */
(void) strcpy( (char *) nmdef
, (char *) yytext
);
for ( i
= strlen( (char *) nmdef
) - 1;
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
;
synerr( "unrecognized %used/%unused construct" );
if ( all_lower( yytext
) )
yymore_really_used
= checking_used
;
synerr( "unrecognized %used/%unused construct" );
synerr( "unrecognized %used/%unused construct" );
++linenum
; BEGIN(INITIAL
);
++num_xlations
; new_xlation
= true;
synerr( "bad row in translation table" );
xlation
[myesc( yytext
)] =
(new_xlation
? num_xlations
: -num_xlations
);
(new_xlation
? num_xlations
: -num_xlations
);
*yy_cp
= yy_hold_char
; /* undo effects of setting up yytext */
YY_DO_BEFORE_ACTION
; /* set up yytext again */
case YY_STATE_EOF(SECT2PROLOG
):
MARK_END_OF_PROLOG
; yyterminate();
++linenum
; /* allow blank lines in section 2 */
indented_code
= (yytext
[0] != '%');
BEGIN(SC
); return ( '<' );
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 */
BEGIN(NUM
); 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(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;
*yy_cp
= yy_hold_char
; /* undo effects of setting up yytext */
YY_DO_BEFORE_ACTION
; /* set up yytext again */
continued_action
= false;
++linenum
; return ( '\n' );
return ( EOF
); /* to stop the parser */
(void) strcpy( nmstr
, (char *) yytext
);
/* check to see if we've already encountered this ccl */
if ( (cclval
= ccllookup( (Char
*) nmstr
)) )
/* 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
PUT_BACK_STRING((Char
*) nmstr
, 1);
(void) strcpy( nmstr
, (char *) yytext
);
nmstr
[yyleng
- 1] = '\0'; /* chop trailing brace */
/* lookup from "nmstr + 1" to chop leading brace */
if ( ! (nmdefptr
= ndlookup( nmstr
+ 1 )) )
synerr( "undefined {name}" );
{ /* push back name surrounded by ()'s */
PUT_BACK_STRING(nmdefptr
, 0);
++linenum
; return ( '\n' );
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 ( '>' );
synerr( "bad start condition name" );
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 */
BEGIN(CCL
); 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(CCL
); yylval
= '-'; return ( CHAR
);
*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 ( ']' );
yylval
= myctoi( yytext
);
BEGIN(SECT2
); return ( '}' );
synerr( "bad character inside {}'s" );
synerr( "bad name in {}'s" ); BEGIN(SECT2
);
synerr( "missing }" ); ++linenum
; BEGIN(SECT2
);
(doing_codeblock
&& indented_code
) )
fputs( "\tYY_BREAK\n", temp_action_file
);
/* 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
);
fputs( "\tYY_BREAK\n", temp_action_file
);
ACTION_ECHO
; BEGIN(ACTION
);
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( yytext
);
yylval
= myesc( yytext
);
YY_FATAL_ERROR( "flex scanner jammed" );
case YY_STATE_EOF(INITIAL
):
case YY_STATE_EOF(SECT2
):
case YY_STATE_EOF(SECT3
):
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
):
case YY_STATE_EOF(XLATION
):
/* amount of text matched not including the EOB char */
int yy_amount_of_matched_text
= yy_cp
- yytext
- 1;
/* undo the effects of YY_DO_BEFORE_ACTION */
/* 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 in yyinput().
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
+ 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 will run more slowly)
yy_next_state
= yy_try_NUL_trans( yy_current_state
);
yy_bp
= yytext
+ YY_MORE_ADJ
;
yy_current_state
= yy_next_state
;
yy_cp
= yy_last_accepting_cpos
;
yy_current_state
= yy_last_accepting_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
yy_c_buf_p
= yytext
+ YY_MORE_ADJ
;
yy_act
= YY_STATE_EOF((yy_start
- 1) / 2);
if ( ! yy_did_buffer_switch_on_eof
)
case EOB_ACT_CONTINUE_SCAN
:
yy_c_buf_p
= yytext
+ yy_amount_of_matched_text
;
yy_current_state
= yy_get_previous_state();
yy_bp
= yytext
+ YY_MORE_ADJ
;
&yy_current_buffer
->yy_ch_buf
[yy_n_chars
];
yy_current_state
= yy_get_previous_state();
yy_bp
= yytext
+ YY_MORE_ADJ
;
printf( "action # %d\n", yy_act
);
"fatal flex scanner internal error--no action found" );
/* yy_get_next_buffer - try to read in a new buffer
* int yy_get_next_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 YY_CHAR
*dest
= yy_current_buffer
->yy_ch_buf
;
register YY_CHAR
*source
= yytext
- 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" );
/* try to read more data */
/* first move last chars to start of buffer */
number_to_move
= yy_c_buf_p
- yytext
;
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,
int num_to_read
= yy_current_buffer
->yy_buf_size
- number_to_move
- 1;
if ( num_to_read
> YY_READ_BUF_SIZE
)
num_to_read
= YY_READ_BUF_SIZE
;
else if ( num_to_read
<= 0 )
YY_FATAL_ERROR( "fatal error - scanner input buffer overflow" );
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
;
yy_current_buffer
->yy_eof_status
= EOF_DONE
;
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
= &yy_current_buffer
->yy_ch_buf
[1];
/* yy_get_previous_state - get the state just before the EOB char was reached
* yy_state_type yy_get_previous_state();
static yy_state_type
yy_get_previous_state()
register yy_state_type yy_current_state
;
register YY_CHAR
*yy_bp
= yytext
;
yy_current_state
= yy_start
;
for ( yy_cp
= yytext
+ YY_MORE_ADJ
; yy_cp
< yy_c_buf_p
; ++yy_cp
)
register YY_CHAR yy_c
= (*yy_cp
? yy_ec
[*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
= yy_def
[yy_current_state
];
if ( yy_current_state
>= 342 )
yy_current_state
= yy_nxt
[yy_base
[yy_current_state
] + yy_c
];
return ( yy_current_state
);
/* 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( register yy_state_type yy_current_state
)
static yy_state_type
yy_try_NUL_trans( yy_current_state
)
register yy_state_type yy_current_state
;
register YY_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
= yy_def
[yy_current_state
];
if ( yy_current_state
>= 342 )
yy_current_state
= yy_nxt
[yy_base
[yy_current_state
] + yy_c
];
yy_is_jam
= (yy_current_state
== 341);
return ( yy_is_jam
? 0 : yy_current_state
);
static void yyunput( YY_CHAR c
, register YY_CHAR
*yy_bp
)
static void yyunput( c
, yy_bp
)
register YY_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; /* +2 for EOB chars */
&yy_current_buffer
->yy_ch_buf
[yy_current_buffer
->yy_buf_size
+ 2];
register YY_CHAR
*source
=
&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_CHAR
*yy_cp
= yy_c_buf_p
;
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
:
yy_c_buf_p
= yytext
+ YY_MORE_ADJ
;
case EOB_ACT_CONTINUE_SCAN
:
yy_c_buf_p
= yytext
+ YY_MORE_ADJ
;
YY_FATAL_ERROR( "unexpected last match in yyinput()" );
YY_FATAL_ERROR( "unexpected last match in input()" );
yy_hold_char
= *++yy_c_buf_p
;
void yyrestart( FILE *input_file
)
void yyrestart( input_file
)
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
= 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
) malloc( 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
= (YY_CHAR
*) malloc( (unsigned) (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;
free( (char *) b
->yy_ch_buf
);
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_eof_status
= EOF_NOT_SEEN
;
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
);