⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lex.er.c

📁 a graphic tools for MTools
💻 C
📖 第 1 页 / 共 4 页
字号:
      367,  367,  364,  367,  367,  367,  364,  367,  367,  367,      364,  364,  367,  364,  364,  364,  367,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  372,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  373,      364,  374,  364,  364,  364,  364,  375,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  376,  364,  377,  376,  364,  377,      376,  378,  377,  376,  378,  377,  376,  378,  377,  376,      378,  377,  376,  378,  377,  376,  378,  377,  376,  378,      377,  376,  378,  377,  376,  378,  377,  376,  378,  377,      376,  378,  377,  376,  378,  377,  376,  378,  377,  376,      378,  377,  376,  378,  377,  376,  378,  377,  376,  378,      377,  376,  378,  377,  376,  378,  377,  376,  378,  377,      376,  378,  377,  376,  378,  377,  376,  378,  377,  378,      378,  378,  378,    0,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364    } ;static yyconst short int yy_nxt[575] =    {   0,      295,  290,   41,   83,   78,   78,   36,    5,    6,    5,        6,   36,   36,   59,   36,  288,   12,   36,  133,   36,        7,   63,    7,    8,   66,    8,   36,   13,   62,   46,       67,   51,   55,   62,   36,   70,   62,   62,   71,   77,       72,   62,   62,   36,   36,   84,   79,   75,   76,   81,       62,   78,   62,   79,   36,   91,   62,   78,   62,   36,       79,   82,   86,   36,   85,   87,   80,   90,   62,   92,       62,   78,   88,   79,   89,   62,  100,   97,   36,   93,       62,   95,   94,  103,   78,  102,   62,   96,  104,   79,       62,  108,   78,  101,   79,   62,   36,   98,   62,   99,       62,   78,   79,   78,  105,  106,  107,  109,   62,  110,       79,  118,  119,  123,  111,   62,   62,   62,   62,  112,       62,   78,   79,  115,  116,   62,  113,   62,   79,   62,      121,  117,  125,   62,  129,   62,   62,  122,  130,  124,       62,  134,  127,  128,  139,   62,   78,  131,  135,  139,       62,   79,  137,   62,   62,  146,   62,  136,  140,   62,       62,  142,   62,   62,  141,  144,   62,   62,   62,   62,      148,   62,   62,  161,   62,  153,  152,   62,  145,   62,      157,  149,  164,   62,  150,   62,   62,   62,   62,   62,       62,  165,  156,  154,  158,  160,  166,  168,  172,  174,      291,  181,  162,   62,   62,  170,   62,  291,  294,  296,      169,  173,  291,  293,  293,  291,  177,  297,  300,  299,      301,  293,  293,  291,  298,  303,  298,  298,  304,  305,      293,  298,  302,  291,  311,  293,  291,  306,  307,  298,      308,  293,  309,  298,  315,  293,  291,  312,  291,  293,      298,  291,  316,  313,  322,  293,  310,  291,  298,  298,      314,  319,  326,  317,  318,  320,  293,  327,  298,  293,      321,  291,  293,  291,  291,  331,  298,  291,  325,  298,      324,  323,  330,  332,  329,  293,  298,  298,  293,  328,      291,  291,  341,  333,  298,  336,  293,  334,  337,  338,      293,  335,  339,  291,  298,  342,  293,  291,  340,  298,      298,  293,  291,  343,  291,  293,  345,  291,  298,  352,      358,  298,  344,  354,  298,  293,  293,  357,  346,  355,      349,  348,  347,  350,  172,  351,  356,  298,  353,  291,      298,  174,  250,  359,  298,  360,  293,  363,  181,  245,      243,  199,   74,  298,   73,   65,   64,   58,   31,  298,      293,  292,  291,  289,  361,  287,  362,    4,    4,  286,      285,  284,  283,  282,  281,  280,  279,  278,  277,  276,      275,  274,  273,  272,  271,  270,  269,  268,  267,  266,      265,  264,  263,  262,  261,  260,  259,  258,  257,  256,      255,  254,  253,  252,  251,  249,  248,  247,  246,  244,      242,  241,  240,  239,  238,  237,  236,  235,  234,  233,      232,  231,  230,  229,  228,  227,  226,  225,  224,  223,      222,  221,  220,  219,   11,  218,  217,  216,  215,  214,      213,  212,  211,  210,  209,  208,  207,  206,  205,  204,      203,  202,  201,  200,  198,  197,  196,  195,  194,  193,      192,  191,  190,  189,  188,  187,  186,  185,  184,  183,      182,  180,  179,  178,  176,  175,  171,  167,  163,  159,      155,  151,  147,  143,  138,  132,  126,  120,  114,   79,       78,   69,   68,   62,   61,   60,   57,   56,   54,   53,       52,   50,   49,   48,   47,   45,   44,   43,   42,   40,       39,   38,   37,   36,   35,   34,   33,   32,   30,   29,       28,   27,   26,   25,   24,   23,   22,   21,   20,   19,       18,   17,   16,   15,   14,   11,   10,    9,  364,    3,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364    } ;static yyconst short int yy_chk[575] =    {   0,      378,  377,   36,   78,   78,  127,   36,    1,    1,    2,        2,   41,   46,   55,   51,  376,    8,   55,  127,   59,        1,   59,    2,    1,   62,    2,   63,    8,   62,   41,       63,   46,   51,   66,   67,   66,   70,   71,   66,   72,       67,   75,   76,   72,   77,   79,   79,   70,   71,   76,       80,   83,   81,   84,   82,   86,   86,   88,   85,   87,       89,   77,   81,   92,   80,   82,   75,   85,   91,   87,       90,   93,   83,   94,   84,   96,   95,   92,   97,   88,       95,   90,   89,   98,   98,   97,  100,   91,   99,   99,      101,  102,  103,   96,  104,  105,  102,   93,  106,   94,      107,  109,  110,  115,  100,  100,  101,  103,  111,  104,      116,  112,  113,  117,  105,  112,  113,  117,  118,  106,      119,  121,  122,  109,  110,  123,  107,  124,  128,  129,      115,  111,  119,  125,  123,  130,  131,  116,  124,  118,      135,  128,  121,  122,  133,  136,  133,  125,  129,  134,      137,  134,  131,  140,  141,  142,  144,  130,  135,  142,      145,  137,  146,  148,  136,  140,  149,  150,  152,  153,      144,  160,  154,  157,  156,  149,  148,  157,  141,  158,      153,  145,  160,  161,  146,  162,  165,  164,  166,  169,      173,  161,  152,  150,  154,  156,  162,  164,  168,  170,      300,  177,  158,  168,  170,  166,  177,  297,  291,  293,      165,  169,  291,  293,  296,  294,  173,  294,  297,  296,      298,  299,  302,  303,  298,  300,  301,  304,  301,  302,      305,  307,  299,  306,  308,  308,  309,  303,  304,  310,      305,  311,  306,  313,  312,  314,  315,  309,  312,  317,      316,  318,  313,  310,  319,  320,  307,  321,  319,  322,      311,  316,  323,  314,  315,  317,  323,  324,  325,  329,      318,  324,  326,  327,  330,  328,  331,  333,  322,  328,      321,  320,  327,  329,  326,  332,  337,  334,  335,  325,      336,  339,  338,  330,  340,  333,  338,  331,  334,  335,      341,  332,  336,  342,  343,  339,  344,  345,  337,  346,      349,  347,  351,  340,  348,  350,  342,  354,  352,  349,      355,  362,  341,  351,  355,  353,  356,  354,  343,  352,      346,  345,  344,  347,  357,  348,  353,  358,  350,  357,      360,  359,  375,  356,  361,  358,  359,  362,  363,  374,      373,  372,  371,  363,  370,  369,  368,  367,  366,  295,      290,  289,  288,  286,  360,  284,  361,  365,  365,  283,      282,  281,  280,  279,  278,  277,  276,  275,  274,  273,      272,  271,  270,  269,  268,  267,  266,  265,  264,  263,      262,  261,  260,  259,  258,  257,  256,  255,  254,  253,      252,  251,  250,  249,  248,  246,  245,  244,  243,  241,      239,  238,  237,  236,  235,  234,  233,  232,  231,  230,      229,  228,  227,  226,  225,  224,  223,  222,  221,  220,      219,  218,  217,  216,  215,  214,  213,  212,  211,  210,      209,  208,  207,  206,  205,  204,  203,  202,  201,  200,      199,  198,  197,  196,  194,  193,  192,  191,  190,  189,      188,  187,  186,  185,  184,  183,  182,  181,  180,  179,      178,  176,  175,  174,  172,  171,  167,  163,  159,  155,      151,  147,  143,  138,  132,  126,  120,  114,  108,   74,       73,   65,   64,   58,   57,   56,   53,   52,   49,   48,       47,   45,   44,   43,   42,   40,   39,   38,   37,   35,       34,   33,   32,   31,   30,   29,   28,   27,   25,   24,       23,   22,   21,   20,   19,   18,   17,   16,   15,   14,       13,   12,   11,   10,    9,    7,    6,    5,    3,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364,  364,  364,  364,  364,  364,  364,      364,  364,  364,  364    } ;static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;static char *yy_full_match;static int yy_lp;#define REJECT \{ \*yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \yy_cp = yy_full_match; /* restore poss. backed-over text */ \++yy_lp; \goto find_rule; \}static int yy_more_offset = 0;static int yy_prev_more_offset = 0;#define yymore() (yy_more_offset = yy_flex_strlen( yytext ))#define YY_NEED_STRLEN#define YY_MORE_ADJ 0#define YY_RESTORE_YY_MORE_OFFSET \	{ \	yy_more_offset = yy_prev_more_offset; \	yyleng -= yy_more_offset; \	}#ifndef YYLMAX#define YYLMAX 8192#endifchar yytext[YYLMAX];char *yytext_ptr;#line 1 "er.l"#define INITIAL 0#line 2 "er.l"/* er.l - A lexer for mtools stderr-output * * process this file with *   lex -Per er.l * to re-generate lex.er.c from er.l * */int copyquestion (const char *, const char *);int shallwecontinue (const char *, const char *);void mtoolserroutput(const char *); #line 674 "lex.er.c"/* Macros after this point can all be overridden by user definitions in * section 1. */#ifndef YY_SKIP_YYWRAP#ifdef __cplusplusextern "C" int yywrap YY_PROTO(( void ));#elseextern int yywrap YY_PROTO(( void ));#endif#endif#ifndef YY_NO_UNPUTstatic void yyunput YY_PROTO(( int c, char *buf_ptr ));#endif#ifndef yytext_ptrstatic void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));#endif#ifdef YY_NEED_STRLENstatic int yy_flex_strlen YY_PROTO(( yyconst char * ));#endif#ifndef YY_NO_INPUT#ifdef __cplusplusstatic int yyinput YY_PROTO(( void ));#elsestatic int input YY_PROTO(( void ));#endif#endif#if YY_STACK_USEDstatic int yy_start_stack_ptr = 0;static int yy_start_stack_depth = 0;static int *yy_start_stack = 0;#ifndef YY_NO_PUSH_STATEstatic void yy_push_state YY_PROTO(( int new_state ));#endif#ifndef YY_NO_POP_STATEstatic void yy_pop_state YY_PROTO(( void ));#endif#ifndef YY_NO_TOP_STATEstatic 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_DECLYY_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 = '*', 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 \	YY_USER_ACTIONYY_DECL	{	register yy_state_type yy_current_state;	register char *yy_cp, *yy_bp;	register int yy_act;#line 25 "er.l"#line 827 "lex.er.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_state_ptr = yy_state_buf;		*yy_state_ptr++ = yy_current_state;yy_match:		do			{			register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*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 >= 365 )					yy_c = yy_meta[(unsigned int) yy_c];				}			yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];			*yy_state_ptr++ = yy_current_state;			++yy_cp;			}		while ( yy_base[yy_current_state] != 540 );yy_find_action:		yy_current_state = *--yy_state_ptr;		yy_lp = yy_accept[yy_current_state];find_rule: /* we branch to this label when backing up */		for ( ; ; ) /* until we find what rule we matched */			{			if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )				{				yy_act = yy_acclist[yy_lp];					{					yy_full_match = yy_cp;					break;					}				}			--yy_cp;			yy_current_state = *--yy_state_ptr;			yy_lp = yy_accept[yy_current_state];			}		YY_DO_BEFORE_ACTION;		if ( yy_act != YY_END_OF_BUFFER )			{			int yyl;			for ( yyl = 0; yyl < yyleng; ++yyl )				if ( yytext[yyl] == '\n' )					++yylineno;			}do_action:	/* This label is used only to access EOF actions. */		switch ( yy_act )	{ /* beginning of action switch */case 1:YY_RULE_SETUP#line 26 "er.l"{ mtoolserroutput(ertext);          return copyquestion("Disk full",                             "There is no space left on the target\n\device. You can either insert\n\a new disk, skip this file or cancel.\n\What shall we do?"); }	YY_BREAKcase 2:YY_RULE_SETUP#line 33 "er.l"{ mtoolserroutput(ertext);               warnme("No floppy in drive",                     "There is no floppy in the drive."); }	YY_BREAKcase 3:YY_RULE_SETUP#line 37 "er.l"{ mtoolserroutput(ertext);             warnme("Read-only drive",                   "This floppy is read-only. If you want to\n\write to it, remove the write-protection."); }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -