文件名称:编译原理实验一二程序.docx
文件大小:22KB
文件格式:DOCX
更新时间:2023-10-15 09:44:44
课程设计
int main() { int flag; Init(); fprintf(fout,"\n TOKEN SYM NUM"); do{ flag=Getsym(); if(flag) { fprintf(fout,"\n%10s %10s %d",token,SNAME[sym],num); } else if(ch!=EOF) { fprintf(fout,"\n%10s",token); Errorsym(); } }while(ch!=EOF);//反复调用Getsym()