-
在本编译程序中,源语言为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 compiler of a source code
一个c compiler的source code-c compiler of a source code
- 2023-01-13 21:50:08下载
- 积分: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 calculator procedure, and use of compiler theory of knowledge, could be used as an example to study compiler theory
- 2022-08-26 13:29:23下载
- 积分:1
-
教师评估系统,可以对教师的教课质量进行细致的评估
教师评估系统,可以对教师的教课质量进行细致的评估-Teacher evaluation system that can teach teachers to carry out detailed assessment of the quality of
- 2022-03-13 12:50:28下载
- 积分:1
-
编译器,词法分析和语法分析,里面利用到了哈希表来加快搜索字符表速度....
编译器,词法分析和语法分析,里面利用到了哈希表来加快搜索字符表速度.-compiler, lexical analysis and parsing, to use inside the hash table to expedite the search speed character tables.
- 2022-01-31 23:12:32下载
- 积分:1
-
编译原理程序之词法分析器
编译原理程序之词法分析器- Translation principle morphology of analyzer procedure
- 2022-08-13 11:59:41下载
- 积分:1
-
teste para poder baixar um aquivo
teste para poder baixar um aquivo
- 2023-01-13 18:00:05下载
- 积分:1
-
一个使用flex和bison的小例子
一个使用flex和bison的小例子-use of a flex and bison small examples
- 2022-06-19 23:30:51下载
- 积分:1
-
词法分析器,用于输入表达式后输出单个独立的数据项
词法分析器,用于输入表达式后输出单个独立的数据项-lexical analyzer for the importation of expression output of a single independent data item
- 2022-07-06 18:33:27下载
- 积分:1