编译原理——中缀表达式转后缀表达式

上传者: ta_ming_ta | 上传时间: 2021-07-12 19:56:06 | 文件大小: 413KB | 文件类型: RAR
先写词法分析的源文件,用正则表达式表示出需要识别的字符,例如数字,乘法,加法和括号,如果识别到其他非法字符需要报错,用flex生成lex.yy.c文件。语法分析用LR方法进行语法分析,LR方法需要先根据文法构造自动机然后构造LR分析表,分析表用两个数组进行保存,在程序进行归约处理的时候执行给定的语义动作,将lex.yy.c作为头文件添加到语法分析程序LR.c中,最后进行调试运行测试。

文件下载

资源详情

[{"title":"( 21 个子文件 413KB ) 编译原理——中缀表达式转后缀表达式","children":[{"title":"COMPILER_计165_201658501213_唐明智_中缀表达式转为后缀表达式","children":[{"title":"references","children":[{"title":"calc.l <span style='color:#111;'> 507B </span>","children":null,"spread":false},{"title":"LR.c <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"lex.yy.c <span style='color:#111;'> 36.56KB </span>","children":null,"spread":false},{"title":"词法分析.txt <span style='color:#111;'> 612B </span>","children":null,"spread":false},{"title":"LR","children":[{"title":"LR.opt <span style='color:#111;'> 47.50KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"vc60.pdb <span style='color:#111;'> 52.00KB </span>","children":null,"spread":false},{"title":"LR.ilk <span style='color:#111;'> 174.39KB </span>","children":null,"spread":false},{"title":"LR.exe <span style='color:#111;'> 160.10KB </span>","children":null,"spread":false},{"title":"LR.pdb <span style='color:#111;'> 425.00KB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 41.00KB </span>","children":null,"spread":false},{"title":"LR.pch <span style='color:#111;'> 212.22KB </span>","children":null,"spread":false},{"title":"qqq.obj <span style='color:#111;'> 33.85KB </span>","children":null,"spread":false},{"title":"LR.obj <span style='color:#111;'> 34.15KB </span>","children":null,"spread":false}],"spread":true},{"title":"LR.plg <span style='color:#111;'> 836B </span>","children":null,"spread":false},{"title":"LR.dsw <span style='color:#111;'> 529B </span>","children":null,"spread":false},{"title":"LR.dsp <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"lex.h <span style='color:#111;'> 36.56KB </span>","children":null,"spread":false},{"title":"LR.c <span style='color:#111;'> 3.11KB </span>","children":null,"spread":false},{"title":"LR.ncb <span style='color:#111;'> 73.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"doc","children":[{"title":"~$报告-COMPILER.doc <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"实验报告-COMPILER.doc <span style='color:#111;'> 416.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明