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

📄 test30.l

📁 使用flex和bison
💻 L
📖 第 1 页 / 共 3 页
字号:
		}
		newstmt = 0;
			 

		 return SHAREFLOWVAR;
}

"vttalkwith"    {
			if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangupproc should no vttalkwith stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"talkwith");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'vttalkwith' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			 

		 return VTTALKWITH;
}
"vtsetscale"    {
			if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangupproc should no vtsetscale stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"vtsetscale");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'vtsetscale' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			 

		 return VTSETSCALE;
}
"setprocevent"    {
			if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangupproc should no setprocevent stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"vtsetscale");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'setprocevent' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			 

		 return SETPROCEVENT;
}

"recfile"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangupproc should no recfile stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"recfile");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'recfile' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			 

		return RECFILE;
} 
"setdialoutoricalleenum"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangupproc should no setdialoutoricalleenum stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"recfile");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'setdialoutoricalleenum' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			 

		return SETDIALOUTORICALLEENUM;
} 
"confrecfile"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangupproc should no confrecfile stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"confrecfile");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'confrecfile' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
		

		return CONFRECFILE;
} 

"checkdirectory"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: checkdirectory should no checkdirectory stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"checkdirectory");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'checkdirectory' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
		

		return CHECKDIRECTORY;
} 

"hangup"  {
			if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangupproc should no hangup stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"hangup");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'hangup' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return HANGUP;
} 
"jumpagent"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangupproc should no jumpagent stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"jumpagent");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'jumpagent' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return JUMPAGENT;
} 

"sendanc"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangupproc should no sendanc stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"sendanc");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'sendanc' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return SENDANC;
} 
"agentreq"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: agentreq should no sendanc stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agentreq");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'agentreq' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return AGENTREQ;
} 
"agentreqex"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: agentreq should no sendanc stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agentreqex");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'agentreqex' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return AGENTREQEX;
} 
"switchagent"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangup should no switchagent stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"switchagent");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'switchagent' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return SWITCHAGENT;
} 

"listenagent"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangup should no listenagent stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"listenagent");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'listenagent' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return LISTENAGENT;
} 

"breakagent"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangup should no breakagent stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"breakagent");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'breakagent' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return BREAKAGENT;
} 
"agentcallout"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangup should no agentcallout stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agentcallout");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'agentcallout' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return AGENTCALLOUT;
} 
"agentivrreq"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangup should no agentivrreq stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agentivrreq");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'agentivrreq' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return AGENTIVRREQ;
} 
"ivripreq"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangup should no ivripreq stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"ivripreq");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'agentivrreq' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return IVRIPREQ;
} 
"agentipreq"  {
		if(hangupstate==1)
		{
			printf("%s(%d): syntax error: hangup should no agentipreq stmt \n",filename,lineno);
				errcount ++;	
		}
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agentivrreq");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'agentipreq' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return AGENTIPREQ;
} 
"agentplayring"  {
	
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agentplayring");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'agentplayring' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return AGENTPLAYRING;
} 
"logmsg"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"logmsg");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'logmsg' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return LOGMSG;
} 
"hangupproc"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"hangupproc");
 		}
	hangupstate=1;
		
		return HANGUPPROC;
} 
"onhook"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"onhook");
 		}
		return ONHOOK;
} 

"offhook"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"offhook");
 		}
		return OFFHOOK;
} 
"usercallin"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"usercallin");
 		}
		return USERCALLIN;
} 
"userhangup"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"userhangup");
 		}
		return USERHANGUP;
} 
"agentdigit"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agentdigit");
 		}
		return AGENTDIGIT;
} 
"agenteventproc"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agenteventproc");
 		}
		return AGENTEVENTPROC;
} 
"waiteventproc"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"waiteventproc");
 		}
		return WAITEVENTPROC;
} 
"agenteventprocstart"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agenteventprocstart");
 		}
		newstmt = 0;
		return AGENTEVENTPROCSTART;
} 
"agenteventprocend"  {
		if(nexttoken!=-1)
		 {
					printtokenerror(nexttoken,"agenteventprocend");
 		}
		newstmt = 0;
		return AGENTEVENTPROCEND;
} 
"getfieldvalue"  {
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"getfieldvalue");
 		}
		

		return GETFIELDVALUE;
} 
"getusedseconds"  {
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"getusedseconds");
 		}
		

		return GETUSEDSECONDS;
} 
"getrecordseconds"  {
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"getrecordseconds");
 		}
		

		return GETRECORDSECONDS;
} 
"getaffectedrow" {
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"getaffectedrow");
 		}
		

		return GETAFFECTEDROW;
} 
"itos"  { 
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"itos");
 		}
		

	return ITOS;
}
"stoi"	{
	if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"stoi");
 		}
			 

	return STOI;
} 
"strlen" {
	if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"strlen");
 		}
			 
return STRLEN;}
"sqlselect" {
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"sqlselect");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'sqlselect' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
		

		return SQLSELECT;
} 
"sqlcommand"  {
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"sqlcommand");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'sqlcommand' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			 

		return SQLCOMMAND;
} 
"linkpcmfile"  {
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"linkpcmfile");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'linkpcmfile' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			

		return LINKPCMFILE;
} 
"setchantimer"  {
		if(nexttoken!=-1)
		 {
				printtokenerror(nexttoken,"setchantimer");
 		}
		if(newstmt==0) 	
		{
			printf("%s(%d): syntax error: missing ';' before identifier 'setchantimer' \n",filename,lineno);
			errcount ++;
		}
		newstmt = 0;
			 

		return SETCHANTIMER;
} 
"startrecord"  {
		if(nexttoken!=-1)
		 {

⌨️ 快捷键说明

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