-
在本编译程序中,源语言为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
-
- 2022-04-23 20:26:18下载
- 积分:1
-
timer for pool on ATTiny 2313
timer for pool on ATTiny 2313
- 2022-08-26 05:04:51下载
- 积分:1
-
编译原理LR(0)文法分析器 录入合法的LR(0)文法,将输出LR(0)分析表,并可以对输入的句子进行语法分析输出相应语法树。 程序中部分算法还很不简洁,有待改...
编译原理LR(0)文法分析器 录入合法的LR(0)文法,将输出LR(0)分析表,并可以对输入的句子进行语法分析输出相应语法树。 程序中部分算法还很不简洁,有待改进,欢迎朋友与我多多交流。- Translation principle LR (0) grammar analyzer input legitimate
LR (0) the grammar, will output LR (0) the analytical table, and will
be allowed to carry on the grammar analysis output corresponding
grammar tree to the input sentence. In the procedure the partial
algorithms very are not succinct, await improvements, welcome the
friend and my many exchanges.
- 2022-05-17 18:31:19下载
- 积分:1
-
pascals compiler source code and explanations
pascals编译程序源代码及说明-pascals compiler source code and explanations
- 2022-01-26 19:59:33下载
- 积分: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
-
编译原理课程设计,用C写的PL/0编译器,有详细的文档和代码
编译原理课程设计,用C写的PL/0编译器,有详细的文档和代码-compiler theory curriculum design, the C write PL/0 compiler, a detailed documentation and code
- 2022-03-13 18:23:16下载
- 积分:1
-
一个很好的词法分析器!
一个很好的词法分析器!- A very good morphology analyzer!
- 2022-09-29 12:20:03下载
- 积分:1
-
一个basic语言的编译工具。
一个basic语言的编译工具。- A basic language translation tool.
- 2023-06-13 05:40:04下载
- 积分:1
-
Based on the classic of the Context
经典的基于Context-Free_Grammer 的语法分析器。-Based on the classic of the Context-Free_Grammer grammar analyzer.
- 2022-01-23 10:51:01下载
- 积分:1