首页 > 信息 >

编译原理课程设计准备过程_编译原理课程设计-视焦点讯

发表时间:2023-05-30 16:35:26 来源:互联网


(资料图片)

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]; //表达式分析状态栈。

本文就为大家分享到这里,希望小伙伴们会喜欢。

标签:

Copyright ©  2015-2022 西南产业网版权所有  备案号:皖ICP备2022009963号-8   联系邮箱:39 60 29 14 2@qq.com