-
在本编译程序中,源语言为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
-
我写的词法语法分析器
我写的词法语法分析器- I write morphology grammar analyzer
- 2022-02-12 05:45:22下载
- 积分:1
-
c语言写的basic词法分析器
c语言写的basic词法分析器-c language writes basic morphology analyzer
- 2022-09-28 07:55:03下载
- 积分:1
-
SLR的语法分析器,VC6.0编译器通过,输入输出的文件名详见代码,输出文件中的分析过程和编译原理课本要求类似,根据不同的句子可能需要重新调整对齐格式...
SLR的语法分析器,VC6.0编译器通过,输入输出的文件名详见代码,输出文件中的分析过程和编译原理课本要求类似,根据不同的句子可能需要重新调整对齐格式-A SLR parser, built by MS VC 6.0, an assignment of my Compiler Principles course
- 2022-02-05 03:47:52下载
- 积分:1
-
编译与调试技巧源代码:qprofile_src
编译与调试技巧源代码:qprofile_src-compile and debug source code skills : qprofile_src
- 2023-03-11 21:30:04下载
- 积分:1
-
这是个编译原理的课程设计,是一个DO
这是个编译原理的课程设计,是一个DO-WHILE循环语句的翻译程序设计,包括词法分析,语法分析,生成中间代码四元式。-This is a compiler theory of curriculum design, is a DO-WHILE loop is the translation program design, including lexical analysis, grammar analysis, code generation middle-4 yuan.
- 2022-01-26 01:39:17下载
- 积分:1
-
Java形式文法
Java形式文法-BNF.是设计形式文法的好范例。-Java form grammar-BNF. Form design is a good example of grammar.
- 2022-11-05 00:40:03下载
- 积分:1
-
输入文法,可以实现对非终结符,终结符的判断,最后判断文法。...
输入文法,可以实现对非终结符,终结符的判断,最后判断文法。-importation of grammar can be realized by the end of the non-Fu, Fu end of the judgment, the final judgment of grammar.
- 2022-05-31 20:44:29下载
- 积分:1
-
C#语言编译器和库文件源码
C#语言编译器和库文件源码-C# Language compiler and library file source
- 2022-01-29 03:09:32下载
- 积分:1
-
词法分析程序,是一个词法分析程序,可以分析单词,指出错误。...
词法分析程序,是一个词法分析程序,可以分析单词,指出错误。-lexical analysis procedure is a lexical analysis procedures can be analyzed word that mistake.
- 2023-06-20 15:10:04下载
- 积分:1