-
在本编译程序中,源语言为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
-
编译原理课程的试验中的语法分析部分,程序比较长,附带报告...
编译原理课程的试验中的语法分析部分,程序比较长,附带报告-compiler theory courses in grammar test analysis, long procedures, fringe report
- 2023-08-06 01:10:03下载
- 积分:1
-
一个很好的词法分析器!
一个很好的词法分析器!- A very good morphology analyzer!
- 2022-09-29 12:20:03下载
- 积分:1
-
单反的语义分析器
slr语义分析器-SLR semantic analyzer
- 2022-04-26 13:50:33下载
- 积分:1
-
学习简单的Yacc说明的原理,掌握Yacc源文件的写法以及语法分析器生成工具BISON的使用方法和Yacc源文件的运行方法和基本步骤。...
学习简单的Yacc说明的原理,掌握Yacc源文件的写法以及语法分析器生成工具BISON的使用方法和Yacc源文件的运行方法和基本步骤。
-Yacc study shows a simple principle, Yacc master source file written syntax analyzer and generate UML tools and the use of the source language Yacc pieces of the operation and basic steps.
- 2022-12-19 01:20:04下载
- 积分:1
-
The translation principle procedure, please much advises.
编译原理程序,请多指教。- The translation principle procedure, please much advises.
- 2022-08-26 09:51:32下载
- 积分:1
-
- 2022-10-02 00:10:04下载
- 积分:1
-
1.词法分析 设计、编制并调试该C语言子集的词法分析程序,要求结果以二元组形式保存在文件中。...
1.词法分析 设计、编制并调试该C语言子集的词法分析程序,要求结果以二元组形式保存在文件中。-1. Lexical analysis design, develop and debug the C language subset of the lexical analysis procedure that requires results to binary form group to preserve the documents.
- 2022-02-01 04:29:55下载
- 积分:1
-
针对几种语言的词法分析的一点东东! 望接纳!
针对几种语言的词法分析的一点东东! 望接纳!-against several languages lexical analysis 1:00 Eastern! Wang accepted!
- 2023-09-03 08:45:03下载
- 积分:1
-
一个slr(1)的 语法分析器
可以自行输入文法
一个slr(1)的 语法分析器
可以自行输入文法-1 slr (1) parser can enter your own grammar
- 2022-06-28 23:14:36下载
- 积分:1