Compiler:小型C语言编译器

上传者: 42116681 | 上传时间: 2022-12-12 17:52:53 | 文件大小: 209KB | 文件类型: ZIP
基于java的C语言编译器 采用LL(1)文法进行分析,文法是C语言文法的子集,支持报错,以及错误原因 以前只用编译器编译程序,现在学完编译原理这门课以后,通过编译大作业,我对编译器的工作原理有了比较清晰的认识 编译器的工作原理 编译器 (Compiler) 是一种将由一种语言编写的程序转换为另一种编程语言的可执行程序. 现代软件对于编译器的需求远甚从前, 究其原因很简单: 作为中间层, 编译器是构建更高层抽象的基础设施. 编译器意欲将人类可阅读的高阶代码, 翻译为机器能运行的低阶代码. 现代编译器的主要工作流程为: 源代码(source code)→ 预处理器(preprocessor)→ 编译器(compiler)→ 汇编程序(assembler)→ 目标代码(object code)→ 链接器(Linker)→ 可执行文件(executables)1. 其中, 编译器位于一个最重

文件下载

资源详情

[{"title":"( 66 个子文件 209KB ) Compiler:小型C语言编译器","children":[{"title":"Compiler-master","children":[{"title":"Compiler","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.36KB </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.19KB </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.41KB </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.06KB </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.40KB </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.61KB </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.77KB </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.41KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 15.05KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

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