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

📄 lex.yy.c

📁 sco unix 前台界面开发程序,采用UNIX中的词法分析器和语法分析器
💻 C
📖 第 1 页 / 共 3 页
字号:
yycrank+418,	0,		0,	yycrank+419,	0,		0,	yycrank+440,	0,		0,	yycrank+453,	0,		0,	yycrank+458,	0,		0,	yycrank+457,	0,		0,	yycrank+481,	0,		0,	yycrank+484,	0,		0,	yycrank+467,	0,		0,	yycrank+486,	0,		0,	yycrank+456,	yysvec+8,	yyvstop+166,yycrank+457,	yysvec+8,	yyvstop+168,yycrank+459,	yysvec+8,	yyvstop+171,yycrank+462,	yysvec+8,	yyvstop+173,yycrank+464,	yysvec+8,	yyvstop+175,yycrank+467,	yysvec+7,	yyvstop+178,yycrank+467,	yysvec+8,	yyvstop+180,yycrank+469,	yysvec+8,	yyvstop+183,yycrank+528,	0,		0,	yycrank+538,	yysvec+6,	yyvstop+186,yycrank+502,	0,		0,	yycrank+493,	0,		0,	yycrank+504,	0,		0,	yycrank+0,	0,		yyvstop+188,yycrank+496,	0,		0,	yycrank+527,	0,		0,	yycrank+519,	0,		0,	yycrank+529,	0,		0,	yycrank+502,	yysvec+8,	yyvstop+190,yycrank+503,	yysvec+8,	yyvstop+193,yycrank+504,	yysvec+8,	yyvstop+195,yycrank+505,	yysvec+8,	yyvstop+198,yycrank+537,	yysvec+8,	yyvstop+201,yycrank+511,	yysvec+8,	yyvstop+203,yycrank+526,	0,		0,	yycrank+537,	0,		0,	yycrank+534,	0,		0,	yycrank+536,	0,		0,	yycrank+531,	0,		0,	yycrank+540,	0,		0,	yycrank+534,	0,		0,	yycrank+542,	0,		0,	yycrank+535,	0,		0,	yycrank+547,	0,		0,	yycrank+541,	0,		0,	yycrank+525,	yysvec+8,	yyvstop+206,yycrank+527,	yysvec+8,	yyvstop+208,yycrank+528,	yysvec+8,	yyvstop+210,yycrank+572,	0,		0,	yycrank+0,	0,		yyvstop+212,yycrank+609,	yysvec+6,	yyvstop+214,yycrank+551,	0,		0,	yycrank+555,	0,		0,	yycrank+0,	0,		yyvstop+216,yycrank+566,	0,		0,	yycrank+551,	0,		0,	yycrank+568,	0,		0,	yycrank+560,	0,		0,	yycrank+552,	yysvec+8,	yyvstop+218,yycrank+554,	yysvec+8,	yyvstop+220,yycrank+562,	0,		0,	yycrank+561,	0,		0,	yycrank+569,	0,		0,	yycrank+579,	0,		0,	yycrank+0,	0,		yyvstop+222,yycrank+588,	0,		0,	yycrank+590,	0,		0,	yycrank+597,	0,		0,	yycrank+598,	0,		0,	yycrank+606,	0,		0,	yycrank+0,	0,		yyvstop+224,yycrank+576,	yysvec+8,	yyvstop+226,yycrank+578,	yysvec+8,	yyvstop+228,yycrank+579,	yysvec+8,	yyvstop+231,yycrank+584,	yysvec+8,	yyvstop+233,yycrank+606,	0,		0,	yycrank+590,	0,		0,	yycrank+619,	0,		0,	yycrank+602,	0,		0,	yycrank+609,	0,		0,	yycrank+615,	0,		0,	yycrank+604,	0,		0,	yycrank+622,	0,		0,	yycrank+645,	yysvec+6,	yyvstop+236,yycrank+638,	0,		0,	yycrank+0,	0,		yyvstop+238,yycrank+628,	0,		0,	yycrank+622,	0,		0,	yycrank+627,	0,		0,	yycrank+631,	0,		0,	yycrank+611,	yysvec+8,	yyvstop+240,yycrank+614,	yysvec+7,	yyvstop+243,yycrank+637,	0,		0,	yycrank+642,	0,		0,	yycrank+638,	0,		0,	yycrank+0,	0,		yyvstop+245,yycrank+639,	0,		0,	yycrank+640,	0,		0,	yycrank+649,	0,		0,	yycrank+650,	0,		0,	yycrank+642,	0,		0,	yycrank+622,	yysvec+8,	yyvstop+247,yycrank+623,	yysvec+8,	yyvstop+250,yycrank+641,	0,		0,	yycrank+643,	0,		0,	yycrank+656,	0,		0,	yycrank+642,	0,		0,	yycrank+656,	0,		0,	yycrank+659,	0,		0,	yycrank+645,	0,		0,	yycrank+647,	0,		0,	yycrank+654,	0,		0,	yycrank+644,	0,		0,	yycrank+686,	yysvec+6,	yyvstop+252,yycrank+662,	0,		0,	yycrank+0,	0,		yyvstop+254,yycrank+676,	0,		0,	yycrank+661,	0,		0,	yycrank+674,	0,		0,	yycrank+681,	0,		0,	yycrank+679,	0,		0,	yycrank+0,	0,		yyvstop+256,yycrank+677,	0,		0,	yycrank+0,	0,		yyvstop+258,yycrank+0,	0,		yyvstop+260,yycrank+0,	0,		yyvstop+262,yycrank+0,	0,		yyvstop+264,yycrank+682,	0,		0,	yycrank+655,	yysvec+8,	yyvstop+266,yycrank+681,	0,		0,	yycrank+669,	0,		0,	yycrank+667,	0,		0,	yycrank+689,	0,		0,	yycrank+686,	0,		0,	yycrank+672,	0,		0,	yycrank+692,	0,		0,	yycrank+678,	0,		0,	yycrank+695,	0,		0,	yycrank+681,	0,		0,	yycrank+718,	yysvec+6,	yyvstop+269,yycrank+693,	0,		0,	yycrank+0,	0,		yyvstop+271,yycrank+693,	0,		0,	yycrank+700,	0,		0,	yycrank+710,	0,		0,	yycrank+711,	0,		0,	yycrank+708,	0,		0,	yycrank+709,	0,		0,	yycrank+703,	0,		0,	yycrank+0,	0,		yyvstop+273,yycrank+719,	0,		0,	yycrank+707,	0,		0,	yycrank+702,	0,		0,	yycrank+0,	0,		yyvstop+275,yycrank+703,	0,		0,	yycrank+704,	0,		0,	yycrank+718,	0,		0,	yycrank+0,	0,		yyvstop+277,yycrank+708,	0,		0,	yycrank+0,	0,		yyvstop+279,yycrank+743,	yysvec+6,	0,	yycrank+732,	0,		0,	yycrank+0,	0,		yyvstop+281,yycrank+733,	0,		0,	yycrank+725,	0,		0,	yycrank+734,	0,		0,	yycrank+734,	0,		0,	yycrank+739,	0,		0,	yycrank+0,	0,		yyvstop+283,yycrank+0,	0,		yyvstop+285,yycrank+723,	0,		0,	yycrank+0,	0,		yyvstop+287,yycrank+0,	0,		yyvstop+289,yycrank+0,	0,		yyvstop+291,yycrank+739,	0,		0,	yycrank+736,	0,		0,	yycrank+726,	0,		0,	yycrank+0,	0,		yyvstop+293,yycrank+727,	0,		0,	yycrank+728,	0,		0,	yycrank+741,	0,		0,	yycrank+749,	0,		0,	yycrank+0,	0,		yyvstop+295,yycrank+733,	0,		0,	yycrank+749,	0,		0,	yycrank+0,	0,		yyvstop+297,yycrank+748,	0,		0,	yycrank+0,	0,		yyvstop+299,yycrank+734,	0,		0,	yycrank+735,	0,		0,	yycrank+0,	0,		yyvstop+301,yycrank+0,	0,		yyvstop+303,yycrank+738,	0,		0,	yycrank+0,	0,		yyvstop+305,yycrank+748,	0,		0,	yycrank+0,	0,		yyvstop+307,yycrank+743,	0,		0,	yycrank+745,	0,		0,	yycrank+0,	0,		yyvstop+309,0,	0,	0};struct yywork *yytop = yycrank+823;struct yysvf *yybgin = yysvec+1;unsigned char yymatch[] = {00  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,011 ,011 ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,011 ,01  ,'"' ,01  ,01  ,01  ,'&' ,01  ,'&' ,'&' ,01  ,01  ,'&' ,01  ,01  ,01  ,'0' ,'0' ,'0' ,'0' ,'0' ,'0' ,'0' ,'0' ,'0' ,'0' ,01  ,'&' ,01  ,'&' ,01  ,01  ,01  ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,01  ,01  ,01  ,'&' ,01  ,01  ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'A' ,'&' ,'&' ,'&' ,'&' ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,01  ,0};char yyextra[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};#pragma comment(exestr, "@(#) ncform 20.3 95/10/10 ")#pragma comment(exestr, "@(#)libl:lib/ncform	1.7")/* * For the SCO C++ compiler, the C-linkage routines will be called for stdio * compiles, and the C++ linkage routines will be called for iostream. * This is function overloading at link time, sort of. */#if defined(__cplusplus)#   include <stdlib.h>#   if defined(__cplusplus) && !defined(_LEX_USES_IOSTREAMS)        extern "C" void allprint(const char);        extern "C" void sprint (const char *);#   else        void allprint(const char);        void sprint (const char *);#   endif#endifint yylineno =1;# define YYU(x) x# define NLSTATE yyprevious=YYNEWLINEstruct yysvf *yylstate [YYLMAX], **yylsp, **yyolsp;char yysbuf[YYLMAX];char *yysptr = yysbuf;int *yyfnd;extern struct yysvf *yyestate;int yyprevious = YYNEWLINE;#if defined(__cplusplus) || defined(__STDC__)#   if defined(__cplusplus) && !defined(_LEX_USES_IOSTREAMS)        extern "C"#   endifint yylook(void)#elseyylook()#endif{	register struct yysvf *yystate, **lsp;	register struct yywork *yyt;	struct yysvf *yyz;	int yych, yyfirst;	struct yywork *yyr;# ifdef LEXDEBUG	int debug;# endif	char *yylastch;	/* start off machines */# ifdef LEXDEBUG	debug = 0;# endif	yyfirst=1;	if (!yymorfg)		yylastch = yytext;	else {		yymorfg=0;		yylastch = yytext+yyleng;		}	for(;;){		lsp = yylstate;		yyestate = yystate = yybgin;		if (yyprevious==YYNEWLINE) yystate++;		for (;;){# ifdef LEXDEBUG#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)			if(debug)*yyout << "state " << yystate-yysvec-1 << endl;#   else			if(debug)fprintf(yyout,"state %d\n",yystate-yysvec-1);#   endif# endif			yyt = yystate->yystoff;			if(yyt == yycrank && !yyfirst){  /* may not be any transitions */				yyz = yystate->yyother;				if(yyz == 0)break;				if(yyz->yystoff == yycrank)break;				}			*yylastch++ = yych = input();			if(yylastch > &yytext[YYLMAX]) {#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)				*yyout  << "Input string too long, limit " << YYLMAX << endl;#   else				fprintf(yyout,"Input string too long, limit %d\n",YYLMAX);#   endif				exit(1);			}			yyfirst=0;		tryagain:# ifdef LEXDEBUG			if(debug){#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)				*yyout << "char ";				allprint (yych);				*yyout << endl;#   else				fprintf(yyout,"char ");				allprint(yych);				putchar('\n');#   endif				}# endif			yyr = yyt;			if ( (int)yyt > (int)yycrank){				yyt = yyr + yych;				if (yyt <= yytop && yyt->verify+yysvec == yystate){					if(yyt->advance+yysvec == YYLERR)	/* error transitions */						{unput(*--yylastch);break;}					*lsp++ = yystate = yyt->advance+yysvec;					if(lsp > &yylstate[YYLMAX]) {#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)						*yyout  << "Input string too long, limit " << YYLMAX << endl;#   else						fprintf(yyout,"Input string too long, limit %d\n",YYLMAX);#   endif						exit(1);					}					goto contin;					}				}# ifdef YYOPTIM			else if((int)yyt < (int)yycrank) {		/* r < yycrank */				yyt = yyr = yycrank+(yycrank-yyt);# ifdef LEXDEBUG#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)				if(debug)*yyout << "compressed state\n";#   else				if(debug)fprintf(yyout,"compressed state\n");#   endif# endif				yyt = yyt + yych;				if(yyt <= yytop && yyt->verify+yysvec == yystate){					if(yyt->advance+yysvec == YYLERR)	/* error transitions */						{unput(*--yylastch);break;}					*lsp++ = yystate = yyt->advance+yysvec;					if(lsp > &yylstate[YYLMAX]) {#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)						*yyout  << "Input string too long, limit " << YYLMAX << endl;#   else						fprintf(yyout,"Input string too long, limit %d\n",YYLMAX);#   endif						exit(1);					}					goto contin;					}				yyt = yyr + YYU(yymatch[yych]);# ifdef LEXDEBUG				if(debug){#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)					*yyout << "try fall back character ";					allprint (YYU(yymatch[yych]));					*yyout << endl;#   else					fprintf(yyout,"try fall back character ");					allprint(YYU(yymatch[yych]));					putchar('\n');#   endif					}# endif				if(yyt <= yytop && yyt->verify+yysvec == yystate){					if(yyt->advance+yysvec == YYLERR)	/* error transition */						{unput(*--yylastch);break;}					*lsp++ = yystate = yyt->advance+yysvec;					if(lsp > &yylstate[YYLMAX]) {#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)						*yyout  << "Input string too long, limit " << YYLMAX << endl;#   else						fprintf(yyout,"Input string too long, limit %d\n",YYLMAX);#   endif						exit(1);					}					goto contin;					}				}			if ((yystate = yystate->yyother) && (yyt= yystate->yystoff) != yycrank){# ifdef LEXDEBUG#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)				if(debug)*yyout << "fall back to state "					<< yystate-yysvec-1 << endl;#   else				if(debug)fprintf(yyout,"fall back to state %d\n",yystate-yysvec-1);#   endif# endif				goto tryagain;				}# endif			else				{unput(*--yylastch);break;}		contin:# ifdef LEXDEBUG			if(debug){#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)				*yyout  << "state " << yystate-yysvec-1					<< " char ";				allprint (yych);				*yyout << endl;#   else				fprintf(yyout,"state %d char ",yystate-yysvec-1);				allprint(yych);				putchar('\n');#   endif				}# endif			;			}# ifdef LEXDEBUG		if(debug){#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)			*yyout << "stopped at " << *(lsp-1)-yysvec-1			       << " with ";			allprint (yych);			*yyout << endl;#   else			fprintf(yyout,"stopped at %d with ",*(lsp-1)-yysvec-1);			allprint(yych);			putchar('\n');#   endif			}# endif		while (lsp-- > yylstate){			*yylastch-- = 0;			if (*lsp != 0 && (yyfnd= (*lsp)->yystops) && *yyfnd > 0){				yyolsp = lsp;				if(yyextra[*yyfnd]){		/* must backup */					while(yyback((*lsp)->yystops,-*yyfnd) != 1 && lsp > yylstate){						lsp--;						unput(*yylastch--);						}					}				yyprevious = YYU(*yylastch);				yylsp = lsp;				yyleng = yylastch-yytext+1;				yytext[yyleng] = 0;# ifdef LEXDEBUG				if(debug){#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)					*yyout << "\nmatch ";					sprint (yytext);					*yyout << " action " << *yyfnd << endl;#   else					fprintf(yyout,"\nmatch ");					sprint(yytext);					fprintf(yyout," action %d\n",*yyfnd);#   endif					}# endif				return(*yyfnd++);				}			unput(*yylastch);			}		if (yytext[0] == 0  /* && feof(yyin) */)			{			yysptr=yysbuf;			return(0);			}		yyprevious = yytext[0] = input();		if (yyprevious>0)			output(yyprevious);		yylastch=yytext;# ifdef LEXDEBUG#   if defined(__cplusplus) && defined(_LEX_USES_IOSTREAMS)		if(debug)*yyout << endl;#   else		if(debug)putchar('\n');#   endif# endif		}	}#if defined(__cplusplus) || defined(__STDC__)# if defined(__cplusplus) && !defined(LEX_USES_CPLUS_LINKAGE)   extern "C"# endifint yyback(int *p, int m)#elseyyback(p, m)	int *p;#endif{	if (p==0) return(0);	while (*p) {		if (*p++ == m)			return(1);	}	return(0);}	/* the following are only used in the lex library */#if defined(__cplusplus) || defined(__STDC__)# if defined(__cplusplus) && !defined(LEX_USES_CPLUS_LINKAGE)   extern "C"# endifint yyinput(void)#elseyyinput()#endif{	return(input());	}#if defined(__cplusplus) || defined(__STDC__)# if defined(__cplusplus) && !defined(LEX_USES_CPLUS_LINKAGE)   extern "C"# endifvoid yyoutput(int c)#elseyyoutput(c)  int c; #endif{	output(c);	}#if defined(__cplusplus) || defined(__STDC__)# if defined(__cplusplus) && !defined(LEX_USES_CPLUS_LINKAGE)   extern "C"# endifvoid yyunput(int c)#elseyyunput(c)   int c; #endif{	unput(c);	}/* *  For the SCO/C++ compiler, the main() function is used in the libC.a *  library but defined in the libl.a library.  However, since libl.a *  is placed before libC.a in the cc command line within the C++ compiler *  driver, the linker cannot find main().  To get around this, we define *  a dummy function here which calls it.*/#if defined(__cplusplus)extern "C" int main(void);void _lldumMain_() { main(); }#endif

⌨️ 快捷键说明

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