3064 lines
98 KiB
C
3064 lines
98 KiB
C
/* $OpenBSD: flex.skl,v 1.8 2004/02/09 11:38:31 espie Exp $ */
|
|
|
|
/* A lexical scanner generated by flex */
|
|
|
|
/* Scanner skeleton version:
|
|
* $Header$
|
|
*/
|
|
|
|
#define FLEX_SCANNER
|
|
#define YY_FLEX_MAJOR_VERSION 2
|
|
#define YY_FLEX_MINOR_VERSION 5
|
|
|
|
#include <stdio.h>
|
|
#include <errno.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__
|
|
#pragma warn -rch
|
|
#pragma warn -use
|
|
#include <io.h>
|
|
#include <stdlib.h>
|
|
#define YY_USE_CONST
|
|
#define YY_USE_PROTOS
|
|
#endif
|
|
|
|
#ifdef YY_USE_CONST
|
|
#define yyconst const
|
|
#else
|
|
#define yyconst
|
|
#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. The YYSTATE alias is for lex
|
|
* compatibility.
|
|
*/
|
|
#define YY_START ((yy_start - 1) / 2)
|
|
#define YYSTATE YY_START
|
|
|
|
/* 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". */
|
|
#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;
|
|
|
|
#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_RESTORE_YY_MORE_OFFSET \
|
|
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 )
|
|
|
|
/* The following is because we cannot portably get our hands on size_t
|
|
* (without autoconf's help, which isn't available because we want
|
|
* flex-generated scanners to compile on their own).
|
|
*/
|
|
typedef unsigned int yy_size_t;
|
|
|
|
|
|
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.
|
|
*/
|
|
yy_size_t yy_buf_size;
|
|
|
|
/* Number of characters read into yy_ch_buf, not including EOB
|
|
* characters.
|
|
*/
|
|
int yy_n_chars;
|
|
|
|
/* Whether we "own" the buffer - i.e., we know we created it,
|
|
* and can realloc() it to grow it, and should free() it to
|
|
* delete it.
|
|
*/
|
|
int yy_is_our_buffer;
|
|
|
|
/* 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 we're considered to be at the beginning of a line.
|
|
* If so, '^' rules will be active on the next match, otherwise
|
|
* not.
|
|
*/
|
|
int yy_at_bol;
|
|
|
|
/* 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;
|
|
|
|
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 ));
|
|
void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
|
|
#define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
|
|
|
|
YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
|
|
YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
|
|
YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
|
|
|
|
static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
|
|
static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
|
|
static void yy_flex_free YY_PROTO(( void * ));
|
|
|
|
#define yy_new_buffer yy_create_buffer
|
|
|
|
#define yy_set_interactive(is_interactive) \
|
|
{ \
|
|
if ( ! yy_current_buffer ) \
|
|
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
|
|
yy_current_buffer->yy_is_interactive = is_interactive; \
|
|
}
|
|
|
|
#define yy_set_bol(at_bol) \
|
|
{ \
|
|
if ( ! yy_current_buffer ) \
|
|
yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
|
|
yy_current_buffer->yy_at_bol = at_bol; \
|
|
}
|
|
|
|
#define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
|
|
|
|
typedef unsigned char YY_CHAR;
|
|
FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
|
|
typedef int yy_state_type;
|
|
extern char *yytext;
|
|
#define yytext_ptr yytext
|
|
|
|
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(( yyconst 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 = (int) (yy_cp - yy_bp); \
|
|
yy_hold_char = *yy_cp; \
|
|
*yy_cp = '\0'; \
|
|
yy_c_buf_p = yy_cp;
|
|
|
|
#define YY_NUM_RULES 42
|
|
#define YY_END_OF_BUFFER 43
|
|
static yyconst short int yy_accept[382] =
|
|
{ 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 43, 32, 38, 37, 36, 41, 32, 26,
|
|
41, 32, 33, 32, 32, 32, 32, 35, 34, 27,
|
|
27, 27, 27, 27, 41, 32, 41, 27, 27, 27,
|
|
27, 27, 28, 41, 28, 29, 28, 28, 28, 28,
|
|
28, 27, 27, 27, 27, 27, 41, 28, 1, 12,
|
|
11, 12, 11, 11, 41, 41, 2, 8, 8, 8,
|
|
3, 8, 4, 41, 32, 0, 38, 36, 0, 40,
|
|
23, 0, 22, 0, 31, 31, 0, 32, 32, 32,
|
|
32, 32, 27, 27, 27, 27, 27, 32, 39, 32,
|
|
|
|
0, 32, 32, 32, 32, 32, 28, 0, 28, 23,
|
|
0, 22, 0, 28, 0, 28, 28, 28, 28, 28,
|
|
27, 27, 27, 27, 27, 28, 28, 1, 12, 12,
|
|
10, 9, 10, 0, 2, 8, 0, 8, 0, 0,
|
|
5, 6, 8, 8, 0, 32, 32, 32, 27, 27,
|
|
27, 27, 27, 27, 32, 0, 32, 32, 32, 32,
|
|
32, 28, 28, 28, 27, 27, 27, 27, 27, 27,
|
|
28, 7, 7, 0, 7, 8, 32, 32, 32, 32,
|
|
32, 27, 27, 27, 27, 27, 27, 32, 0, 32,
|
|
32, 32, 28, 28, 28, 28, 28, 27, 27, 27,
|
|
|
|
27, 27, 27, 28, 7, 32, 32, 32, 0, 19,
|
|
27, 27, 27, 27, 27, 32, 0, 32, 32, 28,
|
|
28, 28, 27, 27, 27, 27, 27, 28, 32, 32,
|
|
32, 32, 32, 27, 27, 27, 27, 27, 32, 0,
|
|
32, 32, 28, 28, 28, 28, 28, 27, 27, 27,
|
|
27, 27, 28, 24, 24, 24, 27, 0, 18, 27,
|
|
27, 0, 17, 32, 0, 32, 32, 24, 24, 24,
|
|
27, 27, 27, 28, 32, 24, 24, 24, 24, 0,
|
|
21, 27, 27, 30, 0, 32, 14, 28, 24, 24,
|
|
24, 24, 27, 27, 28, 32, 25, 25, 25, 27,
|
|
|
|
0, 16, 0, 32, 0, 28, 25, 25, 25, 27,
|
|
32, 32, 25, 25, 25, 25, 25, 0, 20, 0,
|
|
0, 13, 15, 14, 0, 28, 28, 25, 25, 25,
|
|
25, 25, 32, 32, 32, 25, 25, 28, 28, 28,
|
|
25, 25, 32, 32, 32, 32, 32, 28, 28, 28,
|
|
28, 28, 32, 32, 32, 28, 28, 28, 32, 32,
|
|
32, 32, 32, 28, 28, 28, 28, 28, 24, 24,
|
|
24, 24, 24, 24, 24, 24, 24, 24, 24, 24,
|
|
0
|
|
} ;
|
|
|
|
static yyconst int yy_ec[256] =
|
|
{ 0,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 2, 4, 5, 6, 1, 7, 1, 1, 8,
|
|
9, 10, 11, 12, 13, 14, 15, 16, 17, 18,
|
|
19, 20, 21, 22, 22, 22, 22, 23, 1, 1,
|
|
24, 25, 10, 25, 26, 27, 28, 29, 30, 27,
|
|
27, 31, 32, 27, 27, 27, 33, 34, 35, 36,
|
|
27, 37, 38, 39, 40, 27, 41, 42, 27, 27,
|
|
10, 43, 10, 1, 44, 1, 45, 46, 47, 48,
|
|
|
|
49, 50, 46, 46, 51, 46, 46, 52, 53, 54,
|
|
55, 46, 46, 56, 57, 58, 59, 46, 46, 46,
|
|
46, 46, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 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 yyconst int yy_meta[60] =
|
|
{ 0,
|
|
1, 2, 2, 3, 1, 4, 1, 3, 3, 1,
|
|
1, 2, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 5, 4, 3, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 6, 7, 7, 7, 7, 7, 7, 7,
|
|
7, 7, 7, 7, 7, 7, 7, 7, 7
|
|
} ;
|
|
|
|
static yyconst short int yy_base[403] =
|
|
{ 0,
|
|
0, 54, 94, 0, 59, 60, 152, 157, 199, 257,
|
|
315, 357, 1026, 982, 1020, 3235, 1016, 1015, 962, 3235,
|
|
3235, 961, 3235, 163, 387, 417, 447, 3235, 3235, 490,
|
|
960, 966, 963, 970, 548, 20, 159, 941, 940, 933,
|
|
919, 920, 931, 56, 929, 3235, 927, 169, 560, 590,
|
|
620, 663, 923, 929, 924, 932, 721, 21, 955, 0,
|
|
3235, 950, 0, 3235, 745, 68, 0, 910, 180, 141,
|
|
3235, 144, 3235, 84, 907, 787, 946, 942, 940, 3235,
|
|
884, 811, 883, 835, 189, 882, 859, 219, 156, 871,
|
|
901, 250, 0, 886, 879, 183, 874, 187, 3235, 41,
|
|
|
|
154, 38, 168, 164, 166, 179, 868, 943, 259, 867,
|
|
967, 866, 991, 321, 1015, 331, 182, 1027, 1057, 324,
|
|
0, 878, 862, 252, 857, 231, 45, 892, 0, 882,
|
|
224, 3235, 3235, 281, 0, 838, 370, 386, 174, 289,
|
|
3235, 3235, 837, 288, 373, 1087, 1117, 1147, 842, 837,
|
|
824, 829, 836, 819, 243, 226, 323, 244, 279, 252,
|
|
280, 1177, 1207, 1237, 828, 823, 807, 813, 820, 807,
|
|
322, 799, 3235, 291, 416, 446, 455, 340, 1267, 1297,
|
|
545, 333, 801, 792, 787, 780, 775, 335, 163, 343,
|
|
314, 356, 573, 381, 1327, 1357, 601, 388, 775, 778,
|
|
|
|
773, 763, 759, 371, 350, 1387, 1417, 1447, 400, 3235,
|
|
763, 766, 758, 748, 755, 369, 321, 148, 373, 1477,
|
|
1507, 1537, 724, 728, 722, 715, 721, 384, 580, 401,
|
|
1567, 1597, 610, 691, 424, 687, 630, 439, 399, 440,
|
|
402, 435, 629, 439, 1627, 1657, 718, 632, 479, 623,
|
|
619, 490, 436, 1686, 1715, 1744, 492, 582, 3235, 617,
|
|
596, 612, 3235, 441, 564, 532, 512, 1773, 1802, 1831,
|
|
652, 551, 541, 510, 754, 440, 1860, 1889, 762, 663,
|
|
3235, 521, 664, 453, 454, 542, 717, 808, 471, 1918,
|
|
1947, 857, 448, 665, 437, 1977, 2007, 2037, 2067, 729,
|
|
|
|
739, 3235, 653, 600, 403, 2097, 2127, 2157, 2187, 741,
|
|
885, 618, 2217, 2247, 2277, 2307, 749, 783, 3235, 330,
|
|
656, 3235, 256, 222, 2349, 913, 744, 2361, 2391, 2421,
|
|
2451, 836, 2481, 2511, 2541, 920, 881, 2571, 2601, 2631,
|
|
964, 944, 1012, 788, 2661, 2691, 992, 1040, 789, 2721,
|
|
2751, 1068, 2781, 2811, 2841, 2871, 2901, 2931, 1047, 790,
|
|
2961, 2991, 1077, 1097, 795, 3021, 3051, 1107, 1127, 1135,
|
|
1163, 1191, 1219, 1226, 188, 1254, 1247, 181, 1282, 1310,
|
|
3235, 3094, 3101, 3108, 3115, 3122, 3129, 3136, 3143, 3150,
|
|
3157, 3164, 3171, 3178, 83, 3185, 3192, 3199, 3206, 3213,
|
|
|
|
3220, 3227
|
|
} ;
|
|
|
|
static yyconst short int yy_def[403] =
|
|
{ 0,
|
|
381, 1, 381, 3, 1, 1, 382, 382, 383, 383,
|
|
384, 384, 381, 385, 381, 381, 381, 386, 387, 381,
|
|
381, 388, 381, 389, 385, 385, 385, 381, 381, 381,
|
|
30, 30, 30, 30, 385, 385, 386, 30, 30, 30,
|
|
30, 30, 390, 381, 391, 381, 392, 393, 390, 390,
|
|
390, 381, 52, 52, 52, 52, 390, 390, 381, 394,
|
|
381, 394, 394, 381, 381, 381, 395, 396, 397, 396,
|
|
381, 396, 381, 398, 385, 385, 381, 381, 386, 381,
|
|
387, 387, 388, 388, 389, 399, 385, 385, 385, 385,
|
|
385, 385, 30, 30, 30, 30, 30, 385, 381, 385,
|
|
|
|
386, 385, 385, 385, 385, 385, 390, 390, 381, 391,
|
|
391, 392, 392, 393, 390, 390, 390, 390, 390, 390,
|
|
52, 52, 52, 52, 52, 390, 390, 381, 394, 394,
|
|
381, 381, 381, 381, 395, 396, 396, 397, 400, 397,
|
|
381, 381, 396, 396, 381, 385, 385, 385, 30, 30,
|
|
30, 30, 30, 30, 385, 386, 385, 385, 385, 385,
|
|
385, 390, 390, 390, 52, 52, 52, 52, 52, 52,
|
|
390, 396, 381, 400, 397, 397, 385, 385, 385, 385,
|
|
385, 30, 30, 30, 30, 30, 30, 385, 386, 385,
|
|
385, 385, 390, 390, 390, 390, 390, 52, 52, 52,
|
|
|
|
52, 52, 52, 390, 400, 385, 385, 385, 381, 381,
|
|
30, 30, 30, 30, 30, 385, 386, 385, 385, 390,
|
|
390, 390, 52, 52, 52, 52, 52, 390, 385, 385,
|
|
385, 385, 385, 30, 30, 30, 30, 30, 385, 386,
|
|
385, 385, 390, 390, 390, 390, 390, 52, 52, 52,
|
|
52, 52, 390, 385, 385, 385, 30, 381, 381, 30,
|
|
30, 381, 381, 385, 386, 385, 385, 390, 390, 390,
|
|
52, 52, 52, 390, 385, 385, 385, 385, 385, 381,
|
|
381, 30, 30, 385, 386, 385, 385, 390, 390, 390,
|
|
390, 390, 52, 52, 390, 385, 385, 385, 385, 30,
|
|
|
|
381, 381, 401, 385, 402, 390, 390, 390, 390, 52,
|
|
385, 385, 385, 385, 385, 385, 385, 381, 381, 401,
|
|
401, 381, 385, 402, 402, 390, 390, 390, 390, 390,
|
|
390, 390, 385, 385, 385, 385, 385, 390, 390, 390,
|
|
390, 390, 385, 385, 385, 385, 385, 390, 390, 390,
|
|
390, 390, 385, 385, 385, 390, 390, 390, 385, 385,
|
|
385, 385, 385, 390, 390, 390, 390, 390, 385, 385,
|
|
385, 390, 390, 390, 385, 385, 385, 390, 390, 390,
|
|
0, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
|
|
381, 381
|
|
} ;
|
|
|
|
static yyconst short int yy_nxt[3295] =
|
|
{ 0,
|
|
14, 15, 16, 17, 14, 18, 19, 20, 21, 14,
|
|
22, 23, 14, 14, 24, 25, 26, 27, 25, 25,
|
|
25, 25, 28, 29, 21, 30, 30, 30, 30, 31,
|
|
30, 30, 32, 33, 30, 34, 30, 30, 30, 30,
|
|
30, 30, 35, 14, 14, 14, 14, 14, 14, 14,
|
|
14, 14, 14, 14, 14, 14, 36, 14, 14, 37,
|
|
59, 59, 76, 108, 21, 21, 21, 21, 109, 134,
|
|
99, 109, 109, 109, 109, 109, 109, 109, 100, 127,
|
|
76, 38, 39, 76, 40, 144, 99, 108, 155, 135,
|
|
41, 157, 171, 42, 43, 15, 16, 17, 43, 44,
|
|
|
|
45, 21, 46, 43, 47, 23, 43, 43, 48, 49,
|
|
50, 51, 49, 49, 49, 49, 28, 29, 21, 52,
|
|
52, 52, 52, 53, 52, 52, 54, 55, 52, 56,
|
|
52, 52, 52, 52, 52, 52, 57, 43, 43, 43,
|
|
43, 43, 43, 43, 43, 43, 43, 43, 43, 43,
|
|
58, 43, 43, 15, 61, 62, 80, 63, 15, 61,
|
|
62, 80, 63, 64, 141, 80, 86, 142, 64, 88,
|
|
86, 86, 86, 241, 64, 63, 86, 86, 173, 64,
|
|
63, 139, 139, 137, 136, 139, 137, 86, 134, 99,
|
|
76, 139, 86, 86, 65, 116, 86, 86, 76, 65,
|
|
|
|
15, 16, 17, 139, 18, 87, 76, 156, 76, 101,
|
|
76, 115, 151, 86, 217, 152, 174, 158, 153, 160,
|
|
159, 76, 140, 108, 108, 134, 99, 161, 80, 76,
|
|
76, 87, 134, 99, 146, 147, 148, 146, 146, 146,
|
|
146, 66, 67, 67, 67, 67, 67, 67, 67, 67,
|
|
67, 67, 67, 67, 67, 67, 67, 67, 15, 16,
|
|
17, 76, 18, 88, 325, 89, 89, 89, 89, 89,
|
|
89, 109, 189, 108, 109, 109, 109, 109, 109, 109,
|
|
109, 167, 134, 99, 168, 76, 76, 169, 191, 134,
|
|
99, 139, 76, 175, 76, 205, 192, 188, 76, 66,
|
|
|
|
67, 67, 67, 67, 67, 67, 67, 67, 67, 67,
|
|
67, 67, 67, 67, 67, 67, 15, 16, 17, 69,
|
|
18, 76, 76, 80, 86, 70, 71, 72, 86, 86,
|
|
137, 176, 322, 174, 209, 190, 190, 116, 73, 117,
|
|
117, 117, 117, 117, 117, 86, 162, 163, 164, 162,
|
|
162, 162, 162, 177, 173, 210, 76, 74, 15, 16,
|
|
17, 69, 18, 115, 108, 76, 108, 70, 71, 72,
|
|
190, 136, 219, 108, 86, 136, 204, 76, 86, 240,
|
|
73, 136, 76, 216, 86, 76, 218, 139, 139, 209,
|
|
172, 139, 174, 136, 193, 86, 86, 139, 76, 74,
|
|
|
|
88, 209, 89, 89, 89, 89, 89, 89, 89, 139,
|
|
210, 76, 190, 108, 229, 76, 239, 139, 139, 228,
|
|
172, 139, 210, 108, 242, 258, 108, 139, 140, 76,
|
|
88, 253, 90, 90, 90, 90, 90, 90, 90, 139,
|
|
262, 76, 80, 76, 76, 325, 259, 139, 139, 264,
|
|
175, 139, 243, 266, 275, 303, 80, 139, 140, 76,
|
|
88, 263, 91, 91, 91, 91, 91, 92, 89, 139,
|
|
206, 207, 208, 206, 206, 206, 206, 76, 108, 108,
|
|
258, 108, 76, 76, 310, 288, 274, 265, 140, 76,
|
|
75, 262, 267, 280, 75, 76, 75, 76, 284, 75,
|
|
|
|
75, 259, 75, 75, 75, 93, 93, 93, 93, 93,
|
|
93, 93, 263, 108, 281, 93, 93, 93, 93, 93,
|
|
93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
|
|
93, 93, 76, 93, 75, 75, 75, 75, 75, 75,
|
|
75, 75, 75, 75, 75, 75, 75, 75, 75, 98,
|
|
99, 75, 108, 75, 76, 75, 75, 300, 177, 75,
|
|
178, 178, 178, 178, 178, 178, 80, 295, 287, 294,
|
|
75, 75, 75, 116, 76, 117, 117, 117, 117, 117,
|
|
117, 117, 286, 258, 76, 293, 304, 76, 220, 221,
|
|
222, 220, 220, 220, 220, 254, 255, 256, 254, 254,
|
|
|
|
254, 254, 108, 116, 259, 118, 118, 118, 118, 118,
|
|
118, 118, 285, 262, 193, 108, 194, 194, 194, 194,
|
|
194, 194, 76, 229, 283, 230, 230, 230, 230, 230,
|
|
230, 311, 108, 116, 263, 119, 119, 119, 119, 119,
|
|
120, 117, 76, 108, 268, 269, 270, 268, 268, 268,
|
|
268, 282, 76, 280, 321, 322, 323, 321, 322, 273,
|
|
76, 272, 108, 107, 280, 301, 301, 107, 271, 107,
|
|
261, 108, 107, 107, 281, 107, 107, 107, 121, 121,
|
|
121, 121, 121, 121, 121, 281, 302, 302, 121, 121,
|
|
121, 121, 121, 121, 121, 121, 121, 121, 121, 121,
|
|
|
|
121, 121, 121, 121, 121, 108, 121, 107, 107, 107,
|
|
107, 107, 107, 107, 107, 107, 107, 107, 107, 107,
|
|
107, 107, 126, 99, 107, 260, 107, 257, 107, 107,
|
|
318, 243, 107, 244, 244, 244, 244, 244, 244, 305,
|
|
301, 305, 318, 107, 107, 107, 131, 99, 132, 252,
|
|
133, 319, 251, 250, 132, 249, 133, 326, 248, 76,
|
|
108, 302, 311, 319, 337, 337, 337, 133, 133, 296,
|
|
297, 298, 299, 296, 296, 296, 275, 276, 276, 276,
|
|
276, 276, 276, 238, 318, 237, 108, 133, 75, 236,
|
|
75, 76, 75, 235, 75, 75, 76, 234, 75, 227,
|
|
|
|
226, 343, 348, 359, 76, 319, 225, 224, 364, 75,
|
|
75, 75, 81, 223, 81, 215, 81, 214, 81, 81,
|
|
213, 212, 81, 306, 307, 308, 309, 306, 306, 306,
|
|
76, 108, 76, 81, 81, 81, 83, 108, 83, 211,
|
|
83, 137, 83, 83, 203, 202, 83, 201, 200, 326,
|
|
108, 342, 342, 342, 199, 198, 187, 83, 83, 83,
|
|
85, 186, 75, 185, 85, 184, 75, 75, 183, 182,
|
|
85, 288, 289, 289, 289, 289, 289, 289, 108, 137,
|
|
137, 85, 85, 75, 88, 130, 89, 89, 89, 89,
|
|
89, 89, 89, 128, 170, 166, 337, 337, 337, 108,
|
|
|
|
333, 334, 335, 333, 333, 333, 333, 165, 113, 111,
|
|
108, 154, 150, 76, 88, 149, 89, 89, 89, 89,
|
|
89, 89, 89, 76, 145, 84, 82, 76, 338, 339,
|
|
340, 338, 338, 338, 338, 336, 336, 336, 336, 336,
|
|
336, 336, 80, 76, 107, 78, 107, 77, 107, 76,
|
|
107, 107, 137, 130, 107, 108, 128, 125, 124, 342,
|
|
342, 342, 76, 123, 122, 107, 107, 107, 110, 113,
|
|
110, 111, 110, 108, 110, 110, 106, 105, 110, 341,
|
|
341, 341, 341, 341, 341, 341, 108, 104, 103, 110,
|
|
110, 110, 112, 102, 112, 97, 112, 96, 112, 112,
|
|
|
|
95, 94, 112, 84, 82, 343, 108, 344, 344, 344,
|
|
344, 344, 344, 112, 112, 112, 114, 80, 107, 78,
|
|
114, 77, 107, 107, 76, 381, 114, 353, 354, 355,
|
|
353, 353, 353, 353, 76, 381, 381, 114, 114, 107,
|
|
116, 381, 117, 117, 117, 117, 117, 117, 117, 381,
|
|
381, 381, 381, 381, 76, 356, 357, 358, 356, 356,
|
|
356, 356, 369, 370, 371, 369, 369, 369, 369, 108,
|
|
116, 381, 117, 117, 117, 117, 117, 117, 117, 381,
|
|
381, 348, 108, 349, 349, 349, 349, 349, 349, 76,
|
|
359, 381, 360, 360, 360, 360, 360, 360, 381, 108,
|
|
|
|
177, 381, 178, 178, 178, 178, 178, 178, 178, 381,
|
|
108, 381, 372, 373, 374, 372, 372, 372, 372, 76,
|
|
364, 381, 365, 365, 365, 365, 365, 365, 381, 76,
|
|
177, 381, 179, 179, 179, 179, 179, 179, 179, 108,
|
|
381, 381, 375, 375, 375, 375, 375, 375, 375, 108,
|
|
369, 369, 369, 369, 369, 369, 369, 381, 381, 76,
|
|
177, 381, 180, 180, 180, 180, 180, 181, 178, 76,
|
|
381, 381, 381, 381, 381, 381, 381, 76, 376, 376,
|
|
376, 376, 376, 377, 375, 381, 381, 381, 381, 76,
|
|
193, 381, 194, 194, 194, 194, 194, 194, 194, 381,
|
|
|
|
381, 381, 381, 381, 381, 76, 378, 378, 378, 378,
|
|
378, 378, 378, 381, 381, 381, 381, 381, 381, 108,
|
|
193, 381, 195, 195, 195, 195, 195, 195, 195, 381,
|
|
381, 381, 381, 108, 372, 372, 372, 372, 372, 372,
|
|
372, 379, 379, 379, 379, 379, 380, 378, 381, 108,
|
|
193, 381, 196, 196, 196, 196, 196, 197, 194, 381,
|
|
381, 108, 375, 375, 375, 375, 375, 375, 108, 375,
|
|
375, 375, 375, 375, 375, 375, 381, 381, 381, 108,
|
|
177, 381, 178, 178, 178, 178, 178, 178, 178, 76,
|
|
381, 381, 381, 381, 381, 381, 76, 378, 378, 378,
|
|
|
|
378, 378, 378, 378, 381, 381, 381, 381, 381, 76,
|
|
177, 381, 178, 178, 178, 178, 178, 178, 178, 381,
|
|
381, 381, 381, 381, 108, 378, 378, 378, 378, 378,
|
|
378, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
193, 381, 194, 194, 194, 194, 194, 194, 194, 381,
|
|
381, 381, 108, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
193, 381, 194, 194, 194, 194, 194, 194, 194, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
|
|
229, 381, 230, 230, 230, 230, 230, 230, 230, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
229, 381, 231, 231, 231, 231, 231, 231, 231, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
229, 381, 232, 232, 232, 232, 232, 233, 230, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
243, 381, 244, 244, 244, 244, 244, 244, 244, 381,
|
|
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
243, 381, 245, 245, 245, 245, 245, 245, 245, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
243, 381, 246, 246, 246, 246, 246, 247, 244, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
229, 381, 230, 230, 230, 230, 230, 230, 230, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
229, 381, 230, 230, 230, 230, 230, 230, 230, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
243, 381, 244, 244, 244, 244, 244, 244, 244, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
243, 381, 244, 244, 244, 244, 244, 244, 244, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
|
|
275, 276, 276, 276, 276, 276, 276, 276, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 76, 275,
|
|
277, 277, 277, 277, 277, 277, 277, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 76, 275, 278,
|
|
278, 278, 278, 278, 279, 276, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 76, 288, 289, 289,
|
|
289, 289, 289, 289, 289, 381, 381, 381, 381, 381,
|
|
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 108, 288, 290, 290, 290,
|
|
290, 290, 290, 290, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 108, 288, 291, 291, 291, 291,
|
|
291, 292, 289, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 275, 276, 276, 276, 276, 276,
|
|
276, 276, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
|
|
381, 381, 76, 275, 276, 276, 276, 276, 276, 276,
|
|
276, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 76, 288, 289, 289, 289, 289, 289, 289, 289,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
108, 288, 289, 289, 289, 289, 289, 289, 289, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
311, 381, 312, 312, 312, 312, 312, 312, 312, 381,
|
|
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
311, 381, 313, 313, 313, 313, 313, 313, 313, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
311, 381, 314, 314, 314, 314, 314, 315, 316, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
311, 381, 317, 317, 317, 312, 312, 312, 312, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
326, 381, 327, 327, 327, 327, 327, 327, 327, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
326, 381, 328, 328, 328, 328, 328, 328, 328, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
326, 381, 329, 329, 329, 329, 329, 330, 331, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
|
|
326, 381, 332, 332, 332, 327, 327, 327, 327, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 108,
|
|
311, 381, 316, 316, 316, 316, 316, 316, 316, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
311, 381, 316, 316, 316, 316, 316, 316, 316, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
311, 381, 316, 316, 316, 316, 316, 316, 336, 381,
|
|
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
311, 381, 336, 336, 336, 336, 336, 336, 336, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 76,
|
|
324, 381, 324, 381, 324, 381, 324, 324, 381, 381,
|
|
324, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 324, 324, 324, 326, 381, 331, 331, 331, 331,
|
|
331, 331, 331, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
|
|
381, 381, 381, 108, 326, 381, 331, 331, 331, 331,
|
|
331, 331, 331, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 326, 381, 331, 331, 331, 331,
|
|
331, 331, 341, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 326, 381, 341, 341, 341, 341,
|
|
341, 341, 341, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 343, 381, 344, 344, 344, 344,
|
|
|
|
344, 344, 344, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 76, 343, 381, 345, 345, 345, 345,
|
|
345, 345, 345, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 76, 343, 381, 346, 346, 346, 346,
|
|
346, 347, 344, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 76, 348, 381, 349, 349, 349, 349,
|
|
349, 349, 349, 381, 381, 381, 381, 381, 381, 381,
|
|
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 348, 381, 350, 350, 350, 350,
|
|
350, 350, 350, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 348, 381, 351, 351, 351, 351,
|
|
351, 352, 349, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 343, 381, 344, 344, 344, 344,
|
|
344, 344, 344, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
|
|
381, 381, 381, 76, 343, 381, 344, 344, 344, 344,
|
|
344, 344, 344, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 76, 348, 381, 349, 349, 349, 349,
|
|
349, 349, 349, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 348, 381, 349, 349, 349, 349,
|
|
349, 349, 349, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 359, 381, 360, 360, 360, 360,
|
|
|
|
360, 360, 360, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 76, 359, 381, 361, 361, 361, 361,
|
|
361, 361, 361, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 76, 359, 381, 362, 362, 362, 362,
|
|
362, 363, 360, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 76, 364, 381, 365, 365, 365, 365,
|
|
365, 365, 365, 381, 381, 381, 381, 381, 381, 381,
|
|
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 364, 381, 366, 366, 366, 366,
|
|
366, 366, 366, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 364, 381, 367, 367, 367, 367,
|
|
367, 368, 365, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 359, 381, 360, 360, 360, 360,
|
|
360, 360, 360, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
|
|
381, 381, 381, 76, 359, 381, 360, 360, 360, 360,
|
|
360, 360, 360, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 76, 364, 381, 365, 365, 365, 365,
|
|
365, 365, 365, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 364, 381, 365, 365, 365, 365,
|
|
365, 365, 365, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 108, 60, 60, 60, 60, 60, 60,
|
|
|
|
60, 21, 21, 21, 21, 21, 21, 21, 68, 68,
|
|
68, 68, 68, 68, 68, 75, 381, 381, 381, 381,
|
|
75, 75, 79, 79, 79, 79, 79, 79, 79, 81,
|
|
381, 381, 381, 381, 81, 81, 83, 381, 381, 381,
|
|
381, 83, 83, 85, 381, 85, 381, 381, 85, 85,
|
|
107, 381, 381, 381, 381, 107, 107, 110, 381, 381,
|
|
381, 381, 110, 110, 112, 381, 381, 381, 381, 112,
|
|
112, 114, 381, 114, 381, 381, 114, 114, 129, 381,
|
|
129, 129, 381, 381, 129, 136, 381, 136, 381, 136,
|
|
136, 136, 138, 138, 138, 138, 138, 138, 138, 143,
|
|
|
|
143, 143, 143, 143, 143, 143, 86, 381, 86, 381,
|
|
381, 86, 86, 139, 139, 139, 139, 139, 139, 139,
|
|
320, 320, 320, 320, 320, 320, 320, 324, 381, 381,
|
|
381, 381, 324, 324, 13, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381
|
|
|
|
} ;
|
|
|
|
static yyconst short int yy_chk[3295] =
|
|
{ 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, 1, 1, 1, 1, 1, 1, 1,
|
|
1, 1, 1, 1, 1, 1, 1, 1, 1, 2,
|
|
5, 6, 36, 58, 5, 6, 5, 6, 44, 66,
|
|
66, 44, 44, 44, 44, 44, 44, 44, 36, 58,
|
|
102, 2, 2, 100, 2, 74, 74, 127, 100, 395,
|
|
2, 102, 127, 2, 3, 3, 3, 3, 3, 3,
|
|
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
|
|
3, 3, 3, 7, 7, 7, 101, 7, 8, 8,
|
|
8, 37, 8, 7, 70, 189, 24, 72, 8, 89,
|
|
24, 24, 48, 218, 7, 7, 48, 48, 139, 8,
|
|
8, 69, 69, 70, 69, 69, 72, 24, 98, 98,
|
|
218, 69, 85, 48, 7, 117, 85, 85, 89, 8,
|
|
|
|
9, 9, 9, 69, 9, 24, 104, 101, 105, 37,
|
|
103, 48, 96, 85, 189, 96, 139, 103, 96, 105,
|
|
104, 106, 69, 378, 117, 131, 131, 106, 156, 98,
|
|
375, 85, 126, 126, 88, 88, 88, 88, 88, 88,
|
|
88, 9, 9, 9, 9, 9, 9, 9, 9, 9,
|
|
9, 9, 9, 9, 9, 9, 9, 9, 10, 10,
|
|
10, 88, 10, 92, 324, 92, 92, 92, 92, 92,
|
|
92, 109, 156, 126, 109, 109, 109, 109, 109, 109,
|
|
109, 124, 134, 134, 124, 155, 158, 124, 158, 144,
|
|
144, 140, 92, 140, 160, 174, 160, 155, 323, 10,
|
|
|
|
10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
|
|
10, 10, 10, 10, 10, 10, 11, 11, 11, 11,
|
|
11, 159, 161, 217, 114, 11, 11, 11, 114, 114,
|
|
144, 140, 320, 174, 182, 161, 159, 120, 11, 120,
|
|
120, 120, 120, 120, 120, 114, 116, 116, 116, 116,
|
|
116, 116, 116, 178, 205, 182, 191, 11, 12, 12,
|
|
12, 12, 12, 114, 171, 157, 120, 12, 12, 12,
|
|
157, 137, 191, 116, 145, 137, 171, 188, 145, 217,
|
|
12, 137, 178, 188, 145, 190, 190, 138, 138, 198,
|
|
138, 138, 205, 137, 194, 145, 145, 138, 192, 12,
|
|
|
|
25, 209, 25, 25, 25, 25, 25, 25, 25, 138,
|
|
198, 216, 192, 204, 230, 219, 216, 175, 175, 204,
|
|
175, 175, 209, 194, 219, 235, 228, 175, 138, 25,
|
|
26, 228, 26, 26, 26, 26, 26, 26, 26, 175,
|
|
238, 239, 240, 230, 241, 305, 235, 176, 176, 239,
|
|
176, 176, 244, 241, 276, 285, 285, 176, 175, 26,
|
|
27, 238, 27, 27, 27, 27, 27, 27, 27, 176,
|
|
177, 177, 177, 177, 177, 177, 177, 242, 253, 295,
|
|
249, 244, 276, 264, 293, 289, 253, 240, 176, 27,
|
|
30, 252, 242, 257, 30, 284, 30, 177, 264, 30,
|
|
|
|
30, 249, 30, 30, 30, 30, 30, 30, 30, 30,
|
|
30, 30, 252, 289, 257, 30, 30, 30, 30, 30,
|
|
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
|
|
30, 30, 30, 30, 30, 30, 30, 30, 30, 30,
|
|
30, 30, 30, 30, 30, 30, 30, 30, 30, 35,
|
|
35, 35, 274, 35, 267, 35, 35, 282, 181, 35,
|
|
181, 181, 181, 181, 181, 181, 265, 274, 267, 273,
|
|
35, 35, 35, 49, 266, 49, 49, 49, 49, 49,
|
|
49, 49, 266, 258, 286, 272, 286, 181, 193, 193,
|
|
193, 193, 193, 193, 193, 229, 229, 229, 229, 229,
|
|
|
|
229, 229, 49, 50, 258, 50, 50, 50, 50, 50,
|
|
50, 50, 265, 262, 197, 193, 197, 197, 197, 197,
|
|
197, 197, 229, 233, 261, 233, 233, 233, 233, 233,
|
|
233, 312, 50, 51, 262, 51, 51, 51, 51, 51,
|
|
51, 51, 304, 197, 243, 243, 243, 243, 243, 243,
|
|
243, 260, 233, 271, 303, 303, 304, 321, 321, 251,
|
|
312, 250, 51, 52, 280, 283, 294, 52, 248, 52,
|
|
237, 243, 52, 52, 271, 52, 52, 52, 52, 52,
|
|
52, 52, 52, 52, 52, 280, 283, 294, 52, 52,
|
|
52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
|
|
|
|
52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
|
|
52, 52, 52, 52, 52, 52, 52, 52, 52, 52,
|
|
52, 52, 57, 57, 57, 236, 57, 234, 57, 57,
|
|
300, 247, 57, 247, 247, 247, 247, 247, 247, 287,
|
|
301, 287, 310, 57, 57, 57, 65, 65, 65, 227,
|
|
65, 300, 226, 225, 65, 224, 65, 327, 223, 287,
|
|
247, 301, 317, 310, 317, 317, 317, 65, 65, 275,
|
|
275, 275, 275, 275, 275, 275, 279, 279, 279, 279,
|
|
279, 279, 279, 215, 318, 214, 327, 65, 76, 213,
|
|
76, 317, 76, 212, 76, 76, 275, 211, 76, 203,
|
|
|
|
202, 344, 349, 360, 279, 318, 201, 200, 365, 76,
|
|
76, 76, 82, 199, 82, 187, 82, 186, 82, 82,
|
|
185, 184, 82, 288, 288, 288, 288, 288, 288, 288,
|
|
344, 349, 360, 82, 82, 82, 84, 365, 84, 183,
|
|
84, 172, 84, 84, 170, 169, 84, 168, 167, 332,
|
|
288, 332, 332, 332, 166, 165, 154, 84, 84, 84,
|
|
87, 153, 87, 152, 87, 151, 87, 87, 150, 149,
|
|
87, 292, 292, 292, 292, 292, 292, 292, 332, 143,
|
|
136, 87, 87, 87, 90, 130, 90, 90, 90, 90,
|
|
90, 90, 90, 128, 125, 123, 337, 337, 337, 292,
|
|
|
|
311, 311, 311, 311, 311, 311, 311, 122, 112, 110,
|
|
107, 97, 95, 90, 91, 94, 91, 91, 91, 91,
|
|
91, 91, 91, 337, 86, 83, 81, 311, 326, 326,
|
|
326, 326, 326, 326, 326, 336, 336, 336, 336, 336,
|
|
336, 336, 79, 91, 108, 78, 108, 77, 108, 75,
|
|
108, 108, 68, 62, 108, 326, 59, 56, 55, 342,
|
|
342, 342, 336, 54, 53, 108, 108, 108, 111, 47,
|
|
111, 45, 111, 43, 111, 111, 42, 41, 111, 341,
|
|
341, 341, 341, 341, 341, 341, 342, 40, 39, 111,
|
|
111, 111, 113, 38, 113, 34, 113, 33, 113, 113,
|
|
|
|
32, 31, 113, 22, 19, 347, 341, 347, 347, 347,
|
|
347, 347, 347, 113, 113, 113, 115, 18, 115, 17,
|
|
115, 15, 115, 115, 14, 13, 115, 343, 343, 343,
|
|
343, 343, 343, 343, 347, 0, 0, 115, 115, 115,
|
|
118, 0, 118, 118, 118, 118, 118, 118, 118, 0,
|
|
0, 0, 0, 0, 343, 348, 348, 348, 348, 348,
|
|
348, 348, 359, 359, 359, 359, 359, 359, 359, 118,
|
|
119, 0, 119, 119, 119, 119, 119, 119, 119, 0,
|
|
0, 352, 348, 352, 352, 352, 352, 352, 352, 359,
|
|
363, 0, 363, 363, 363, 363, 363, 363, 0, 119,
|
|
|
|
146, 0, 146, 146, 146, 146, 146, 146, 146, 0,
|
|
352, 0, 364, 364, 364, 364, 364, 364, 364, 363,
|
|
368, 0, 368, 368, 368, 368, 368, 368, 0, 146,
|
|
147, 0, 147, 147, 147, 147, 147, 147, 147, 364,
|
|
0, 0, 369, 369, 369, 369, 369, 369, 369, 368,
|
|
370, 370, 370, 370, 370, 370, 370, 0, 0, 147,
|
|
148, 0, 148, 148, 148, 148, 148, 148, 148, 369,
|
|
0, 0, 0, 0, 0, 0, 0, 370, 371, 371,
|
|
371, 371, 371, 371, 371, 0, 0, 0, 0, 148,
|
|
162, 0, 162, 162, 162, 162, 162, 162, 162, 0,
|
|
|
|
0, 0, 0, 0, 0, 371, 372, 372, 372, 372,
|
|
372, 372, 372, 0, 0, 0, 0, 0, 0, 162,
|
|
163, 0, 163, 163, 163, 163, 163, 163, 163, 0,
|
|
0, 0, 0, 372, 373, 373, 373, 373, 373, 373,
|
|
373, 374, 374, 374, 374, 374, 374, 374, 0, 163,
|
|
164, 0, 164, 164, 164, 164, 164, 164, 164, 0,
|
|
0, 373, 377, 377, 377, 377, 377, 377, 374, 376,
|
|
376, 376, 376, 376, 376, 376, 0, 0, 0, 164,
|
|
179, 0, 179, 179, 179, 179, 179, 179, 179, 377,
|
|
0, 0, 0, 0, 0, 0, 376, 379, 379, 379,
|
|
|
|
379, 379, 379, 379, 0, 0, 0, 0, 0, 179,
|
|
180, 0, 180, 180, 180, 180, 180, 180, 180, 0,
|
|
0, 0, 0, 0, 379, 380, 380, 380, 380, 380,
|
|
380, 0, 0, 0, 0, 0, 0, 0, 0, 180,
|
|
195, 0, 195, 195, 195, 195, 195, 195, 195, 0,
|
|
0, 0, 380, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 195,
|
|
196, 0, 196, 196, 196, 196, 196, 196, 196, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 196,
|
|
|
|
206, 0, 206, 206, 206, 206, 206, 206, 206, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 206,
|
|
207, 0, 207, 207, 207, 207, 207, 207, 207, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 207,
|
|
208, 0, 208, 208, 208, 208, 208, 208, 208, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 208,
|
|
220, 0, 220, 220, 220, 220, 220, 220, 220, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 220,
|
|
221, 0, 221, 221, 221, 221, 221, 221, 221, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 221,
|
|
222, 0, 222, 222, 222, 222, 222, 222, 222, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 222,
|
|
231, 0, 231, 231, 231, 231, 231, 231, 231, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 231,
|
|
232, 0, 232, 232, 232, 232, 232, 232, 232, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 232,
|
|
245, 0, 245, 245, 245, 245, 245, 245, 245, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 245,
|
|
246, 0, 246, 246, 246, 246, 246, 246, 246, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 246,
|
|
|
|
254, 254, 254, 254, 254, 254, 254, 254, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 254, 255,
|
|
255, 255, 255, 255, 255, 255, 255, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 255, 256, 256,
|
|
256, 256, 256, 256, 256, 256, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 256, 268, 268, 268,
|
|
268, 268, 268, 268, 268, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 268, 269, 269, 269, 269,
|
|
269, 269, 269, 269, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 269, 270, 270, 270, 270, 270,
|
|
270, 270, 270, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 270, 277, 277, 277, 277, 277, 277,
|
|
277, 277, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 277, 278, 278, 278, 278, 278, 278, 278,
|
|
278, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 278, 290, 290, 290, 290, 290, 290, 290, 290,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
290, 291, 291, 291, 291, 291, 291, 291, 291, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 291,
|
|
296, 0, 296, 296, 296, 296, 296, 296, 296, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 296,
|
|
297, 0, 297, 297, 297, 297, 297, 297, 297, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 297,
|
|
298, 0, 298, 298, 298, 298, 298, 298, 298, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 298,
|
|
299, 0, 299, 299, 299, 299, 299, 299, 299, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 299,
|
|
306, 0, 306, 306, 306, 306, 306, 306, 306, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 306,
|
|
307, 0, 307, 307, 307, 307, 307, 307, 307, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 307,
|
|
308, 0, 308, 308, 308, 308, 308, 308, 308, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 308,
|
|
|
|
309, 0, 309, 309, 309, 309, 309, 309, 309, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 309,
|
|
313, 0, 313, 313, 313, 313, 313, 313, 313, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 313,
|
|
314, 0, 314, 314, 314, 314, 314, 314, 314, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 314,
|
|
315, 0, 315, 315, 315, 315, 315, 315, 315, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 315,
|
|
316, 0, 316, 316, 316, 316, 316, 316, 316, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 316,
|
|
325, 0, 325, 0, 325, 0, 325, 325, 0, 0,
|
|
325, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 325, 325, 325, 328, 0, 328, 328, 328, 328,
|
|
328, 328, 328, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 328, 329, 0, 329, 329, 329, 329,
|
|
329, 329, 329, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 329, 330, 0, 330, 330, 330, 330,
|
|
330, 330, 330, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 330, 331, 0, 331, 331, 331, 331,
|
|
331, 331, 331, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 331, 333, 0, 333, 333, 333, 333,
|
|
|
|
333, 333, 333, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 333, 334, 0, 334, 334, 334, 334,
|
|
334, 334, 334, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 334, 335, 0, 335, 335, 335, 335,
|
|
335, 335, 335, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 335, 338, 0, 338, 338, 338, 338,
|
|
338, 338, 338, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 338, 339, 0, 339, 339, 339, 339,
|
|
339, 339, 339, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 339, 340, 0, 340, 340, 340, 340,
|
|
340, 340, 340, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 340, 345, 0, 345, 345, 345, 345,
|
|
345, 345, 345, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 345, 346, 0, 346, 346, 346, 346,
|
|
346, 346, 346, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 346, 350, 0, 350, 350, 350, 350,
|
|
350, 350, 350, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 350, 351, 0, 351, 351, 351, 351,
|
|
351, 351, 351, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 351, 353, 0, 353, 353, 353, 353,
|
|
|
|
353, 353, 353, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 353, 354, 0, 354, 354, 354, 354,
|
|
354, 354, 354, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 354, 355, 0, 355, 355, 355, 355,
|
|
355, 355, 355, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 355, 356, 0, 356, 356, 356, 356,
|
|
356, 356, 356, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 356, 357, 0, 357, 357, 357, 357,
|
|
357, 357, 357, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 357, 358, 0, 358, 358, 358, 358,
|
|
358, 358, 358, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 358, 361, 0, 361, 361, 361, 361,
|
|
361, 361, 361, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
|
|
0, 0, 0, 361, 362, 0, 362, 362, 362, 362,
|
|
362, 362, 362, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 362, 366, 0, 366, 366, 366, 366,
|
|
366, 366, 366, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 366, 367, 0, 367, 367, 367, 367,
|
|
367, 367, 367, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
|
0, 0, 0, 367, 382, 382, 382, 382, 382, 382,
|
|
|
|
382, 383, 383, 383, 383, 383, 383, 383, 384, 384,
|
|
384, 384, 384, 384, 384, 385, 0, 0, 0, 0,
|
|
385, 385, 386, 386, 386, 386, 386, 386, 386, 387,
|
|
0, 0, 0, 0, 387, 387, 388, 0, 0, 0,
|
|
0, 388, 388, 389, 0, 389, 0, 0, 389, 389,
|
|
390, 0, 0, 0, 0, 390, 390, 391, 0, 0,
|
|
0, 0, 391, 391, 392, 0, 0, 0, 0, 392,
|
|
392, 393, 0, 393, 0, 0, 393, 393, 394, 0,
|
|
394, 394, 0, 0, 394, 396, 0, 396, 0, 396,
|
|
396, 396, 397, 397, 397, 397, 397, 397, 397, 398,
|
|
|
|
398, 398, 398, 398, 398, 398, 399, 0, 399, 0,
|
|
0, 399, 399, 400, 400, 400, 400, 400, 400, 400,
|
|
401, 401, 401, 401, 401, 401, 401, 402, 0, 0,
|
|
0, 0, 402, 402, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381, 381, 381, 381, 381, 381, 381,
|
|
381, 381, 381, 381
|
|
|
|
} ;
|
|
|
|
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
|
|
#define YY_RESTORE_YY_MORE_OFFSET
|
|
char *yytext;
|
|
#line 1 "parse.lex"
|
|
#define INITIAL 0
|
|
#line 2 "parse.lex"
|
|
/*
|
|
* Copyright (c) 1996, 1998-2004 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
*
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
*
|
|
* Sponsored in part by the Defense Advanced Research Projects
|
|
* Agency (DARPA) and Air Force Research Laboratory, Air Force
|
|
* Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
|
*/
|
|
|
|
#include "config.h"
|
|
|
|
#include <sys/types.h>
|
|
#include <sys/param.h>
|
|
#include <stdio.h>
|
|
#ifdef STDC_HEADERS
|
|
# include <stdlib.h>
|
|
# include <stddef.h>
|
|
#else
|
|
# ifdef HAVE_STDLIB_H
|
|
# include <stdlib.h>
|
|
# endif
|
|
#endif /* STDC_HEADERS */
|
|
#ifdef HAVE_STRING_H
|
|
# include <string.h>
|
|
#else
|
|
# ifdef HAVE_STRINGS_H
|
|
# include <strings.h>
|
|
# endif
|
|
#endif /* HAVE_STRING_H */
|
|
#ifdef HAVE_UNISTD_H
|
|
# include <unistd.h>
|
|
#endif /* HAVE_UNISTD_H */
|
|
#if defined(HAVE_MALLOC_H) && !defined(STDC_HEADERS)
|
|
# include <malloc.h>
|
|
#endif /* HAVE_MALLOC_H && !STDC_HEADERS */
|
|
#include <ctype.h>
|
|
#include "sudo.h"
|
|
#include "parse.h"
|
|
#include <sudo.tab.h>
|
|
|
|
#ifndef lint
|
|
static const char rcsid[] = "$Sudo$";
|
|
#endif /* lint */
|
|
|
|
#undef yywrap /* guard against a yywrap macro */
|
|
|
|
extern YYSTYPE yylval;
|
|
extern int clearaliases;
|
|
int sudolineno = 1;
|
|
char *sudoers;
|
|
static int sawspace = 0;
|
|
static int arg_len = 0;
|
|
static int arg_size = 0;
|
|
|
|
static int fill __P((char *, int));
|
|
static int fill_cmnd __P((char *, int));
|
|
static int fill_args __P((char *, int, int));
|
|
static int buffer_frob __P((char *));
|
|
extern void reset_aliases __P((void));
|
|
extern void yyerror __P((const char *));
|
|
|
|
#define push_include(_p) (buffer_frob((_p)))
|
|
#define pop_include() (buffer_frob(NULL))
|
|
|
|
/* realloc() to size + COMMANDARGINC to make room for command args */
|
|
#define COMMANDARGINC 64
|
|
|
|
#ifdef TRACELEXER
|
|
#define LEXTRACE(msg) fputs(msg, stderr)
|
|
#else
|
|
#define LEXTRACE(msg)
|
|
#endif
|
|
#define YY_NO_UNPUT 1
|
|
/* XXX - convert GOTRUNAS to exclusive state (GOTDEFS cannot be) */
|
|
#define GOTRUNAS 1
|
|
|
|
#define GOTDEFS 2
|
|
|
|
#define GOTCMND 3
|
|
|
|
#define STARTDEFS 4
|
|
|
|
#define INDEFS 5
|
|
|
|
#line 1323 "lex.yy.c"
|
|
|
|
/* Macros after this point can all be overridden by user definitions in
|
|
* section 1.
|
|
*/
|
|
|
|
#ifndef YY_SKIP_YYWRAP
|
|
#ifdef __cplusplus
|
|
extern "C" int yywrap YY_PROTO(( void ));
|
|
#else
|
|
extern int yywrap YY_PROTO(( void ));
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef YY_NO_UNPUT
|
|
static void yyunput YY_PROTO(( int c, char *buf_ptr ));
|
|
#endif
|
|
|
|
#ifndef yytext_ptr
|
|
static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
|
|
#endif
|
|
|
|
#ifdef YY_NEED_STRLEN
|
|
static int yy_flex_strlen YY_PROTO(( yyconst char * ));
|
|
#endif
|
|
|
|
#ifndef YY_NO_INPUT
|
|
#ifdef __cplusplus
|
|
static int yyinput YY_PROTO(( void ));
|
|
#else
|
|
static int input YY_PROTO(( void ));
|
|
#endif
|
|
#endif
|
|
|
|
#if YY_STACK_USED
|
|
static int yy_start_stack_ptr = 0;
|
|
static int yy_start_stack_depth = 0;
|
|
static int *yy_start_stack = 0;
|
|
#ifndef YY_NO_PUSH_STATE
|
|
static void yy_push_state YY_PROTO(( int new_state ));
|
|
#endif
|
|
#ifndef YY_NO_POP_STATE
|
|
static void yy_pop_state YY_PROTO(( void ));
|
|
#endif
|
|
#ifndef YY_NO_TOP_STATE
|
|
static int yy_top_state YY_PROTO(( void ));
|
|
#endif
|
|
|
|
#else
|
|
#define YY_NO_PUSH_STATE 1
|
|
#define YY_NO_POP_STATE 1
|
|
#define YY_NO_TOP_STATE 1
|
|
#endif
|
|
|
|
#ifdef YY_MALLOC_DECL
|
|
YY_MALLOC_DECL
|
|
#else
|
|
#ifdef __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 = '*', n; \
|
|
for ( n = 0; n < max_size && \
|
|
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
|
|
buf[n] = (char) c; \
|
|
if ( c == '\n' ) \
|
|
buf[n++] = (char) c; \
|
|
if ( c == EOF && ferror( yyin ) ) \
|
|
YY_FATAL_ERROR( "input in flex scanner failed" ); \
|
|
result = n; \
|
|
} \
|
|
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
|
|
|
|
#define YY_RULE_SETUP \
|
|
if ( yyleng > 0 ) \
|
|
yy_current_buffer->yy_at_bol = \
|
|
(yytext[yyleng - 1] == '\n'); \
|
|
YY_USER_ACTION
|
|
|
|
YY_DECL
|
|
{
|
|
register yy_state_type yy_current_state;
|
|
register char *yy_cp, *yy_bp;
|
|
register int yy_act;
|
|
|
|
#line 106 "parse.lex"
|
|
|
|
#line 1479 "lex.yy.c"
|
|
|
|
if ( yy_init )
|
|
{
|
|
yy_init = 0;
|
|
|
|
#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_current_buffer =
|
|
yy_create_buffer( yyin, YY_BUF_SIZE );
|
|
|
|
yy_load_buffer_state();
|
|
}
|
|
|
|
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;
|
|
yy_current_state += YY_AT_BOL();
|
|
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 >= 382 )
|
|
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] != 3235 );
|
|
|
|
yy_find_action:
|
|
yy_act = yy_accept[yy_current_state];
|
|
if ( yy_act == 0 )
|
|
{ /* have to back up */
|
|
yy_cp = yy_last_accepting_cpos;
|
|
yy_current_state = yy_last_accepting_state;
|
|
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_RULE_SETUP
|
|
#line 107 "parse.lex"
|
|
BEGIN STARTDEFS;
|
|
YY_BREAK
|
|
case 2:
|
|
YY_RULE_SETUP
|
|
#line 109 "parse.lex"
|
|
{
|
|
BEGIN INDEFS;
|
|
LEXTRACE("DEFVAR ");
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
return(DEFVAR);
|
|
}
|
|
YY_BREAK
|
|
|
|
case 3:
|
|
YY_RULE_SETUP
|
|
#line 118 "parse.lex"
|
|
{
|
|
BEGIN STARTDEFS;
|
|
LEXTRACE(", ");
|
|
return(',');
|
|
} /* return ',' */
|
|
YY_BREAK
|
|
case 4:
|
|
YY_RULE_SETUP
|
|
#line 124 "parse.lex"
|
|
{
|
|
LEXTRACE("= ");
|
|
return('=');
|
|
} /* return '=' */
|
|
YY_BREAK
|
|
case 5:
|
|
YY_RULE_SETUP
|
|
#line 129 "parse.lex"
|
|
{
|
|
LEXTRACE("+= ");
|
|
return('+');
|
|
} /* return '+' */
|
|
YY_BREAK
|
|
case 6:
|
|
YY_RULE_SETUP
|
|
#line 134 "parse.lex"
|
|
{
|
|
LEXTRACE("-= ");
|
|
return('-');
|
|
} /* return '-' */
|
|
YY_BREAK
|
|
case 7:
|
|
YY_RULE_SETUP
|
|
#line 139 "parse.lex"
|
|
{
|
|
LEXTRACE("WORD(1) ");
|
|
if (!fill(yytext + 1, yyleng - 2))
|
|
yyterminate();
|
|
return(WORD);
|
|
}
|
|
YY_BREAK
|
|
case 8:
|
|
YY_RULE_SETUP
|
|
#line 146 "parse.lex"
|
|
{
|
|
LEXTRACE("WORD(2) ");
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
return(WORD);
|
|
}
|
|
YY_BREAK
|
|
|
|
|
|
case 9:
|
|
YY_RULE_SETUP
|
|
#line 155 "parse.lex"
|
|
{
|
|
/* quoted fnmatch glob char, pass verbatim */
|
|
LEXTRACE("QUOTEDCHAR ");
|
|
if (!fill_args(yytext, 2, sawspace))
|
|
yyterminate();
|
|
sawspace = FALSE;
|
|
}
|
|
YY_BREAK
|
|
case 10:
|
|
YY_RULE_SETUP
|
|
#line 163 "parse.lex"
|
|
{
|
|
/* quoted sudoers special char, strip backslash */
|
|
LEXTRACE("QUOTEDCHAR ");
|
|
if (!fill_args(yytext + 1, 1, sawspace))
|
|
yyterminate();
|
|
sawspace = FALSE;
|
|
}
|
|
YY_BREAK
|
|
case 11:
|
|
YY_RULE_SETUP
|
|
#line 171 "parse.lex"
|
|
{
|
|
BEGIN INITIAL;
|
|
yyless(0);
|
|
return(COMMAND);
|
|
} /* end of command line args */
|
|
YY_BREAK
|
|
case 12:
|
|
YY_RULE_SETUP
|
|
#line 177 "parse.lex"
|
|
{
|
|
LEXTRACE("ARG ");
|
|
if (!fill_args(yytext, yyleng, sawspace))
|
|
yyterminate();
|
|
sawspace = FALSE;
|
|
} /* a command line arg */
|
|
YY_BREAK
|
|
|
|
case 13:
|
|
YY_RULE_SETUP
|
|
#line 185 "parse.lex"
|
|
{
|
|
char *cp, *ep;
|
|
++sudolineno;
|
|
/* pull out path from #include line */
|
|
for (cp = yytext + 9; isspace(*cp); cp++)
|
|
continue;
|
|
for (ep = cp; *ep != '\0' && !isspace(*ep); ep++)
|
|
continue;
|
|
*ep = '\0';
|
|
/* push current buffer and switch to include file */
|
|
if (!push_include(cp))
|
|
yyterminate();
|
|
LEXTRACE("INCLUDE\n");
|
|
return(COMMENT);
|
|
}
|
|
YY_BREAK
|
|
case 14:
|
|
YY_RULE_SETUP
|
|
#line 201 "parse.lex"
|
|
{
|
|
BEGIN GOTDEFS;
|
|
switch (yytext[8]) {
|
|
case ':':
|
|
yyless(9);
|
|
LEXTRACE("DEFAULTS_USER ");
|
|
return(DEFAULTS_USER);
|
|
case '>':
|
|
yyless(9);
|
|
LEXTRACE("DEFAULTS_RUNAS ");
|
|
return(DEFAULTS_RUNAS);
|
|
case '@':
|
|
yyless(9);
|
|
LEXTRACE("DEFAULTS_HOST ");
|
|
return(DEFAULTS_HOST);
|
|
default:
|
|
LEXTRACE("DEFAULTS ");
|
|
return(DEFAULTS);
|
|
}
|
|
}
|
|
YY_BREAK
|
|
case 15:
|
|
YY_RULE_SETUP
|
|
#line 222 "parse.lex"
|
|
{
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
switch (*yytext) {
|
|
case 'H':
|
|
LEXTRACE("HOSTALIAS ");
|
|
return(HOSTALIAS);
|
|
case 'C':
|
|
LEXTRACE("CMNDALIAS ");
|
|
return(CMNDALIAS);
|
|
case 'U':
|
|
LEXTRACE("USERALIAS ");
|
|
return(USERALIAS);
|
|
case 'R':
|
|
LEXTRACE("RUNASALIAS ");
|
|
BEGIN GOTRUNAS;
|
|
return(RUNASALIAS);
|
|
}
|
|
}
|
|
YY_BREAK
|
|
case 16:
|
|
YY_RULE_SETUP
|
|
#line 242 "parse.lex"
|
|
{
|
|
/* cmnd does not require passwd for this user */
|
|
LEXTRACE("NOPASSWD ");
|
|
return(NOPASSWD);
|
|
}
|
|
YY_BREAK
|
|
case 17:
|
|
YY_RULE_SETUP
|
|
#line 248 "parse.lex"
|
|
{
|
|
/* cmnd requires passwd for this user */
|
|
LEXTRACE("PASSWD ");
|
|
return(PASSWD);
|
|
}
|
|
YY_BREAK
|
|
case 18:
|
|
YY_RULE_SETUP
|
|
#line 254 "parse.lex"
|
|
{
|
|
LEXTRACE("NOEXEC ");
|
|
return(NOEXEC);
|
|
}
|
|
YY_BREAK
|
|
case 19:
|
|
YY_RULE_SETUP
|
|
#line 259 "parse.lex"
|
|
{
|
|
LEXTRACE("EXEC ");
|
|
return(EXEC);
|
|
}
|
|
YY_BREAK
|
|
case 20:
|
|
YY_RULE_SETUP
|
|
#line 264 "parse.lex"
|
|
{
|
|
LEXTRACE("NOMONITOR ");
|
|
return(NOMONITOR);
|
|
}
|
|
YY_BREAK
|
|
case 21:
|
|
YY_RULE_SETUP
|
|
#line 269 "parse.lex"
|
|
{
|
|
LEXTRACE("MONITOR ");
|
|
return(MONITOR);
|
|
}
|
|
YY_BREAK
|
|
case 22:
|
|
YY_RULE_SETUP
|
|
#line 274 "parse.lex"
|
|
{
|
|
/* netgroup */
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("NETGROUP ");
|
|
return(NETGROUP);
|
|
}
|
|
YY_BREAK
|
|
case 23:
|
|
YY_RULE_SETUP
|
|
#line 282 "parse.lex"
|
|
{
|
|
/* UN*X group */
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("GROUP ");
|
|
return(USERGROUP);
|
|
}
|
|
YY_BREAK
|
|
case 24:
|
|
YY_RULE_SETUP
|
|
#line 290 "parse.lex"
|
|
{
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("NTWKADDR ");
|
|
return(NTWKADDR);
|
|
}
|
|
YY_BREAK
|
|
case 25:
|
|
YY_RULE_SETUP
|
|
#line 297 "parse.lex"
|
|
{
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("NTWKADDR ");
|
|
return(NTWKADDR);
|
|
}
|
|
YY_BREAK
|
|
case 26:
|
|
YY_RULE_SETUP
|
|
#line 304 "parse.lex"
|
|
{
|
|
BEGIN GOTRUNAS;
|
|
LEXTRACE("RUNAS ");
|
|
return (RUNAS);
|
|
}
|
|
YY_BREAK
|
|
case 27:
|
|
YY_RULE_SETUP
|
|
#line 310 "parse.lex"
|
|
{
|
|
if (strcmp(yytext, "ALL") == 0) {
|
|
LEXTRACE("ALL ");
|
|
return(ALL);
|
|
} else {
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("ALIAS ");
|
|
return(ALIAS);
|
|
}
|
|
}
|
|
YY_BREAK
|
|
case 28:
|
|
YY_RULE_SETUP
|
|
#line 322 "parse.lex"
|
|
{
|
|
/* username/uid that user can run command as */
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("WORD(3) ");
|
|
return(WORD);
|
|
}
|
|
YY_BREAK
|
|
case 29:
|
|
YY_RULE_SETUP
|
|
#line 330 "parse.lex"
|
|
{
|
|
BEGIN INITIAL;
|
|
}
|
|
YY_BREAK
|
|
case 30:
|
|
YY_RULE_SETUP
|
|
#line 334 "parse.lex"
|
|
{
|
|
BEGIN GOTCMND;
|
|
LEXTRACE("COMMAND ");
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
yyterminate();
|
|
} /* sudo -e */
|
|
YY_BREAK
|
|
case 31:
|
|
YY_RULE_SETUP
|
|
#line 341 "parse.lex"
|
|
{
|
|
/* directories can't have args... */
|
|
if (yytext[yyleng - 1] == '/') {
|
|
LEXTRACE("COMMAND ");
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
yyterminate();
|
|
return(COMMAND);
|
|
} else {
|
|
BEGIN GOTCMND;
|
|
LEXTRACE("COMMAND ");
|
|
if (!fill_cmnd(yytext, yyleng))
|
|
yyterminate();
|
|
}
|
|
} /* a pathname */
|
|
YY_BREAK
|
|
case 32:
|
|
YY_RULE_SETUP
|
|
#line 356 "parse.lex"
|
|
{
|
|
/* a word */
|
|
if (!fill(yytext, yyleng))
|
|
yyterminate();
|
|
LEXTRACE("WORD(4) ");
|
|
return(WORD);
|
|
}
|
|
YY_BREAK
|
|
case 33:
|
|
YY_RULE_SETUP
|
|
#line 364 "parse.lex"
|
|
{
|
|
LEXTRACE(", ");
|
|
return(',');
|
|
} /* return ',' */
|
|
YY_BREAK
|
|
case 34:
|
|
YY_RULE_SETUP
|
|
#line 369 "parse.lex"
|
|
{
|
|
LEXTRACE("= ");
|
|
return('=');
|
|
} /* return '=' */
|
|
YY_BREAK
|
|
case 35:
|
|
YY_RULE_SETUP
|
|
#line 374 "parse.lex"
|
|
{
|
|
LEXTRACE(": ");
|
|
return(':');
|
|
} /* return ':' */
|
|
YY_BREAK
|
|
case 36:
|
|
YY_RULE_SETUP
|
|
#line 379 "parse.lex"
|
|
{
|
|
if (yyleng % 2 == 1)
|
|
return('!'); /* return '!' */
|
|
}
|
|
YY_BREAK
|
|
case 37:
|
|
YY_RULE_SETUP
|
|
#line 384 "parse.lex"
|
|
{
|
|
BEGIN INITIAL;
|
|
++sudolineno;
|
|
LEXTRACE("\n");
|
|
return(COMMENT);
|
|
} /* return newline */
|
|
YY_BREAK
|
|
case 38:
|
|
YY_RULE_SETUP
|
|
#line 391 "parse.lex"
|
|
{ /* throw away space/tabs */
|
|
sawspace = TRUE; /* but remember for fill_args */
|
|
}
|
|
YY_BREAK
|
|
case 39:
|
|
YY_RULE_SETUP
|
|
#line 395 "parse.lex"
|
|
{
|
|
sawspace = TRUE; /* remember for fill_args */
|
|
++sudolineno;
|
|
LEXTRACE("\n\t");
|
|
} /* throw away EOL after \ */
|
|
YY_BREAK
|
|
case 40:
|
|
YY_RULE_SETUP
|
|
#line 401 "parse.lex"
|
|
{
|
|
BEGIN INITIAL;
|
|
++sudolineno;
|
|
LEXTRACE("\n");
|
|
return(COMMENT);
|
|
} /* return comments */
|
|
YY_BREAK
|
|
case 41:
|
|
YY_RULE_SETUP
|
|
#line 408 "parse.lex"
|
|
{
|
|
LEXTRACE("ERROR ");
|
|
return(ERROR);
|
|
} /* parse error */
|
|
YY_BREAK
|
|
case YY_STATE_EOF(INITIAL):
|
|
case YY_STATE_EOF(GOTRUNAS):
|
|
case YY_STATE_EOF(GOTDEFS):
|
|
case YY_STATE_EOF(GOTCMND):
|
|
case YY_STATE_EOF(STARTDEFS):
|
|
case YY_STATE_EOF(INDEFS):
|
|
#line 413 "parse.lex"
|
|
{
|
|
if (YY_START != INITIAL) {
|
|
BEGIN INITIAL;
|
|
LEXTRACE("ERROR ");
|
|
return(ERROR);
|
|
}
|
|
if (!pop_include())
|
|
yyterminate();
|
|
}
|
|
YY_BREAK
|
|
case 42:
|
|
YY_RULE_SETUP
|
|
#line 423 "parse.lex"
|
|
ECHO;
|
|
YY_BREAK
|
|
#line 2014 "lex.yy.c"
|
|
|
|
case YY_END_OF_BUFFER:
|
|
{
|
|
/* Amount of text matched not including the EOB char. */
|
|
int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
|
|
|
|
/* Undo the effects of YY_DO_BEFORE_ACTION. */
|
|
*yy_cp = yy_hold_char;
|
|
YY_RESTORE_YY_MORE_OFFSET
|
|
|
|
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;
|
|
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 single character, 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 = (int) (yy_c_buf_p - yytext_ptr) - 1;
|
|
|
|
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_current_buffer->yy_n_chars = 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 =
|
|
(int) (yy_c_buf_p - b->yy_ch_buf);
|
|
|
|
if ( b->yy_is_our_buffer )
|
|
{
|
|
int new_size = b->yy_buf_size * 2;
|
|
|
|
if ( new_size <= 0 )
|
|
b->yy_buf_size += b->yy_buf_size / 8;
|
|
else
|
|
b->yy_buf_size *= 2;
|
|
|
|
b->yy_ch_buf = (char *)
|
|
/* Include room in for 2 EOB chars. */
|
|
yy_flex_realloc( (void *) b->yy_ch_buf,
|
|
b->yy_buf_size + 2 );
|
|
}
|
|
else
|
|
/* Can't grow it, we don't own it. */
|
|
b->yy_ch_buf = 0;
|
|
|
|
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 );
|
|
|
|
yy_current_buffer->yy_n_chars = yy_n_chars;
|
|
}
|
|
|
|
if ( yy_n_chars == 0 )
|
|
{
|
|
if ( number_to_move == YY_MORE_ADJ )
|
|
{
|
|
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_ptr = &yy_current_buffer->yy_ch_buf[0];
|
|
|
|
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;
|
|
|
|
yy_current_state = yy_start;
|
|
yy_current_state += YY_AT_BOL();
|
|
|
|
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 >= 382 )
|
|
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 >= 382 )
|
|
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 == 381);
|
|
|
|
return yy_is_jam ? 0 : yy_current_state;
|
|
}
|
|
|
|
|
|
#ifndef YY_NO_UNPUT
|
|
#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 += (int) (dest - source);
|
|
yy_bp += (int) (dest - source);
|
|
yy_current_buffer->yy_n_chars =
|
|
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" );
|
|
}
|
|
|
|
*--yy_cp = (char) c;
|
|
|
|
|
|
yytext_ptr = yy_bp;
|
|
yy_hold_char = *yy_cp;
|
|
yy_c_buf_p = yy_cp;
|
|
}
|
|
#endif /* ifndef YY_NO_UNPUT */
|
|
|
|
|
|
#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 */
|
|
int offset = yy_c_buf_p - yytext_ptr;
|
|
++yy_c_buf_p;
|
|
|
|
switch ( yy_get_next_buffer() )
|
|
{
|
|
case EOB_ACT_LAST_MATCH:
|
|
/* This happens because yy_g_n_b()
|
|
* sees that we've accumulated a
|
|
* token and flags that we need to
|
|
* try matching the token before
|
|
* proceeding. But for input(),
|
|
* there's no matching to consider.
|
|
* So convert the EOB_ACT_LAST_MATCH
|
|
* to EOB_ACT_END_OF_FILE.
|
|
*/
|
|
|
|
/* Reset buffer status. */
|
|
yyrestart( yyin );
|
|
|
|
/* fall through */
|
|
|
|
case EOB_ACT_END_OF_FILE:
|
|
{
|
|
if ( yywrap() )
|
|
return EOF;
|
|
|
|
if ( ! yy_did_buffer_switch_on_eof )
|
|
YY_NEW_FILE;
|
|
#ifdef __cplusplus
|
|
return yyinput();
|
|
#else
|
|
return input();
|
|
#endif
|
|
}
|
|
|
|
case EOB_ACT_CONTINUE_SCAN:
|
|
yy_c_buf_p = yytext_ptr + offset;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
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;
|
|
|
|
yy_current_buffer->yy_at_bol = (c == '\n');
|
|
|
|
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()" );
|
|
|
|
b->yy_is_our_buffer = 1;
|
|
|
|
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 )
|
|
return;
|
|
|
|
if ( b == yy_current_buffer )
|
|
yy_current_buffer = (YY_BUFFER_STATE) 0;
|
|
|
|
if ( b->yy_is_our_buffer )
|
|
yy_flex_free( (void *) b->yy_ch_buf );
|
|
|
|
yy_flex_free( (void *) b );
|
|
}
|
|
|
|
|
|
#ifndef YY_ALWAYS_INTERACTIVE
|
|
#ifndef YY_NEVER_INTERACTIVE
|
|
#include <unistd.h>
|
|
#endif
|
|
#endif
|
|
|
|
#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
|
|
|
|
|
|
{
|
|
int oerrno = errno;
|
|
|
|
yy_flush_buffer( b );
|
|
|
|
b->yy_input_file = file;
|
|
b->yy_fill_buffer = 1;
|
|
|
|
#if YY_ALWAYS_INTERACTIVE
|
|
b->yy_is_interactive = 1;
|
|
#else
|
|
#if YY_NEVER_INTERACTIVE
|
|
b->yy_is_interactive = 0;
|
|
#else
|
|
b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
|
|
#endif
|
|
#endif
|
|
errno = oerrno;
|
|
}
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
void yy_flush_buffer( YY_BUFFER_STATE b )
|
|
#else
|
|
void yy_flush_buffer( b )
|
|
YY_BUFFER_STATE b;
|
|
#endif
|
|
|
|
{
|
|
if ( ! b )
|
|
return;
|
|
|
|
b->yy_n_chars = 0;
|
|
|
|
/* 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[0] = YY_END_OF_BUFFER_CHAR;
|
|
b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
b->yy_buf_pos = &b->yy_ch_buf[0];
|
|
|
|
b->yy_at_bol = 1;
|
|
b->yy_buffer_status = YY_BUFFER_NEW;
|
|
|
|
if ( b == yy_current_buffer )
|
|
yy_load_buffer_state();
|
|
}
|
|
|
|
|
|
#ifndef YY_NO_SCAN_BUFFER
|
|
#ifdef YY_USE_PROTOS
|
|
YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
|
|
#else
|
|
YY_BUFFER_STATE yy_scan_buffer( base, size )
|
|
char *base;
|
|
yy_size_t size;
|
|
#endif
|
|
{
|
|
YY_BUFFER_STATE b;
|
|
|
|
if ( size < 2 ||
|
|
base[size-2] != YY_END_OF_BUFFER_CHAR ||
|
|
base[size-1] != YY_END_OF_BUFFER_CHAR )
|
|
/* They forgot to leave room for the EOB's. */
|
|
return 0;
|
|
|
|
b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
|
|
if ( ! b )
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
|
|
|
|
b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
|
|
b->yy_buf_pos = b->yy_ch_buf = base;
|
|
b->yy_is_our_buffer = 0;
|
|
b->yy_input_file = 0;
|
|
b->yy_n_chars = b->yy_buf_size;
|
|
b->yy_is_interactive = 0;
|
|
b->yy_at_bol = 1;
|
|
b->yy_fill_buffer = 0;
|
|
b->yy_buffer_status = YY_BUFFER_NEW;
|
|
|
|
yy_switch_to_buffer( b );
|
|
|
|
return b;
|
|
}
|
|
#endif
|
|
|
|
|
|
#ifndef YY_NO_SCAN_STRING
|
|
#ifdef YY_USE_PROTOS
|
|
YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
|
|
#else
|
|
YY_BUFFER_STATE yy_scan_string( yy_str )
|
|
yyconst char *yy_str;
|
|
#endif
|
|
{
|
|
int len;
|
|
for ( len = 0; yy_str[len]; ++len )
|
|
;
|
|
|
|
return yy_scan_bytes( yy_str, len );
|
|
}
|
|
#endif
|
|
|
|
|
|
#ifndef YY_NO_SCAN_BYTES
|
|
#ifdef YY_USE_PROTOS
|
|
YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
|
|
#else
|
|
YY_BUFFER_STATE yy_scan_bytes( bytes, len )
|
|
yyconst char *bytes;
|
|
int len;
|
|
#endif
|
|
{
|
|
YY_BUFFER_STATE b;
|
|
char *buf;
|
|
yy_size_t n;
|
|
int i;
|
|
|
|
/* Get memory for full buffer, including space for trailing EOB's. */
|
|
n = len + 2;
|
|
buf = (char *) yy_flex_alloc( n );
|
|
if ( ! buf )
|
|
YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
|
|
|
|
for ( i = 0; i < len; ++i )
|
|
buf[i] = bytes[i];
|
|
|
|
buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
|
|
|
|
b = yy_scan_buffer( buf, n );
|
|
if ( ! b )
|
|
YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
|
|
|
|
/* It's okay to grow etc. this buffer, and we should throw it
|
|
* away when we're done.
|
|
*/
|
|
b->yy_is_our_buffer = 1;
|
|
|
|
return b;
|
|
}
|
|
#endif
|
|
|
|
|
|
#ifndef YY_NO_PUSH_STATE
|
|
#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 )
|
|
{
|
|
yy_size_t 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);
|
|
}
|
|
#endif
|
|
|
|
|
|
#ifndef YY_NO_POP_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]);
|
|
}
|
|
#endif
|
|
|
|
|
|
#ifndef YY_NO_TOP_STATE
|
|
static int yy_top_state()
|
|
{
|
|
return yy_start_stack[yy_start_stack_ptr - 1];
|
|
}
|
|
#endif
|
|
|
|
#ifndef YY_EXIT_FAILURE
|
|
#define YY_EXIT_FAILURE 2
|
|
#endif
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
static void yy_fatal_error( yyconst char msg[] )
|
|
#else
|
|
static void yy_fatal_error( msg )
|
|
char msg[];
|
|
#endif
|
|
{
|
|
(void) fprintf( stderr, "%s\n", msg );
|
|
exit( YY_EXIT_FAILURE );
|
|
}
|
|
|
|
|
|
|
|
/* 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_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, yyconst char *s2, int n )
|
|
#else
|
|
static void yy_flex_strncpy( s1, s2, n )
|
|
char *s1;
|
|
yyconst char *s2;
|
|
int n;
|
|
#endif
|
|
{
|
|
register int i;
|
|
for ( i = 0; i < n; ++i )
|
|
s1[i] = s2[i];
|
|
}
|
|
#endif
|
|
|
|
#ifdef YY_NEED_STRLEN
|
|
#ifdef YY_USE_PROTOS
|
|
static int yy_flex_strlen( yyconst char *s )
|
|
#else
|
|
static int yy_flex_strlen( s )
|
|
yyconst char *s;
|
|
#endif
|
|
{
|
|
register int n;
|
|
for ( n = 0; s[n]; ++n )
|
|
;
|
|
|
|
return n;
|
|
}
|
|
#endif
|
|
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
static void *yy_flex_alloc( yy_size_t size )
|
|
#else
|
|
static void *yy_flex_alloc( size )
|
|
yy_size_t size;
|
|
#endif
|
|
{
|
|
return (void *) malloc( size );
|
|
}
|
|
|
|
#ifdef YY_USE_PROTOS
|
|
static void *yy_flex_realloc( void *ptr, yy_size_t size )
|
|
#else
|
|
static void *yy_flex_realloc( ptr, size )
|
|
void *ptr;
|
|
yy_size_t size;
|
|
#endif
|
|
{
|
|
/* The cast to (char *) in the following accommodates both
|
|
* implementations that use char* generic pointers, and those
|
|
* that use void* generic pointers. It works with the latter
|
|
* because both ANSI C and C++ allow castless assignment from
|
|
* any pointer type to void*, and deal with argument conversions
|
|
* as though doing an assignment.
|
|
*/
|
|
return (void *) realloc( (char *) 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 );
|
|
}
|
|
|
|
#if YY_MAIN
|
|
int main()
|
|
{
|
|
yylex();
|
|
return 0;
|
|
}
|
|
#endif
|
|
#line 423 "parse.lex"
|
|
|
|
static int
|
|
fill(s, len)
|
|
char *s;
|
|
int len;
|
|
{
|
|
int i, j;
|
|
|
|
yylval.string = (char *) malloc(len + 1);
|
|
if (yylval.string == NULL) {
|
|
yyerror("unable to allocate memory");
|
|
return(FALSE);
|
|
}
|
|
|
|
/* Copy the string and collapse any escaped characters. */
|
|
for (i = 0, j = 0; i < len; i++, j++) {
|
|
if (s[i] == '\\' && i != len - 1)
|
|
yylval.string[j] = s[++i];
|
|
else
|
|
yylval.string[j] = s[i];
|
|
}
|
|
yylval.string[j] = '\0';
|
|
return(TRUE);
|
|
}
|
|
|
|
static int
|
|
fill_cmnd(s, len)
|
|
char *s;
|
|
int len;
|
|
{
|
|
arg_len = arg_size = 0;
|
|
|
|
yylval.command.cmnd = (char *) malloc(++len);
|
|
if (yylval.command.cmnd == NULL) {
|
|
yyerror("unable to allocate memory");
|
|
return(FALSE);
|
|
}
|
|
|
|
/* copy the string and NULL-terminate it (escapes handled by fnmatch) */
|
|
(void) strlcpy(yylval.command.cmnd, s, len);
|
|
|
|
yylval.command.args = NULL;
|
|
return(TRUE);
|
|
}
|
|
|
|
static int
|
|
fill_args(s, len, addspace)
|
|
char *s;
|
|
int len;
|
|
int addspace;
|
|
{
|
|
int new_len;
|
|
char *p;
|
|
|
|
if (yylval.command.args == NULL) {
|
|
addspace = 0;
|
|
new_len = len;
|
|
} else
|
|
new_len = arg_len + len + addspace;
|
|
|
|
if (new_len >= arg_size) {
|
|
/* Allocate more space than we need for subsequent args */
|
|
while (new_len >= (arg_size += COMMANDARGINC))
|
|
;
|
|
|
|
p = yylval.command.args ?
|
|
(char *) realloc(yylval.command.args, arg_size) :
|
|
(char *) malloc(arg_size);
|
|
if (p == NULL) {
|
|
if (yylval.command.args != NULL)
|
|
free(yylval.command.args);
|
|
yyerror("unable to allocate memory");
|
|
return(FALSE);
|
|
} else
|
|
yylval.command.args = p;
|
|
}
|
|
|
|
/* Efficiently append the arg (with a leading space if needed). */
|
|
p = yylval.command.args + arg_len;
|
|
if (addspace)
|
|
*p++ = ' ';
|
|
if (strlcpy(p, s, arg_size - (p - yylval.command.args)) != len) {
|
|
yyerror("fill_args: buffer overflow"); /* paranoia */
|
|
return(FALSE);
|
|
}
|
|
arg_len = new_len;
|
|
return(TRUE);
|
|
}
|
|
|
|
struct sudoers_state {
|
|
YY_BUFFER_STATE bs;
|
|
char *path;
|
|
int lineno;
|
|
};
|
|
|
|
#define MAX_SUDOERS_DEPTH 128
|
|
|
|
static int
|
|
buffer_frob(path)
|
|
char *path;
|
|
{
|
|
static size_t stacksize, depth;
|
|
static struct sudoers_state *state;
|
|
static int keepopen;
|
|
FILE *fp;
|
|
|
|
if (path != NULL) {
|
|
/* push current state */
|
|
if ((path = strdup(path)) == NULL) {
|
|
yyerror("unable to allocate memory");
|
|
return(FALSE);
|
|
}
|
|
if (depth >= stacksize) {
|
|
if (depth > MAX_SUDOERS_DEPTH) {
|
|
yyerror("too many levels of includes");
|
|
return(FALSE);
|
|
}
|
|
stacksize += 16;
|
|
if ((state = realloc(state, sizeof(state) * stacksize)) == NULL) {
|
|
yyerror("unable to allocate memory");
|
|
return(FALSE);
|
|
}
|
|
}
|
|
if ((fp = open_sudoers(path, &keepopen)) == NULL) {
|
|
yyerror(path);
|
|
return(FALSE);
|
|
}
|
|
state[depth].bs = YY_CURRENT_BUFFER;
|
|
state[depth].path = sudoers;
|
|
state[depth].lineno = sudolineno;
|
|
depth++;
|
|
sudolineno = 1;
|
|
sudoers = path;
|
|
yy_switch_to_buffer(yy_create_buffer(fp, YY_BUF_SIZE));
|
|
} else {
|
|
/* pop */
|
|
if (depth == 0)
|
|
return(FALSE);
|
|
depth--;
|
|
if (!keepopen)
|
|
fclose(YY_CURRENT_BUFFER->yy_input_file);
|
|
yy_delete_buffer(YY_CURRENT_BUFFER);
|
|
yy_switch_to_buffer(state[depth].bs);
|
|
free(sudoers);
|
|
sudoers = state[depth].path;
|
|
sudolineno = state[depth].lineno;
|
|
keepopen = FALSE;
|
|
}
|
|
return(TRUE);
|
|
}
|
|
|
|
int
|
|
yywrap()
|
|
{
|
|
|
|
/* Free space used by the aliases unless called by testsudoers. */
|
|
if (clearaliases)
|
|
reset_aliases();
|
|
|
|
return(TRUE);
|
|
}
|