简易C语言编译器Java源代码

上传者: ilike_program | 上传时间: 2022-12-21 21:52:33 | 文件大小: 204KB | 文件类型: ZIP
此款C语言编译器可以支持变量的声明和赋值、支持算术运算、逻辑运算、支持if...else...、for循环、while循环、支持scanf和printf以及一些复合语句。该程序的功能是:(1)词法分析;(2)语法分析;(3)产生中间代码四元式;(4)产生x86汇编代码。更神奇的是,这些过程都通过java的GUI来实现的,所有的分析过程都可以通过窗口来实现,而且可视化。是一款优秀的《编译原理》课程设计作业,很值得参考借鉴。程序下载下来之后,用eclipse即可运行出结果,压缩包里面有很详细的说明文档。

文件下载

资源详情

[{"title":"( 65 个子文件 204KB ) 简易C语言编译器Java源代码","children":[{"title":"tinyCompiler","children":[{"title":".project <span style='color:#111;'> 388B </span>","children":null,"spread":false},{"title":"grammer.txt <span style='color:#111;'> 2.45KB </span>","children":null,"spread":false},{"title":"a.c <span style='color:#111;'> 232B </span>","children":null,"spread":false},{"title":"output","children":[{"title":"wordList.txt <span style='color:#111;'> 2.73KB </span>","children":null,"spread":false},{"title":"LL1.txt <span style='color:#111;'> 72.49KB </span>","children":null,"spread":false},{"title":"FourElement.txt <span style='color:#111;'> 457B </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"gui","children":[{"title":"InfoFrame.java <span style='color:#111;'> 2.50KB </span>","children":null,"spread":false},{"title":"MainFrame.java <span style='color:#111;'> 6.18KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"Compiler.java <span style='color:#111;'> 7.27KB </span>","children":null,"spread":false},{"title":"Bean.java <span style='color:#111;'> 981B </span>","children":null,"spread":false}],"spread":true},{"title":"backup","children":[{"title":"Semantic.java <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":"LexAnalyse.java <span style='color:#111;'> 14.02KB </span>","children":null,"spread":false},{"title":"FourElement.java <span style='color:#111;'> 390B </span>","children":null,"spread":false},{"title":"Node.java <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"TempNode.java <span style='color:#111;'> 149B </span>","children":null,"spread":false},{"title":"TinyCompiler.java <span style='color:#111;'> 21.52KB </span>","children":null,"spread":false},{"title":"Error.java <span style='color:#111;'> 395B </span>","children":null,"spread":false},{"title":"AnalyseNode.java <span style='color:#111;'> 2.27KB </span>","children":null,"spread":false},{"title":"Parser.java <span style='color:#111;'> 26.28KB </span>","children":null,"spread":false},{"title":"Word.java <span style='color:#111;'> 2.92KB </span>","children":null,"spread":false}],"spread":true},{"title":"compiler","children":[{"title":"LexAnalyse.java <span style='color:#111;'> 13.97KB </span>","children":null,"spread":false},{"title":"huibian.java <span style='color:#111;'> 5.37KB </span>","children":null,"spread":false},{"title":"FourElement.java <span style='color:#111;'> 379B </span>","children":null,"spread":false},{"title":"Table.java <span style='color:#111;'> 3.61KB </span>","children":null,"spread":false},{"title":"Error.java <span style='color:#111;'> 397B </span>","children":null,"spread":false},{"title":"AnalyseNode.java <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"Parser.java <span style='color:#111;'> 30.94KB </span>","children":null,"spread":false},{"title":"Word.java <span style='color:#111;'> 2.94KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"background.jpeg <span style='color:#111;'> 95.94KB </span>","children":null,"spread":false},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 629B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 85B </span>","children":null,"spread":false}],"spread":true},{"title":".classpath <span style='color:#111;'> 248B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"gui","children":[{"title":"MainFrame$4.class <span style='color:#111;'> 1.46KB </span>","children":null,"spread":false},{"title":"MainFrame$1.class <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"MainFrame$3.class <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"FilePanel.class <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"FilePanel$clickAction.class <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"MainFrame$2.class <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"MainFrame.class <span style='color:#111;'> 4.40KB </span>","children":null,"spread":false},{"title":"InfoFrame.class <span style='color:#111;'> 3.70KB </span>","children":null,"spread":false},{"title":"MainFrame$5.class <span style='color:#111;'> 1.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"Sign.class <span style='color:#111;'> 346B </span>","children":null,"spread":false},{"title":"Compiler.class <span style='color:#111;'> 3.35KB </span>","children":null,"spread":false},{"title":"Stack.class <span style='color:#111;'> 324B </span>","children":null,"spread":false},{"title":"Bean.class <span style='color:#111;'> 247B </span>","children":null,"spread":false},{"title":"Guiyue.class <span style='color:#111;'> 342B </span>","children":null,"spread":false},{"title":"Word.class <span style='color:#111;'> 434B </span>","children":null,"spread":false}],"spread":true},{"title":"backup","children":[{"title":"Semantic.class <span style='color:#111;'> 263B </span>","children":null,"spread":false},{"title":"FourElement.class <span style='color:#111;'> 686B </span>","children":null,"spread":false},{"title":"Error.class <span style='color:#111;'> 578B </span>","children":null,"spread":false},{"title":"TinyCompiler.class <span style='color:#111;'> 13.22KB </span>","children":null,"spread":false},{"title":"AnalyseNode.class <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"Node.class <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"LexAnalyse.class <span style='color:#111;'> 10.61KB </span>","children":null,"spread":false},{"title":"Parser.class <span style='color:#111;'> 17.58KB </span>","children":null,"spread":false},{"title":"Word.class <span style='color:#111;'> 2.69KB </span>","children":null,"spread":false},{"title":"TempNode.class <span style='color:#111;'> 334B </span>","children":null,"spread":false}],"spread":true},{"title":"compiler","children":[{"title":"FourElement.class <span style='color:#111;'> 690B </span>","children":null,"spread":false},{"title":"Error.class <span style='color:#111;'> 586B </span>","children":null,"spread":false},{"title":"AnalyseNode.class <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"LexAnalyse.class <span style='color:#111;'> 10.60KB </span>","children":null,"spread":false},{"title":"Table.class <span style='color:#111;'> 3.92KB </span>","children":null,"spread":false},{"title":"Parser.class <span style='color:#111;'> 21.93KB </span>","children":null,"spread":false},{"title":"Word.class <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"huibian.class <span style='color:#111;'> 5.44KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

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