-
词法分析器:源程序的运行方式: 运行程序 输入一个已存在的文本文档的文件名。如:input.txt 如果要对整个程序进行语法分析,则按‘y’键,否则按‘n’键...
词法分析器:源程序的运行方式: 运行程序 输入一个已存在的文本文档的文件名。如:input.txt 如果要对整个程序进行语法分析,则按‘y’键,否则按‘n’键 如果要对程序进行语法分析,则按‘y’键,否则按‘n’键 程序结束-lexical analyzer : the source of the mode of operation : the importation of operational procedures already exist in a text file in the file name. Such as : input.txt if the entire procedure syntax analysis, the provision "y" button, or by the "n" key to the procedure syntax analysis, the provision "y" button, or by the "n" key end of the program
- 2022-08-11 09:13:53下载
- 积分:1
-
(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
-
一个读单词过程,从输入的源程序中,识别出各个具有独立意义的单词,即基本保留字、标识符、常数、运算符、分隔符五大类。并依次输出各个单词的内部编码及单词符号自身值。...
一个读单词过程,从输入的源程序中,识别出各个具有独立意义的单词,即基本保留字、标识符、常数、运算符、分隔符五大类。并依次输出各个单词的内部编码及单词符号自身值。(-read a word process, from the import of the source to identify all the independent significance of the word, that is to retain the basic character identifier, constant, Operators, separated top-five. Output and followed all the internal code words and symbols own words value. (
- 2023-03-20 00:35:03下载
- 积分:1
-
如果有人学习单片机,不如msp430,可以看看这些资料,对其学习很有用...
如果有人学习单片机,不如msp430,可以看看这些资料,对其学习很有用
-If someone learning single-chip, it is better to msp430, can look at such information useful to their learning
- 2022-01-27 23:04:13下载
- 积分:1
-
程序查找给定图像的图像统计。
Program to find the Image Statistics of the given Image.
- 2022-05-19 14:41:04下载
- 积分:1
-
一个经典的词法分析器,可解析各种复杂的SQL语句
一个经典的词法分析器,可解析各种复杂的SQL语句- A classical morphology analyzer, may analyze each kind of
complex SQL sentence
- 2022-02-03 12:03:49下载
- 积分:1
-
这是一个编译器程序包括了编译原理中学习的所有内容
这是一个编译器程序包括了编译原理中学习的所有内容-This is a compiler compiler included the principle of learning all the elements
- 2022-11-02 07:10:03下载
- 积分:1
-
是用flex分析pl0源代码的程序,统计处其中所有的关键字和变量名称,这个rar文件中有readme,具体见其中的说明。另外还有2个测试文件ceshi1.pl0...
是用flex分析pl0源代码的程序,统计处其中所有的关键字和变量名称,这个rar文件中有readme,具体见其中的说明。另外还有2个测试文件ceshi1.pl0和ceshi2.pl0-is flex pl0 source code analysis procedures, the Census and Statistics Department in which all the keywords and variable names, the rar a readme file, as shown in the note. Another two tests and documents ceshi1.pl0 ceshi2.pl0
- 2022-06-20 00:44:12下载
- 积分:1
-
语法分析器 能够对输入的数据进行判断 进行分析 判别输入字符串的各种信息...
语法分析器 能够对输入的数据进行判断 进行分析 判别输入字符串的各种信息
- 2023-02-28 18:40:02下载
- 积分:1
-
编译原理课后答案,很全很好的可以参考
编译原理课后答案,很全很好的可以参考编译原理课后答案,很全很好的可以参考...
编译原理课后答案,很全很好的可以参考
编译原理课后答案,很全很好的可以参考编译原理课后答案,很全很好的可以参考-Compiler Construction Principles after-school answer, it is all a very good compiler theory can refer to after-school answer, it is all a very good compiler theory can refer to after-school answer, it can refer to the whole a very good
- 2022-08-13 11:47:46下载
- 积分:1