编译原理课程设计 编译原理课程设计报告

大家好,小编来为大家解答以上的问题 。编译原理课程设计报告 , 编译原理课程设计这个很多人还不知道,现在让我们一起来看看吧!

编译原理课程设计 编译原理课程设计报告

文章插图
1、struct ll{ int no; struct ll *next;};//四元式链类型struct token { //词法分析token结构体及符号分析栈的元素类型 int sy1; char name[LEN]; int pos; int width; int type; int action; struct ll * truelist;struct ll * falselist;struct ll * nextlist;//布尔表达式及控制语句翻译时的真假链 int fquad;};struct fourexp{ char op[10]; char arg1[LEN]; char arg2[LEN]; char result[LEN];} //四元式struct tokentab { char SY[LEN];int type; int pos; int wid; int cat;//种属:函数 。
2、变量 。
3、数组 char actplace[LEN];};//符号表元素类型struct rwords{ char sp[10]; int sy;};//保留字类型int stack1[500];//程序语句分析状态栈int stack2[500]; //表达式分析状态栈 。
【编译原理课程设计 编译原理课程设计报告】本文到此分享完毕 , 希望对大家有所帮助 。