TINY 扩充语言的语法分析

上传者: linsoiler1 | 上传时间: 2019-12-21 20:09:16 | 文件大小: 6.27MB | 文件类型: zip
华南师范大学 本资源包括TINY扩充语言的语法分析的实验报告,编译原理附录B和TINY扩充语言的语法分析代码.实验报告中说明了该实验的完成步骤. 扩充的语法规则有:实现while、do while、for语句和求余计算式子,具体文法规则自行构造。 可参考:P97及P136的文法规则。 (1) While-stmt --> while exp do stmt-sequence endwhile (2) Dowhile-stmt-->do stmt-sequence while exp (3) for-stmt-->for identifier:=simple-exp to simple-exp do stmt-sequence enddo 步长递增1 (4) for-stmt-->for identifier:=simple-exp downto simple-exp do stmt-sequence enddo 步长递减1 要求: (1)要提供一个源程序编辑界面,以让用户输入源程序(可保存、打开源程序) (2)可由用户选择是否生成语法树,并可查看所生成的语法树。 (3)应该书写完善的软件文档

文件下载

资源详情

[{"title":"( 93 个子文件 6.27MB ) TINY 扩充语言的语法分析","children":[{"title":"TINY 扩充语言的语法分析 - 副本.doc <span style='color:#111;'> 452.00KB </span>","children":null,"spread":false},{"title":"实验二","children":[{"title":"main.cpp <span style='color:#111;'> 3.04KB </span>","children":null,"spread":false},{"title":"ipch","children":[{"title":"实验二-7ca53de7","children":[{"title":"实验二-239eaf2c.ipch <span style='color:#111;'> 15.56MB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"scan.cpp <span style='color:#111;'> 5.99KB </span>","children":null,"spread":false},{"title":"test.txt <span style='color:#111;'> 239B </span>","children":null,"spread":false},{"title":"实验二.vcxproj.filters <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false},{"title":"util.h <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"symtab.cpp <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"globals.h <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"实验二.suo <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false},{"title":"analyze.h <span style='color:#111;'> 652B </span>","children":null,"spread":false},{"title":"实验二.sdf <span style='color:#111;'> 5.89MB </span>","children":null,"spread":false},{"title":"parse.h <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":"parse.cpp <span style='color:#111;'> 6.62KB </span>","children":null,"spread":false},{"title":"scan.h <span style='color:#111;'> 659B </span>","children":null,"spread":false},{"title":"cgen.h <span style='color:#111;'> 679B </span>","children":null,"spread":false},{"title":"实验二.plg <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"Debug","children":[{"title":"实验二_manifest.rc <span style='color:#111;'> 202B </span>","children":null,"spread":false},{"title":"link.read.1.tlog <span style='color:#111;'> 4.99KB </span>","children":null,"spread":false},{"title":"实验二.log <span style='color:#111;'> 5.26KB </span>","children":null,"spread":false},{"title":"vc100.pdb <span style='color:#111;'> 220.00KB </span>","children":null,"spread":false},{"title":"link-cvtres.read.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"link.command.1.tlog <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"vc60.pdb <span style='color:#111;'> 76.00KB </span>","children":null,"spread":false},{"title":"rc.write.1.tlog <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"实验二.exe.embed.manifest <span style='color:#111;'> 406B </span>","children":null,"spread":false},{"title":"实验二.pdb <span style='color:#111;'> 2.75MB </span>","children":null,"spread":false},{"title":"vc60.idb <span style='color:#111;'> 65.00KB </span>","children":null,"spread":false},{"title":"CL.write.1.tlog <span style='color:#111;'> 6.05KB </span>","children":null,"spread":false},{"title":"symtab.obj <span style='color:#111;'> 8.64KB </span>","children":null,"spread":false},{"title":"rc.command.1.tlog <span style='color:#111;'> 544B </span>","children":null,"spread":false},{"title":"cl.command.1.tlog <span style='color:#111;'> 5.70KB </span>","children":null,"spread":false},{"title":"analyze.obj <span style='color:#111;'> 11.80KB </span>","children":null,"spread":false},{"title":"实验二.exe.embed.manifest.res <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"实验二.lastbuildstate <span style='color:#111;'> 84B </span>","children":null,"spread":false},{"title":"link-cvtres.write.1.tlog <span style='color:#111;'> 2B </span>","children":null,"spread":false},{"title":"mt.read.1.tlog <span style='color:#111;'> 446B </span>","children":null,"spread":false},{"title":"util.obj <span style='color:#111;'> 58.97KB </span>","children":null,"spread":false},{"title":"实验二.exe <span style='color:#111;'> 535.00KB </span>","children":null,"spread":false},{"title":"main.obj <span style='color:#111;'> 168.59KB </span>","children":null,"spread":false},{"title":"mt.write.1.tlog <span style='color:#111;'> 342B </span>","children":null,"spread":false},{"title":"rc.read.1.tlog <span style='color:#111;'> 418B </span>","children":null,"spread":false},{"title":"code.obj <span style='color:#111;'> 9.97KB </span>","children":null,"spread":false},{"title":"CL.read.1.tlog <span style='color:#111;'> 30.67KB </span>","children":null,"spread":false},{"title":"cgen.obj <span style='color:#111;'> 21.86KB </span>","children":null,"spread":false},{"title":"vc100.idb <span style='color:#111;'> 315.00KB </span>","children":null,"spread":false},{"title":"mt.command.1.tlog <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"parse.obj <span style='color:#111;'> 18.78KB </span>","children":null,"spread":false},{"title":"实验二.exe.intermediate.manifest <span style='color:#111;'> 381B </span>","children":null,"spread":false},{"title":"实验二.ilk <span style='color:#111;'> 1.47MB </span>","children":null,"spread":false},{"title":"link.write.1.tlog <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"scan.obj <span style='color:#111;'> 15.19KB </span>","children":null,"spread":false}],"spread":false},{"title":"symtab.h <span style='color:#111;'> 959B </span>","children":null,"spread":false},{"title":"实验二.dsw <span style='color:#111;'> 520B </span>","children":null,"spread":false},{"title":"code.h <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"实验二.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"实验二.ncb <span style='color:#111;'> 81.00KB </span>","children":null,"spread":false},{"title":"code.cpp <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"实验二.vcxproj <span style='color:#111;'> 6.58KB </span>","children":null,"spread":false},{"title":"syntax tree.txt <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"实验二.opt <span style='color:#111;'> 55.50KB </span>","children":null,"spread":false},{"title":"tiny compilation.txt <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"analyze.cpp <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"实验二.dsp <span style='color:#111;'> 5.07KB </span>","children":null,"spread":false},{"title":"实验二.sln <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"util.cpp <span style='color:#111;'> 5.56KB </span>","children":null,"spread":false},{"title":"cgen.cpp <span style='color:#111;'> 6.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"编译原理附录B","children":[{"title":"SAMPLE.TNY <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"GLOBALS.H <span style='color:#111;'> 2.89KB </span>","children":null,"spread":false},{"title":"ANALYZE.H <span style='color:#111;'> 652B </span>","children":null,"spread":false},{"title":"ANALYZE.C <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"TM.EXE <span style='color:#111;'> 13.77KB </span>","children":null,"spread":false},{"title":"MAIN.C <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false},{"title":"SYMTAB.C <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"TINY.EXE <span style='color:#111;'> 39.78KB </span>","children":null,"spread":false},{"title":"CGEN.C <span style='color:#111;'> 6.81KB </span>","children":null,"spread":false},{"title":"SYMTAB.H <span style='color:#111;'> 959B </span>","children":null,"spread":false},{"title":"SCAN.H <span style='color:#111;'> 659B </span>","children":null,"spread":false},{"title":"SCAN.C <span style='color:#111;'> 5.60KB </span>","children":null,"spread":false},{"title":"LEX","children":[{"title":"TINY.L <span style='color:#111;'> 1.95KB </span>","children":null,"spread":false}],"spread":false},{"title":"YACC","children":[{"title":"GLOBALS.H <span style='color:#111;'> 3.26KB </span>","children":null,"spread":false},{"title":"TINY.Y <span style='color:#111;'> 5.04KB </span>","children":null,"spread":false}],"spread":false},{"title":"CGEN.H <span style='color:#111;'> 679B </span>","children":null,"spread":false},{"title":"TM.C <span style='color:#111;'> 16.36KB </span>","children":null,"spread":false},{"title":"PARSE.C <span style='color:#111;'> 5.05KB </span>","children":null,"spread":false},{"title":"UTIL.C <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false},{"title":"MAKEFILE <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false},{"title":"SAMPLE.TM <span style='color:#111;'> 920B </span>","children":null,"spread":false},{"title":"CODE.C <span style='color:#111;'> 2.97KB </span>","children":null,"spread":false},{"title":"CODE.H <span style='color:#111;'> 2.18KB </span>","children":null,"spread":false},{"title":"PARSE.H <span style='color:#111;'> 484B </span>","children":null,"spread":false},{"title":"UTIL.H <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"README.DOS <span style='color:#111;'> 1.92KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • qq_40230079 :
    代码很不错
    2019-01-05
  • HX_Abner :
    学习一下,有附录B。
    2018-11-28
  • p0064700 :
    源代码可以运行,不过没有MFC界面
    2015-06-21
  • joyjoy993 :
    可用,跟教材的差不多
    2015-04-17
  • Lemon.Warn :
    至少要求一&quot;要提供一个源程序编辑界面,以让用户输入源程序(可保存、打开源程序)&quot;就没达到。
    2014-12-17

免责申明

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