-
(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
-
自己做的一个求集合的小程序,实现十分简单
自己做的一个求集合的小程序,实现十分简单- Own do the script which asks to gather, the realization is
extremely simple
- 2022-03-18 05:15:16下载
- 积分:1
-
编译器 用C语言对下述文法和单词表定义的语言设计编制一个编译器...
编译器 用C语言对下述文法和单词表定义的语言设计编制一个编译器-Compiler used in C language on the following definition of grammar and word list designed to prepare a language compiler
- 2022-04-11 12:43:03下载
- 积分:1
-
词法分析的程序。核心函数是一个状态切换的函数 CAjaxParserDlg::Route。状态切换函数解根据一个 DFA 来对输入的文本进行分析。也就是说,如果
词法分析的程序。核心函数是一个状态切换的函数 CAjaxParserDlg::Route。状态切换函数解根据一个 DFA 来对输入的文本进行分析。也就是说,如果你做一个新的DFA,就能分析新的词法。 DFA 的初始化在CAjaxParserDlg::OnInitDialog。- Lexical analysis procedure. The core function is condition cut
function CAjaxParserDlg::Route. The condition cut function solution
acts according to DFA to come to the input text to carry on the
analysis. In other words, if you make new DFA, can analyze the new
morphology. DFA initialization in CAjaxParserDlg::OnInitDialog.
- 2022-03-29 21:14:24下载
- 积分:1
-
it is program which is used to bulid a hut in c program.having the simplicity in...
it is program which is used to bulid a hut in c program.having the simplicity in program
- 2022-01-31 02:33:57下载
- 积分:1
-
1、给出各单词符号的类别编码。
2、词法分析程序应能发现输入串中的错误。
3、词法分析作为单独一遍编写,词法分析结果为二元式序列组成的中间文件。
4...
1、给出各单词符号的类别编码。
2、词法分析程序应能发现输入串中的错误。
3、词法分析作为单独一遍编写,词法分析结果为二元式序列组成的中间文件。
4、设计两个测试用例(尽可能完备),并给出测试结果。
-1, given the various types of code word symbols. 2, lexical analysis procedure should be able to detect errors in the input strings. 3, again as a separate lexical analysis prepared for morphological analysis of binary sequence consisting of between documents. 4, the design of the two test cases (as far as possible, complete), and gives test results.
- 2023-05-28 12:15:03下载
- 积分:1
-
非常好的编译源代码 将一个l语言转换为中间代码 java版本
非常好的编译源代码 将一个l语言转换为中间代码 java版本-very good source code will compile a l converted to intermediate language code java version
- 2022-05-06 03:20:38下载
- 积分:1
-
CHM Encoder 可以反编译你的 CHM 文件或 E
CHM Encoder 可以反编译你的 CHM 文件或 E-Book 电子图书并提取它们的所有源文件。
你想要将 CHM 转换为 HTML 吗? 那么请立即使用 CHMDecoder 吧!
该工具是免费的并且十分易于使用。
-CHM Encoder may decompile your CHM files or E-Book E-book and extract all their source files. You want to convert CHM to HTML? So please do not hesitate to use it CHMDecoder! The tool is free and very easy to use.
- 2022-02-13 09:27:05下载
- 积分:1
-
一个简易C语言解释器,语法规范见设计文档,感觉挺好用的,至少可以借鉴一下设计过程...
一个简易C语言解释器,语法规范见设计文档,感觉挺好用的,至少可以借鉴一下设计过程-a simple C language interpreter, syntax, see the design documents, the feeling is very good. at least we can draw on this design process
- 2022-05-16 11:07:55下载
- 积分:1
-
使用lex yacc编译/小
一个使用lex/yacc的小型C编译器- Uses lex/yacc the small C compiler
- 2023-02-26 02:15:03下载
- 积分:1