-
(1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言;
(2) 一个简单的说明文档;
(3) 2007.7.14之前上传到ftp:// C...
(1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言;
(2) 一个简单的说明文档;
(3) 2007.7.14之前上传到ftp:// C07:C07@10.11.3.71/upload,用学号建立自己的目录;
(4) (可额外加分5分)若有出错处理功能,请在说明文档中写明可以处理哪几项错误。
注意事项:
(1) 两人一组
(2) 可以使用词法、语法自动生成工具,windows下有Flex,Bison,Linux下有Lex,Yacc,Java的有Jlex,JavaCC,ANTLR等
(3) 不用考虑Pascal和C的关键词不同问题,即Pascal子集语言中假设不出现int,for等作为变量标志符
(4) read()和write()可用由scanf(),printf()等组成的语句转换。
(5) 如果有疑问可以发信给我 xpqiu@fudan.edu.cn.
- 2022-03-23 02:20:36下载
- 积分:1
-
The realization of a compiler is the compiler of the principle of the course at...
一个编译器的实现,是编译原理这门课的期末一个大作业-The realization of a compiler is the compiler of the principle of the course at the end of a big operation
- 2022-08-26 09:41:17下载
- 积分:1
-
nasm编译器源码
nasm编译器源码-nasm compiler source code
- 2022-02-25 15:12:43下载
- 积分:1
-
一个使用Lex编写的C语言词法加亮的小程序。能将指定的C源程序进行词法加亮,并以HTML文件的格式输出。 由Lex的C语言词法分析程序,然后使用VC编译,内附较...
一个使用Lex编写的C语言词法加亮的小程序。能将指定的C源程序进行词法加亮,并以HTML文件的格式输出。 由Lex的C语言词法分析程序,然后使用VC编译,内附较详细的使用说明。-Lex prepared to use a C-plus morphology of small programs. Can designated source for the C-plus morphology, and the HTML file format. Lex from the C language lexical analysis procedure and then use the VC compiler, enclosing a more detailed usage instructions.
- 2022-03-02 01:56:36下载
- 积分:1
-
C语言词法分析器 by wpc_LK
这是一个简单的词法分析器,不能避免的存在错误请大家指出予以纠正,谢谢!
示例语句
include<st...
C语言词法分析器 by wpc_LK
这是一个简单的词法分析器,不能避免的存在错误请大家指出予以纠正,谢谢!
示例语句
include
int main{
int a=3,b=4,c
if((a+b)==7)c=1
else c=0
return 0 }
输入 exit 退出程序。-C language lexical analyzer by wpc_LK
This is a simple lexical analyzer can t avoid that there re some errors here,please correct, thank you!
for exzample:
include
int main{
int a=3,b=4,c
if((a+b)==7)c=1
else c=0
return 0 }
input exit quit the program.
- 2022-01-22 06:15:36下载
- 积分:1
-
编译原理―LL(1)文法分析器(1.0) 求LL(1)文法的FOLLOW集合工具: 软件读入一个LL(1)文法,生成其FOLLOW集合。...
编译原理―LL(1)文法分析器(1.0) 求LL(1)文法的FOLLOW集合工具: 软件读入一个LL(1)文法,生成其FOLLOW集合。-compiler theory-LL (1) grammar analyzer (1.0) for LL (1) grammar FOLLOW Set tools : software read an LL (1) grammar, generating its FOLLOW pool.
- 2022-01-26 06:18:06下载
- 积分:1
-
A very useful procedure, c language written, for many school friends SCM may be...
一个非常有用的程序,c语言写得,对于很多学单片机的朋友或许有用。
-A very useful procedure, c language written, for many school friends SCM may be useful.
- 2022-03-20 22:04:32下载
- 积分:1
-
VC实现对word文档的操作,在6.0下编译通过
VC实现对word文档的操作,在6.0下编译通过-VC realize the operation of the word document, in the 6.0 compiler through
- 2022-01-24 16:33:11下载
- 积分:1
-
Equation Editor, similar to the word inside the mathematical formula 3.0, howeve...
公式编辑器,类似word里的数学公式3.0,不过主要处理上标下标-Equation Editor, similar to the word inside the mathematical formula 3.0, however, dealt mainly with superscript subscript
- 2022-08-15 00:56:04下载
- 积分:1
-
NEC upd78f0300的自编程序样例,对78K0系列有都可以调用
NEC upd78f0300的自编程序样例,对78K0系列有都可以调用-NEC upd78f0300 sample of self-compiled program on the 78K0 series can be called
- 2022-03-25 06:03:31下载
- 积分:1