-
在本编译程序中,源语言为PL/0语言,目标语言为假想栈式计算机的汇编语言.PL/0语言是Pascal语言的一个子集,PL/0的编译程序包括了对PL/0语言源程序...
在本编译程序中,源语言为PL/0语言,目标语言为假想栈式计算机的汇编语言.PL/0语言是Pascal语言的一个子集,PL/0的编译程序包括了对PL/0语言源程序进行分析处理、编译生成类PCODE代码,并在虚拟机上解释运行生成的类PCODE代码的功能。
PL/0语言编译程序采用以语法分析为核心、一遍扫描的编译方法。词法分析和代码生成作为独立的子程序供语法分析程序调用。语法分析的同时,提供了出错报告功能。在源程序没有错误编译通过的情况下,调用类PCODE解释程序解释执行生成的类PCODE代码。
该软件为PL/0语言编译程序,所实现的扩充功能如下:
1.增加单词:保留字 ELSE,FOR,TO, DOWNTO
2.增加运算 +=,-=,++,--
3.不等号# 改为
4.增加条件语句的ELSE子句
5.扩充语句:
①FOR := TO DO
②FOR := DOWNTO DO
其中,语句①的循环变量的步长为1,
语句②的循环变量的步长为-1。
概述
源文件: *.plo
目标文件: *.COD
实现平台:C++ Builder6.0
-the compiler, the source language of PL/0 language, target language of the imaginary stack of computer assembly language. PL/0 language Pascal language is a subset of, PL/0 compilers including the right PL/0 language source analysis, category PCODE compiler code generation and the virtual machine running on to explain the formation PCODE category code functions. PL/0 language compiler
- 2022-07-12 21:52:18下载
- 积分:1
-
一个简单的C语言子集的编译器,一个简单的C语言子集的编译器...
一个简单的C语言子集的编译器,一个简单的C语言子集的编译器-A simple C language subset compiler, a simple C language subset compiler
- 2022-06-27 01:28:18下载
- 积分:1
-
VB Script脚本引擎及例子程序
VB Script脚本引擎及例子程序-VB Script engine and example program
- 2022-02-06 23:39:47下载
- 积分:1
-
User Manual
一款不错的单片机开发Keil C工具教程!Cx51 编译器
对传统和扩展的8051 微处理器的
优化的C 编译器和库参考-User Manual
- 2022-07-19 06:28:23下载
- 积分:1
-
语法分析器 能够对输入的数据进行判断 进行分析 判别输入字符串的各种信息...
语法分析器 能够对输入的数据进行判断 进行分析 判别输入字符串的各种信息
- 2023-02-28 18:40:02下载
- 积分:1
-
tiny 编译器程序的设计
修改了原作者的程序
现在能生成中间代码
tiny 编译器程序的设计
修改了原作者的程序
现在能生成中间代码-tiny compiler design process to amend the original author of the program can now generate code between
- 2022-01-25 22:10:28下载
- 积分:1
-
这是扬创2440开发板的一个ADS环境下的一个测试程序,对初学者很有用的....
这是扬创2440开发板的一个ADS环境下的一个测试程序,对初学者很有用的.-Jan 2440 This is a development board an ADS environment of a test procedure, useful for beginners.
- 2023-05-06 00:45:03下载
- 积分:1
-
itis a program to solve the lexical expressions .its efficeincy is very good in...
itis a program to solve the lexical expressions .its efficeincy is very good in solving the expressions-itis a program to solve the lexical expressions .its efficeincy is very good in solving the expressions...
- 2023-07-20 13:40:03下载
- 积分:1
-
java写的PLO词法分析,刚交了作业
没什么大内容,仅供参考
java写的PLO词法分析,刚交了作业
没什么大内容,仅供参考-java write lexical analysis of the PLO, has just paid a little big operation, for reference purposes only
- 2022-11-05 02:45:03下载
- 积分:1
-
华中科技大学2007编译原理课程设计报告+源代码.rar
华中科技大学2007编译原理课程设计报告+源代码.rar-Huazhong University of Science and Technology, 2007 Principles of curriculum design report compiled+ Source code. Rar
- 2022-01-24 16:09:31下载
- 积分:1