编译原理实验词法分析语法分析

loading 分享 2026-7-16 下载文档

ch=strToken[point++];//读取第一个字符 l.push('#'); r.push(0); r.get_top(Y);

while(flag)//循环规约 {

if(int(Y)==0) Action0();

else if(int(Y)==1) Action1();

else if(int(Y)==2) Action2();

else if(int(Y)==3) Action3();

else if((int(Y)==4)||(int(Y)==6)||(int(Y)==7)) Action4_6_7(int(Y)); else if(int(Y)==5) Action5();

else if(int(Y)==8) Action8();

else if(int(Y)==9) Action9();

else if(int(Y)==10) Action10();

else if(int(Y)==11) Action11(); else

flag=false; r.get_top(Y); } }

int main()

{cout<<\实验三\ run();

system(\ return 0; }


编译原理实验词法分析语法分析.doc 将本文的Word文档下载到电脑
搜索更多关于: 编译原理实验词法分析语法分析 的文档
相关推荐
相关阅读