freebsd-nq/usr.bin/lex/initscan.c
Geoff Rehmet 8387c24d79 Flex version 2.4.7 from LBL
Reviewed by:	Geoff.
1994-08-24 13:10:34 +00:00

2724 lines
76 KiB
C

/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /home/daffy/u0/vern/flex/flex-2.4.7/RCS/flex.skl,v 1.2 94/08/03 11:13:24 vern Exp $
*/
#define FLEX_SCANNER
#include <stdio.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
#ifdef c_plusplus
#ifndef __cplusplus
#define __cplusplus
#endif
#endif
#ifdef __cplusplus
#include <stdlib.h>
#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
/* The "const" storage-class-modifier is valid. */
#define YY_USE_CONST
#else /* ! __cplusplus */
#ifdef __STDC__
#define YY_USE_PROTOS
#define YY_USE_CONST
#endif /* __STDC__ */
#endif /* ! __cplusplus */
#ifdef __TURBOC__
#define YY_USE_CONST
#endif
#ifndef YY_USE_CONST
#ifndef const
#define const
#endif
#endif
#ifdef YY_USE_PROTOS
#define YY_PROTO(proto) proto
#else
#define YY_PROTO(proto) ()
#endif
/* Returned upon end-of-file. */
#define YY_NULL 0
/* 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
* double cast.
*/
#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
* definition of BEGIN.
*/
#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 int yyleng;
extern FILE *yyin, *yyout;
#ifdef __cplusplus
extern "C" {
#endif
extern int yywrap YY_PROTO(( void ));
#ifdef __cplusplus
}
#endif
#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:
*
* if ( condition_holds )
* yyless( 5 );
* else
* do_something_else();
*
* 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. */
#define yyless(n) \
do \
{ \
/* Undo effects of setting up yytext. */ \
*yy_cp = yy_hold_char; \
yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
#define unput(c) yyunput( c, yytext_ptr )
struct yy_buffer_state
{
FILE *yy_input_file;
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
* characters.
*/
int yy_buf_size;
/* Number of characters read into yy_ch_buf, not including EOB
* characters.
*/
int yy_n_chars;
/* 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
* each newline.
*/
int yy_is_interactive;
/* Whether to try to fill the input buffer when we reach the
* end of it.
*/
int yy_fill_buffer;
int yy_buffer_status;
#define YY_BUFFER_NEW 0
#define YY_BUFFER_NORMAL 1
/* When an EOF's been seen but there's still some text to process
* then we mark the buffer as YY_EOF_PENDING, to indicate that we
* shouldn't try reading from the input source any more. We might
* still have a bunch of tokens to match, though, because of
* possible backing-up.
*
* When we actually see the EOF, we change the status to "new"
* (via yyrestart()), so that the user can continue scanning by
* just pointing yyin at a new input file.
*/
#define YY_BUFFER_EOF_PENDING 2
};
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
* "scanner state".
*/
#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 */
int yyleng;
/* 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_alloc YY_PROTO(( unsigned int ));
static void *yy_flex_realloc YY_PROTO(( void *, unsigned int ));
static void yy_flex_free YY_PROTO(( void * ));
#define yy_new_buffer yy_create_buffer
#define INITIAL 0
#define SECT2 1
#define SECT2PROLOG 2
#define SECT3 3
#define CODEBLOCK 4
#define PICKUPDEF 5
#define SC 6
#define CARETISBOL 7
#define NUM 8
#define QUOTE 9
#define FIRSTCCL 10
#define CCL 11
#define ACTION 12
#define RECOVER 13
#define BRACEERROR 14
#define C_COMMENT 15
#define ACTION_COMMENT 16
#define ACTION_STRING 17
#define PERCENT_BRACE_ACTION 18
#define USED_LIST 19
#define CODEBLOCK_2 20
typedef unsigned char YY_CHAR;
typedef int yy_state_type;
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
extern char *yytext;
#define yytext_ptr yytext
#ifndef yytext_ptr
static void yy_flex_strncpy YY_PROTO(( char *, const char *, int ));
#endif
#ifdef __cplusplus
static int yyinput YY_PROTO(( void ));
#else
static int input YY_PROTO(( void ));
#endif
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 \
yytext_ptr = yy_bp; \
yyleng = yy_cp - yy_bp; \
yy_hold_char = *yy_cp; \
*yy_cp = '\0'; \
yy_c_buf_p = yy_cp;
#define YY_END_OF_BUFFER 113
static const short int yy_accept[408] =
{ 0,
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,
0, 0, 8, 0, 8, 8, 0
} ;
static const int yy_ec[256] =
{ 0,
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,
1, 1, 1, 1, 1
} ;
static const int yy_meta[44] =
{ 0,
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,
5, 1, 14
} ;
static const short int yy_base[470] =
{ 0,
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] =
{ 0,
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] =
{ 0,
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] =
{ 0,
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 flex missed.
*/
#define REJECT reject_used_but_not_detected
#define yymore() yymore_used_but_not_detected
#define YY_MORE_ADJ 0
char *yytext;
# line 1 "scan.l"
/* scan.l - scanner for flex input */
# line 4 "scan.l"
/*-
* Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
*
* This code is derived from software contributed to Berkeley by
* Vern Paxson.
*
* 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 $ */
#include "flexdef.h"
#include "parse.h"
#define ACTION_ECHO add_action( yytext )
#define MARK_END_OF_PROLOG mark_prolog();
#define YY_DECL \
int flexscan()
#define RETURNCHAR \
yylval = (unsigned char) yytext[0]; \
return CHAR;
#define RETURNNAME \
strcpy( nmstr, yytext ); \
return NAME;
#define PUT_BACK_STRING(str, start) \
for ( i = strlen( str ) - 1; i >= start; --i ) \
unput((str)[i])
#define CHECK_REJECT(str) \
if ( all_upper( str ) ) \
reject = true;
#define CHECK_YYMORE(str) \
if ( all_lower( str ) ) \
yymore_used = true;
/* Macros after this point can all be overridden by user definitions in
* section 1.
*/
#ifdef YY_MALLOC_DECL
YY_MALLOC_DECL
#else
#if __STDC__
#ifndef __cplusplus
#include <stdlib.h>
#endif
#else
/* 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).
*/
#endif
#endif
/* Amount of stuff to slurp up with each read. */
#ifndef YY_READ_BUF_SIZE
#define YY_READ_BUF_SIZE 8192
#endif
/* Copy whatever the last rule matched to the standard output. */
#ifndef ECHO
/* This used to be an fputs(), but since the string might contain NUL's,
* we now use fwrite().
*/
#define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
#endif
/* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
* is returned in "result".
*/
#ifndef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( yy_current_buffer->yy_is_interactive ) \
{ \
int c = getc( yyin ); \
result = c == EOF ? 0 : 1; \
buf[0] = (char) c; \
} \
else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
&& ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" );
#endif
/* 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.
*/
#ifndef yyterminate
#define yyterminate() return YY_NULL
#endif
/* Number of entries by which start-condition stack grows. */
#ifndef YY_START_STACK_INCR
#define YY_START_STACK_INCR 25
#endif
/* Report a fatal error. */
#ifndef YY_FATAL_ERROR
#define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
#endif
/* Default declaration of generated scanner - a define so the user can
* easily add parameters.
*/
#ifndef YY_DECL
#define YY_DECL int yylex YY_PROTO(( void ))
#endif
/* Code executed at the beginning of each rule, after yytext and yyleng
* have been set up.
*/
#ifndef YY_USER_ACTION
#define YY_USER_ACTION
#endif
/* Code executed at the end of each rule. */
#ifndef YY_BREAK
#define YY_BREAK break;
#endif
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register int yy_act;
# line 82 "scan.l"
static int bracelevel, didadef, indented_code, checking_used;
int doing_codeblock = false;
int i;
Char nmdef[MAXLINE], myesc();
if ( yy_init )
{
#ifdef YY_USER_INIT
YY_USER_INIT;
#endif
if ( ! yy_start )
yy_start = 1; /* first start state */
if ( ! yyin )
yyin = stdin;
if ( ! yyout )
yyout = stdout;
if ( yy_current_buffer )
yy_init_buffer( yy_current_buffer, yyin );
else
yy_current_buffer =
yy_create_buffer( yyin, YY_BUF_SIZE );
yy_load_buffer_state();
yy_init = 0;
}
while ( 1 ) /* loops until end-of-file is reached */
{
yy_cp = yy_c_buf_p;
/* Support of yytext. */
*yy_cp = yy_hold_char;
/* yy_bp points to the position in yy_ch_buf of the start of
* the current run.
*/
yy_bp = yy_cp;
yy_current_state = yy_start;
if ( yy_bp[-1] == '\n' )
++yy_current_state;
yy_match:
do
{
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];
++yy_cp;
}
while ( yy_base[yy_current_state] != 1615 );
yy_find_action:
yy_act = yy_accept[yy_current_state];
YY_DO_BEFORE_ACTION;
do_action: /* This label is used only to access EOF actions. */
switch ( yy_act )
{ /* beginning of action switch */
case 0: /* must back up */
/* undo the effects of YY_DO_BEFORE_ACTION */
*yy_cp = yy_hold_char;
yy_cp = yy_last_accepting_cpos;
yy_current_state = yy_last_accepting_state;
goto yy_find_action;
case 1:
YY_USER_ACTION
# line 90 "scan.l"
indented_code = true; BEGIN(CODEBLOCK);
YY_BREAK
case 2:
YY_USER_ACTION
# line 91 "scan.l"
ACTION_ECHO; BEGIN(C_COMMENT);
YY_BREAK
case 3:
YY_USER_ACTION
# line 92 "scan.l"
return SCDECL;
YY_BREAK
case 4:
YY_USER_ACTION
# line 93 "scan.l"
return XSCDECL;
YY_BREAK
case 5:
YY_USER_ACTION
# line 94 "scan.l"
{
++linenum;
line_directive_out( (FILE *) 0 );
indented_code = false;
BEGIN(CODEBLOCK);
}
YY_BREAK
case 6:
YY_USER_ACTION
# line 101 "scan.l"
return WHITESPACE;
YY_BREAK
case 7:
YY_USER_ACTION
# line 103 "scan.l"
{
sectnum = 2;
bracelevel = 0;
mark_defs1();
line_directive_out( (FILE *) 0 );
BEGIN(SECT2PROLOG);
return SECTEND;
}
YY_BREAK
case 8:
YY_USER_ACTION
# line 112 "scan.l"
{
if ( lex_compat )
warn( "%pointer incompatible with -l option" );
else
yytext_is_array = false;
++linenum;
}
YY_BREAK
case 9:
YY_USER_ACTION
# line 119 "scan.l"
{
if ( C_plus_plus )
warn( "%array incompatible with -+ option" );
else
yytext_is_array = true;
++linenum;
}
YY_BREAK
case 10:
YY_USER_ACTION
# line 127 "scan.l"
{
warn( "%used/%unused have been deprecated" );
checking_used = REALLY_USED; BEGIN(USED_LIST);
}
YY_BREAK
case 11:
YY_USER_ACTION
# line 131 "scan.l"
{
warn( "%used/%unused have been deprecated" );
checking_used = REALLY_NOT_USED; BEGIN(USED_LIST);
}
YY_BREAK
case 12:
YY_USER_ACTION
# line 137 "scan.l"
++linenum; /* ignore */
YY_BREAK
case 13:
YY_USER_ACTION
# line 139 "scan.l"
synerr( "unrecognized '%' directive" );
YY_BREAK
case 14:
YY_USER_ACTION
# line 141 "scan.l"
{
strcpy( nmstr, yytext );
didadef = false;
BEGIN(PICKUPDEF);
}
YY_BREAK
case 15:
YY_USER_ACTION
# line 147 "scan.l"
RETURNNAME;
YY_BREAK
case 16:
YY_USER_ACTION
# line 148 "scan.l"
++linenum; /* allows blank lines in section 1 */
YY_BREAK
case 17:
YY_USER_ACTION
# line 149 "scan.l"
++linenum; return '\n';
YY_BREAK
case 18:
YY_USER_ACTION
# line 152 "scan.l"
ACTION_ECHO; BEGIN(INITIAL);
YY_BREAK
case 19:
YY_USER_ACTION
# line 153 "scan.l"
++linenum; ACTION_ECHO; BEGIN(INITIAL);
YY_BREAK
case 20:
YY_USER_ACTION
# line 154 "scan.l"
ACTION_ECHO;
YY_BREAK
case 21:
YY_USER_ACTION
# line 155 "scan.l"
ACTION_ECHO;
YY_BREAK
case 22:
YY_USER_ACTION
# line 156 "scan.l"
++linenum; ACTION_ECHO;
YY_BREAK
case 23:
YY_USER_ACTION
# line 159 "scan.l"
++linenum; BEGIN(INITIAL);
YY_BREAK
case 24:
YY_USER_ACTION
# line 160 "scan.l"
ACTION_ECHO; CHECK_REJECT(yytext);
YY_BREAK
case 25:
YY_USER_ACTION
# line 161 "scan.l"
ACTION_ECHO; CHECK_YYMORE(yytext);
YY_BREAK
case 26:
YY_USER_ACTION
# line 162 "scan.l"
ACTION_ECHO;
YY_BREAK
case 27:
YY_USER_ACTION
# line 163 "scan.l"
{
++linenum;
ACTION_ECHO;
if ( indented_code )
BEGIN(INITIAL);
}
YY_BREAK
case 28:
YY_USER_ACTION
# line 171 "scan.l"
/* separates name and definition */
YY_BREAK
case 29:
YY_USER_ACTION
# line 173 "scan.l"
{
strcpy( (char *) nmdef, yytext );
/* Skip trailing whitespace. */
for ( i = strlen( (char *) nmdef ) - 1;
i >= 0 && (nmdef[i] == ' ' || nmdef[i] == '\t');
--i )
;
nmdef[i + 1] = '\0';
ndinstal( nmstr, nmdef );
didadef = true;
}
YY_BREAK
case 30:
YY_USER_ACTION
# line 188 "scan.l"
{
if ( ! didadef )
synerr( "incomplete name definition" );
BEGIN(INITIAL);
++linenum;
}
YY_BREAK
case 31:
YY_USER_ACTION
# line 195 "scan.l"
++linenum; BEGIN(INITIAL); RETURNNAME;
YY_BREAK
case 32:
YY_USER_ACTION
# line 198 "scan.l"
++linenum; BEGIN(INITIAL);
YY_BREAK
case 33:
YY_USER_ACTION
# line 199 "scan.l"
YY_BREAK
case 34:
YY_USER_ACTION
# line 200 "scan.l"
{
if ( all_upper( yytext ) )
reject_really_used = checking_used;
else
synerr(
"unrecognized %used/%unused construct" );
}
YY_BREAK
case 35:
YY_USER_ACTION
# line 207 "scan.l"
{
if ( all_lower( yytext ) )
yymore_really_used = checking_used;
else
synerr(
"unrecognized %used/%unused construct" );
}
YY_BREAK
case 36:
YY_USER_ACTION
# line 214 "scan.l"
synerr( "unrecognized %used/%unused construct" );
YY_BREAK
case 37:
YY_USER_ACTION
# line 217 "scan.l"
++bracelevel; yyless( 2 ); /* eat only %{ */
YY_BREAK
case 38:
YY_USER_ACTION
# line 218 "scan.l"
--bracelevel; yyless( 2 ); /* eat only %} */
YY_BREAK
case 39:
YY_USER_ACTION
# line 220 "scan.l"
ACTION_ECHO; /* indented code in prolog */
YY_BREAK
case 40:
YY_USER_ACTION
# line 222 "scan.l"
{ /* non-indented code */
if ( bracelevel <= 0 )
{ /* not in %{ ... %} */
yyless( 0 ); /* put it all back */
mark_prolog();
BEGIN(SECT2);
}
else
ACTION_ECHO;
}
YY_BREAK
case 41:
YY_USER_ACTION
# line 233 "scan.l"
ACTION_ECHO;
YY_BREAK
case 42:
YY_USER_ACTION
# line 234 "scan.l"
++linenum; ACTION_ECHO;
YY_BREAK
case YY_STATE_EOF(SECT2PROLOG):
# line 236 "scan.l"
{
mark_prolog();
sectnum = 0;
yyterminate(); /* to stop the parser */
}
YY_BREAK
case 43:
YY_USER_ACTION
# line 242 "scan.l"
++linenum; /* allow blank lines in section 2 */
YY_BREAK
case 44:
YY_USER_ACTION
# line 244 "scan.l"
{
indented_code = (yytext[0] != '%');
doing_codeblock = true;
bracelevel = 1;
if ( indented_code )
ACTION_ECHO;
BEGIN(CODEBLOCK_2);
}
YY_BREAK
case 45:
YY_USER_ACTION
# line 255 "scan.l"
BEGIN(SC); return '<';
YY_BREAK
case 46:
YY_USER_ACTION
# line 256 "scan.l"
return '^';
YY_BREAK
case 47:
YY_USER_ACTION
# line 257 "scan.l"
BEGIN(QUOTE); return '"';
YY_BREAK
case 48:
*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_USER_ACTION
# line 258 "scan.l"
BEGIN(NUM); return '{';
YY_BREAK
case 49:
YY_USER_ACTION
# line 259 "scan.l"
BEGIN(BRACEERROR);
YY_BREAK
case 50:
*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_USER_ACTION
# line 260 "scan.l"
return '$';
YY_BREAK
case 51:
YY_USER_ACTION
# line 262 "scan.l"
{
bracelevel = 1;
BEGIN(PERCENT_BRACE_ACTION);
return '\n';
}
YY_BREAK
case 52:
YY_USER_ACTION
# line 267 "scan.l"
continued_action = true; ++linenum; return '\n';
YY_BREAK
case 53:
YY_USER_ACTION
# line 269 "scan.l"
{
/* 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}.
*/
bracelevel = 0;
continued_action = false;
BEGIN(ACTION);
return '\n';
}
YY_BREAK
case 54:
YY_USER_ACTION
# line 280 "scan.l"
{
bracelevel = 0;
continued_action = false;
BEGIN(ACTION);
unput( '\n' ); /* so <ACTION> sees it */
return '\n';
}
YY_BREAK
case 55:
YY_USER_ACTION
# line 288 "scan.l"
return EOF_OP;
YY_BREAK
case 56:
YY_USER_ACTION
# line 290 "scan.l"
{
sectnum = 3;
BEGIN(SECT3);
yyterminate(); /* to stop the parser */
}
YY_BREAK
case 57:
YY_USER_ACTION
# line 296 "scan.l"
{
int cclval;
strcpy( nmstr, yytext );
/* Check to see if we've already encountered this
* ccl.
*/
if ( (cclval = ccllookup( (Char *) nmstr )) )
{
if ( input() != ']' )
synerr( "bad character class" );
yylval = cclval;
++cclreuse;
return PREVCCL;
}
else
{
/* 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.
*/
yyless( 1 );
BEGIN(FIRSTCCL);
return '[';
}
}
YY_BREAK
case 58:
YY_USER_ACTION
# line 330 "scan.l"
{
register Char *nmdefptr;
Char *ndlookup();
strcpy( nmstr, yytext + 1 );
nmstr[yyleng - 2] = '\0'; /* chop trailing brace */
if ( ! (nmdefptr = ndlookup( nmstr )) )
format_synerr( "undefined definition {%s}",
nmstr );
else
{ /* 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] == '^' )
BEGIN(CARETISBOL);
}
else
{
unput(')');
PUT_BACK_STRING((char *) nmdefptr, 0);
unput('(');
}
}
}
YY_BREAK
case 59:
YY_USER_ACTION
# line 363 "scan.l"
return (unsigned char) yytext[0];
YY_BREAK
case 60:
YY_USER_ACTION
# line 364 "scan.l"
RETURNCHAR;
YY_BREAK
case 61:
YY_USER_ACTION
# line 367 "scan.l"
return (unsigned char) yytext[0];
YY_BREAK
case 62:
YY_USER_ACTION
# line 368 "scan.l"
BEGIN(SECT2); return '>';
YY_BREAK
case 63:
*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_USER_ACTION
# line 369 "scan.l"
BEGIN(CARETISBOL); return '>';
YY_BREAK
case 64:
YY_USER_ACTION
# line 370 "scan.l"
RETURNNAME;
YY_BREAK
case 65:
YY_USER_ACTION
# line 371 "scan.l"
{
format_synerr( "bad <start condition>: %s", yytext );
}
YY_BREAK
case 66:
YY_USER_ACTION
# line 375 "scan.l"
BEGIN(SECT2); return '^';
YY_BREAK
case 67:
YY_USER_ACTION
# line 378 "scan.l"
RETURNCHAR;
YY_BREAK
case 68:
YY_USER_ACTION
# line 379 "scan.l"
BEGIN(SECT2); return '"';
YY_BREAK
case 69:
YY_USER_ACTION
# line 381 "scan.l"
{
synerr( "missing quote" );
BEGIN(SECT2);
++linenum;
return '"';
}
YY_BREAK
case 70:
*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_USER_ACTION
# line 389 "scan.l"
BEGIN(CCL); return '^';
YY_BREAK
case 71:
*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_USER_ACTION
# line 390 "scan.l"
return '^';
YY_BREAK
case 72:
YY_USER_ACTION
# line 391 "scan.l"
BEGIN(CCL); RETURNCHAR;
YY_BREAK
case 73:
*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_USER_ACTION
# line 393 "scan.l"
return '-';
YY_BREAK
case 74:
YY_USER_ACTION
# line 394 "scan.l"
RETURNCHAR;
YY_BREAK
case 75:
YY_USER_ACTION
# line 395 "scan.l"
BEGIN(SECT2); return ']';
YY_BREAK
case 76:
YY_USER_ACTION
# line 396 "scan.l"
{
synerr( "bad character class" );
BEGIN(SECT2);
return ']';
}
YY_BREAK
case 77:
YY_USER_ACTION
# line 403 "scan.l"
{
yylval = myctoi( yytext );
return NUMBER;
}
YY_BREAK
case 78:
YY_USER_ACTION
# line 408 "scan.l"
return ',';
YY_BREAK
case 79:
YY_USER_ACTION
# line 409 "scan.l"
BEGIN(SECT2); return '}';
YY_BREAK
case 80:
YY_USER_ACTION
# line 411 "scan.l"
{
synerr( "bad character inside {}'s" );
BEGIN(SECT2);
return '}';
}
YY_BREAK
case 81:
YY_USER_ACTION
# line 417 "scan.l"
{
synerr( "missing }" );
BEGIN(SECT2);
++linenum;
return '}';
}
YY_BREAK
case 82:
YY_USER_ACTION
# line 425 "scan.l"
synerr( "bad name in {}'s" ); BEGIN(SECT2);
YY_BREAK
case 83:
YY_USER_ACTION
# line 426 "scan.l"
synerr( "missing }" ); ++linenum; BEGIN(SECT2);
YY_BREAK
case 84:
YY_USER_ACTION
# line 429 "scan.l"
ACTION_ECHO; BEGIN(ACTION_COMMENT);
YY_BREAK
case 85:
YY_USER_ACTION
# line 430 "scan.l"
bracelevel = 0;
YY_BREAK
case 86:
YY_USER_ACTION
# line 431 "scan.l"
{
ACTION_ECHO;
CHECK_REJECT(yytext);
}
YY_BREAK
case 87:
YY_USER_ACTION
# line 435 "scan.l"
{
ACTION_ECHO;
CHECK_YYMORE(yytext);
}
YY_BREAK
case 88:
YY_USER_ACTION
# line 439 "scan.l"
ACTION_ECHO;
YY_BREAK
case 89:
YY_USER_ACTION
# line 440 "scan.l"
{
++linenum;
ACTION_ECHO;
if ( bracelevel == 0 ||
(doing_codeblock && indented_code) )
{
if ( ! doing_codeblock )
add_action( "\tYY_BREAK\n" );
doing_codeblock = false;
BEGIN(SECT2);
}
}
YY_BREAK
/* Reject and YYmore() are checked for above, in PERCENT_BRACE_ACTION */
case 90:
YY_USER_ACTION
# line 456 "scan.l"
ACTION_ECHO; ++bracelevel;
YY_BREAK
case 91:
YY_USER_ACTION
# line 457 "scan.l"
ACTION_ECHO; --bracelevel;
YY_BREAK
case 92:
YY_USER_ACTION
# line 458 "scan.l"
ACTION_ECHO;
YY_BREAK
case 93:
YY_USER_ACTION
# line 459 "scan.l"
ACTION_ECHO;
YY_BREAK
case 94:
YY_USER_ACTION
# line 460 "scan.l"
ACTION_ECHO; BEGIN(ACTION_COMMENT);
YY_BREAK
case 95:
YY_USER_ACTION
# line 461 "scan.l"
ACTION_ECHO; /* character constant */
YY_BREAK
case 96:
YY_USER_ACTION
# line 462 "scan.l"
ACTION_ECHO; BEGIN(ACTION_STRING);
YY_BREAK
case 97:
YY_USER_ACTION
# line 463 "scan.l"
{
++linenum;
ACTION_ECHO;
if ( bracelevel == 0 )
{
add_action( "\tYY_BREAK\n" );
BEGIN(SECT2);
}
}
YY_BREAK
case 98:
YY_USER_ACTION
# line 472 "scan.l"
ACTION_ECHO;
YY_BREAK
case 99:
YY_USER_ACTION
# line 474 "scan.l"
{
ACTION_ECHO;
if ( doing_codeblock )
BEGIN(CODEBLOCK_2);
else
BEGIN(ACTION);
}
YY_BREAK
case 100:
YY_USER_ACTION
# line 482 "scan.l"
ACTION_ECHO;
YY_BREAK
case 101:
YY_USER_ACTION
# line 483 "scan.l"
ACTION_ECHO;
YY_BREAK
case 102:
YY_USER_ACTION
# line 484 "scan.l"
++linenum; ACTION_ECHO;
YY_BREAK
case 103:
YY_USER_ACTION
# line 486 "scan.l"
ACTION_ECHO;
YY_BREAK
case 104:
YY_USER_ACTION
# line 487 "scan.l"
ACTION_ECHO;
YY_BREAK
case 105:
YY_USER_ACTION
# line 488 "scan.l"
++linenum; ACTION_ECHO;
YY_BREAK
case 106:
YY_USER_ACTION
# line 489 "scan.l"
ACTION_ECHO; BEGIN(ACTION);
YY_BREAK
case 107:
YY_USER_ACTION
# line 490 "scan.l"
ACTION_ECHO;
YY_BREAK
case YY_STATE_EOF(ACTION):
case YY_STATE_EOF(ACTION_COMMENT):
case YY_STATE_EOF(ACTION_STRING):
# line 492 "scan.l"
{
synerr( "EOF encountered inside an action" );
yyterminate();
}
YY_BREAK
case 108:
YY_USER_ACTION
# line 498 "scan.l"
{
yylval = myesc( (Char *) yytext );
return CHAR;
}
YY_BREAK
case 109:
YY_USER_ACTION
# line 503 "scan.l"
{
yylval = myesc( (Char *) yytext );
BEGIN(CCL);
return CHAR;
}
YY_BREAK
case 110:
YY_USER_ACTION
# line 510 "scan.l"
ECHO;
YY_BREAK
case YY_STATE_EOF(SECT3):
# line 511 "scan.l"
sectnum = 0; yyterminate();
YY_BREAK
case 111:
YY_USER_ACTION
# line 513 "scan.l"
format_synerr( "bad character: %s", yytext );
YY_BREAK
case 112:
YY_USER_ACTION
# line 515 "scan.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(SECT2):
case YY_STATE_EOF(CODEBLOCK):
case YY_STATE_EOF(PICKUPDEF):
case YY_STATE_EOF(SC):
case YY_STATE_EOF(CARETISBOL):
case YY_STATE_EOF(NUM):
case YY_STATE_EOF(QUOTE):
case YY_STATE_EOF(FIRSTCCL):
case YY_STATE_EOF(CCL):
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):
yyterminate();
case YY_END_OF_BUFFER:
{
/* 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. */
*yy_cp = yy_hold_char;
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
{
/* We're scanning a new file or input source. It's
* possible that this happened because the user
* just pointed yyin at a new source and called
* yylex(). If so, then 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 source.
*/
yy_n_chars = yy_current_buffer->yy_n_chars;
yy_current_buffer->yy_input_file = yyin;
yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
}
/* 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 input().
*/
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
* will run more slowly).
*/
yy_next_state = yy_try_NUL_trans( yy_current_state );
yy_bp = yytext_ptr + YY_MORE_ADJ;
if ( yy_next_state )
{
/* Consume the NUL. */
yy_cp = ++yy_c_buf_p;
yy_current_state = yy_next_state;
goto yy_match;
}
else
{
yy_cp = yy_c_buf_p;
goto yy_find_action;
}
}
else switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
yy_did_buffer_switch_on_eof = 0;
if ( yywrap() )
{
/* 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);
goto do_action;
}
else
{
if ( ! yy_did_buffer_switch_on_eof )
YY_NEW_FILE;
}
break;
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p =
yytext_ptr + yy_amount_of_matched_text;
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_match;
case EOB_ACT_LAST_MATCH:
yy_c_buf_p =
&yy_current_buffer->yy_ch_buf[yy_n_chars];
yy_current_state = yy_get_previous_state();
yy_cp = yy_c_buf_p;
yy_bp = yytext_ptr + YY_MORE_ADJ;
goto yy_find_action;
}
break;
}
default:
YY_FATAL_ERROR(
"fatal flex scanner internal error--no action found" );
} /* end of action switch */
} /* end of scanning one token */
} /* end of yylex */
/* yy_get_next_buffer - try to read in a new buffer
*
* Returns a code representing an action:
* EOB_ACT_LAST_MATCH -
* 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;
int ret_val;
if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
YY_FATAL_ERROR(
"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;
}
else
{
/* We matched some text prior to the EOB, first
* process it.
*/
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 )
*(dest++) = *(source++);
if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
/* don't do the read, it's not guaranteed to return an EOF,
* just force an EOF
*/
yy_n_chars = 0;
else
{
int num_to_read =
yy_current_buffer->yy_buf_size - number_to_move - 1;
while ( num_to_read <= 0 )
{ /* Not enough room in the buffer - grow it. */
#ifdef YY_USES_REJECT
YY_FATAL_ERROR(
"input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
#else
/* 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;
b->yy_buf_size *= 2;
b->yy_ch_buf = (char *)
yy_flex_realloc( (void *) b->yy_ch_buf,
b->yy_buf_size );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR(
"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 -
number_to_move - 1;
#endif
}
if ( num_to_read > YY_READ_BUF_SIZE )
num_to_read = YY_READ_BUF_SIZE;
/* Read in more data. */
YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
yy_n_chars, num_to_read );
}
if ( yy_n_chars == 0 )
{
if ( number_to_move - YY_MORE_ADJ == 1 )
{
ret_val = EOB_ACT_END_OF_FILE;
yyrestart( yyin );
}
else
{
ret_val = EOB_ACT_LAST_MATCH;
yy_current_buffer->yy_buffer_status =
YY_BUFFER_EOF_PENDING;
}
}
else
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];
return ret_val;
}
/* 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_cp;
register char *yy_bp = yytext_ptr;
yy_current_state = yy_start;
if ( yy_bp[-1] == '\n' )
++yy_current_state;
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];
}
return yy_current_state;
}
/* yy_try_NUL_trans - try to make a transition on the NUL character
*
* synopsis
* next_state = yy_try_NUL_trans( current_state );
*/
#ifdef YY_USE_PROTOS
static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
#else
static yy_state_type yy_try_NUL_trans( yy_current_state )
yy_state_type yy_current_state;
#endif
{
register int yy_is_jam;
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;
}
#ifdef YY_USE_PROTOS
static void yyunput( int c, register char *yy_bp )
#else
static void yyunput( c, yy_bp )
int c;
register char *yy_bp;
#endif
{
register char *yy_cp = yy_c_buf_p;
/* undo effects of setting up yytext */
*yy_cp = yy_hold_char;
if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
{ /* need to shift things up to make room */
/* +2 for EOB chars. */
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];
register char *source =
&yy_current_buffer->yy_ch_buf[number_to_move];
while ( source > yy_current_buffer->yy_ch_buf )
*--dest = *--source;
yy_cp += dest - source;
yy_bp += dest - source;
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' )
yy_cp[-2] = '\n';
*--yy_cp = (char) c;
/* Note: the formal parameter *must* be called "yy_bp" for this
* macro to now work correctly.
*/
YY_DO_BEFORE_ACTION; /* set up yytext again */
}
#ifdef __cplusplus
static int yyinput()
#else
static int input()
#endif
{
int c;
*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. */
*yy_c_buf_p = '\0';
else
{ /* need more input */
yytext_ptr = yy_c_buf_p;
++yy_c_buf_p;
switch ( yy_get_next_buffer() )
{
case EOB_ACT_END_OF_FILE:
{
if ( yywrap() )
{
yy_c_buf_p =
yytext_ptr + YY_MORE_ADJ;
return EOF;
}
YY_NEW_FILE;
#ifdef __cplusplus
return yyinput();
#else
return input();
#endif
}
case EOB_ACT_CONTINUE_SCAN:
yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
break;
case EOB_ACT_LAST_MATCH:
#ifdef __cplusplus
YY_FATAL_ERROR(
"unexpected last match in yyinput()" );
#else
YY_FATAL_ERROR(
"unexpected last match in input()" );
#endif
}
}
}
c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
*yy_c_buf_p = '\0'; /* preserve yytext */
yy_hold_char = *++yy_c_buf_p;
return c;
}
#ifdef YY_USE_PROTOS
void yyrestart( FILE *input_file )
#else
void yyrestart( input_file )
FILE *input_file;
#endif
{
if ( ! yy_current_buffer )
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
yy_init_buffer( yy_current_buffer, input_file );
yy_load_buffer_state();
}
#ifdef YY_USE_PROTOS
void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
#else
void yy_switch_to_buffer( new_buffer )
YY_BUFFER_STATE new_buffer;
#endif
{
if ( yy_current_buffer == new_buffer )
return;
if ( yy_current_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;
yy_load_buffer_state();
/* 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;
}
#ifdef YY_USE_PROTOS
void yy_load_buffer_state( void )
#else
void yy_load_buffer_state()
#endif
{
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;
}
#ifdef YY_USE_PROTOS
YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
#else
YY_BUFFER_STATE yy_create_buffer( file, size )
FILE *file;
int size;
#endif
{
YY_BUFFER_STATE b;
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
if ( ! b )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
b->yy_buf_size = size;
/* 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 );
if ( ! b->yy_ch_buf )
YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
yy_init_buffer( b, file );
return b;
}
#ifdef YY_USE_PROTOS
void yy_delete_buffer( YY_BUFFER_STATE b )
#else
void yy_delete_buffer( b )
YY_BUFFER_STATE b;
#endif
{
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 );
}
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
#else
void yy_init_buffer( b, file )
YY_BUFFER_STATE b;
FILE *file;
#endif
{
b->yy_input_file = file;
/* We put in the '\n' and start reading from [1] so that an
* initial match-at-newline will be true.
*/
b->yy_ch_buf[0] = '\n';
b->yy_n_chars = 1;
/* We always need two end-of-buffer characters. The first causes
* a transition to the end-of-buffer state. The second causes
* a jam in that state.
*/
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_fill_buffer = 1;
b->yy_buffer_status = YY_BUFFER_NEW;
}
#ifdef YY_USE_PROTOS
static void yy_push_state( int new_state )
#else
static void yy_push_state( new_state )
int new_state;
#endif
{
if ( yy_start_stack_ptr >= yy_start_stack_depth )
{
int new_size;
yy_start_stack_depth += YY_START_STACK_INCR;
new_size = yy_start_stack_depth * sizeof( int );
if ( ! yy_start_stack )
yy_start_stack = (int *) yy_flex_alloc( new_size );
else
yy_start_stack = (int *) yy_flex_realloc(
(void *) yy_start_stack, new_size );
if ( ! yy_start_stack )
YY_FATAL_ERROR(
"out of memory expanding start-condition stack" );
}
yy_start_stack[yy_start_stack_ptr++] = YY_START;
BEGIN(new_state);
}
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];
}
#ifdef YY_USE_PROTOS
static void yy_fatal_error( const char msg[] )
#else
static void yy_fatal_error( msg )
char msg[];
#endif
{
(void) fprintf( stderr, "%s\n", msg );
exit( 1 );
}
/* Redefine yyless() so it works in section 3 code. */
#undef yyless
#define yyless(n) \
do \
{ \
/* 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; \
*yy_c_buf_p = '\0'; \
yyleng = n; \
} \
while ( 0 )
/* Internal utility routines. */
#ifndef yytext_ptr
#ifdef YY_USE_PROTOS
static void yy_flex_strncpy( char *s1, const char *s2, int n )
#else
static void yy_flex_strncpy( s1, s2, n )
char *s1;
const char *s2;
int n;
#endif
{
register int i;
for ( i = 0; i < n; ++i )
s1[i] = s2[i];
}
#endif
#ifdef YY_USE_PROTOS
static void *yy_flex_alloc( unsigned int size )
#else
static void *yy_flex_alloc( size )
unsigned int size;
#endif
{
return (void *) malloc( size );
}
#ifdef YY_USE_PROTOS
static void *yy_flex_realloc( void *ptr, unsigned int size )
#else
static void *yy_flex_realloc( ptr, size )
void *ptr;
unsigned int size;
#endif
{
return (void *) realloc( ptr, size );
}
#ifdef YY_USE_PROTOS
static void yy_flex_free( void *ptr )
#else
static void yy_flex_free( ptr )
void *ptr;
#endif
{
free( ptr );
}
# line 515 "scan.l"
int yywrap()
{
if ( --num_input_files > 0 )
{
set_input_file( *++input_files );
return 0;
}
else
return 1;
}
/* set_input_file - open the given file (if NULL, stdin) for scanning */
void set_input_file( file )
char *file;
{
if ( file )
{
infilename = file;
yyin = fopen( infilename, "r" );
if ( yyin == NULL )
lerrsf( "can't open %s", file );
}
else
{
yyin = stdin;
infilename = "<stdin>";
}
}
/* Wrapper routines for accessing the scanner's malloc routines. */
void *flex_alloc( size )
unsigned int size;
{
return yy_flex_alloc( size );
}
void *flex_realloc( ptr, size )
void *ptr;
unsigned int size;
{
return yy_flex_realloc( ptr, size );
}
void flex_free( ptr )
void *ptr;
{
yy_flex_free( ptr );
}