搜索资源列表
compiler.rar
- decaf.jar 是将类java的decaf语言编译成tac码(Three address code,类似汇编指令)的编译器。 包含了前端的词法和语法分析、语义分析,中间代码的生成。是我最近写完的编译课的一个作业。 例子: 1. 调用 java -jar decaf.jar -l 2 blackjack.decaf > blackjack.tac 生成 *.tac 文件 2. 然后,调用 java -jar tac.jar blackjack.tac
jflex-examples
- 编译原理实验例程 一个统计hello单词数的程序,只需编写Count.flex,运行说明请看readme.txt-Compile a statistical routines principle experiment the number of hello word program, just write Count.flex, then the following command to get the results jflex Count.flex javac Count.java java
WordAnalyse
- 用java编写的C语言词法分析器,完成了去除预处理命令,去除注释,词法分析等功能。-Jmichelle C language of lexical analyzer, finished removing pretreatment command, remove comments, lexical analysis etc. Function.
