-
在本编译程序中,源语言为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
-
词法分析程序设计 1、给出各单词符号的类别编码。 2、词法分析程序应能发现输入串中的错误。 3、词法分析作为单独一遍编写,词法分析结果为二元式序列组成的...
词法分析程序设计 1、给出各单词符号的类别编码。 2、词法分析程序应能发现输入串中的错误。 3、词法分析作为单独一遍编写,词法分析结果为二元式序列组成的-Lexical analysis program design one, 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 composed of
- 2022-03-25 19:56:04下载
- 积分:1
-
编译原理的词法分析器,语法分析器(包括递归子程序,算符优先,LR类分析法),语义分析等原理图...
编译原理的词法分析器,语法分析器(包括递归子程序,算符优先,LR类分析法),语义分析等原理图-compiler tenets of lexical analyzer and parser (including recursive subroutines, operator precedence, LR type analysis), semantic analysis diagram
- 2023-01-05 12:35:03下载
- 积分:1
-
一个中文分词的实现及演示程序,可用与中文和英文词组的分割....
一个中文分词的实现及演示程序,可用与中文和英文词组的分割.-a Chinese word achieve and demonstrate the procedure can be used with the Chinese and English phrase segmentation.
- 2022-07-21 16:38:26下载
- 积分:1
-
这是一个编译原理中词法分析的实验报告,内容挺完整
这是一个编译原理中词法分析的实验报告,内容挺完整-it is a test report about accidence analyse of complier principle,its context is full
- 2022-05-15 04:14:37下载
- 积分:1
-
一个表达式解析器,利用Visual Studio C++6.0 开发,感觉不错,不妨一下...
一个表达式解析器,利用Visual Studio C++6.0 开发,感觉不错,不妨一下-an expression parser, using Visual Studio C++6.0, feeling good, it may be what
- 2023-07-08 04:15:03下载
- 积分:1
-
目标代码生成(C++)源代码+详细的课程设计报告
源程序的中间代码变换成依赖于具体机器的等价的目标代码...
目标代码生成(C++)源代码+详细的课程设计报告
源程序的中间代码变换成依赖于具体机器的等价的目标代码-Target code generation (C++) Source code a detailed report of the curriculum design of the intermediate source code converted into machine dependent on the specific object code equivalent
- 2022-01-25 23:37:57下载
- 积分:1
-
Java写的词法/语法分析器。可生成JAVA语言或者是C++的词法和语法分析器。并可产生语法分析树和对该树进行遍历...
Java写的词法/语法分析器。可生成JAVA语言或者是C++的词法和语法分析器。并可产生语法分析树和对该树进行遍历 -Syntactic and phrase parser in JAVA which can produce JAVA or C
- 2022-03-12 10:21:31下载
- 积分:1
-
编译原理的作业 编译器
编译原理的作业 编译器- Translation principle work compiler
- 2022-02-27 02:51:11下载
- 积分:1
-
用C写的简易C编译器
用C写的简易C编译器-C write simple C compiler
- 2022-05-18 06:04:10下载
- 积分:1