-
示范利用 Delphi 制作 BASIC 程序语言解释器
示范利用 Delphi 制作 BASIC 程序语言解释器- The demonstration manufactures the BASIC program language
interpreter using Delphi
- 2022-09-08 14:30:03下载
- 积分:1
-
为了实现编译器的实用,可自由编写源代码…
为了实现的编译程序实用,源程序可采用自由书写格式,即一行内可以书写多个语句,一个语句也可以占领多行书写;标识符的前20个字符有效;整数用2个字节表示;长整数用4个字节表示。这样词法分析程序的主要工作为:
(1)从源程序文件中读入字符。
(2)统计行数和列数用于错误单词的定位。
(3)删除空格类字符,包括回车、制表符空格。
(4)按拼写单词,并用(种别,单词)二元式表示。
(5)根据需要是否填写标识符表供以后各阶段使用。
这里采用的编译程序的实现方法是一遍扫描,即从左到右只扫描一次源程序,也就是词法分析作为语法分析的一个子程序。故在编写词法分析程序时,用重复调用词法分析子程序取一单词的方法得到整个源程序的二元式流。
-in order to achieve the compiler practical, available free to write source code format, that his writing can be more than words, a statement can occupy multiple lines written; identifier of 20 characters effective; Integer with two byte; long integer with four byte. This lexical analysis for major work : (1) from source document read into the characters. (2) Statistics and a few mistakes out a few words for positioning. (3) delete the blank type characters, including the carriage return, tab spaces. (4) the spelling words and use (other species, words) dual ceremony. (5) whether the need for completing the table identifier subsequent stages. Here the compilers of th
- 2022-01-23 11:14:40下载
- 积分:1
-
c++写的c语言词法分析器
c++写的c语言词法分析器-c writes c language morphology analyzer
- 2022-07-03 15:30:39下载
- 积分:1
-
一个Modula
一个Modula-2语言分析器-A Modula-2 language analyzer
- 2022-03-10 22:13:55下载
- 积分:1
-
err
< 编译原理实用教程>>中的程序源代码:包括词法,语法分析,目标代码生成等-err
- 2022-02-04 07:55:11下载
- 积分:1
-
not look good but it is ll1 parser dedicated novice can s
不是很好 但可以看看 是ll1语法分析器专用的 新手可以-not look good but it is ll1 parser dedicated novice can s
- 2023-03-21 02:35:03下载
- 积分:1
-
C programm for Poissionous probability distribtion
C programm for Poissionous probability distribtion
- 2022-02-25 05:32:18下载
- 积分:1
-
这是一个PLO的编译器,是编译原理课程设计的一个很好的内容
这是一个PLO的编译器,是编译原理课程设计的一个很好的内容-This is a compiler of the PLO, is to compile the curriculum design principle a good content
- 2023-01-16 23:25:03下载
- 积分: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
-
SIP software development record as a closed network, network structure of the co...
SIP软件开发记录 由于通信网的封闭性,网络结构的复杂性,通信设备的多样性,使得通信软件难以在一个统一的平台(包括硬件平台和操作系统平台)下运行,所以迄今为止,通信行业的开源项目仍屈指可数。 下面,我们把通信类的软件简单的进行一下划分-SIP software development record as a closed network, network structure of the complex nature of the diversity of communications equipment, making it difficult to communication software in a unified platform (including the hardware platform and operating system platform) running, so far, the telecommunications industry is still a few open-source projects . Now, we kind of communication software for about a simple division
- 2022-03-24 00:38:51下载
- 积分:1