-
在本编译程序中,源语言为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
-
optional exercise4答案,比较详细
optional exercise4答案,比较详细-optional exercise4
- 2022-03-05 08:27:11下载
- 积分:1
-
词法分析,LL1语法分析,语义分析,中间代码生成,中间代码优化(常表达式优化,公共表达式优化,循环不变式优化),中间代码生成目标代码,目标代码的解释执行,详细地...
词法分析,LL1语法分析,语义分析,中间代码生成,中间代码优化(常表达式优化,公共表达式优化,循环不变式优化),中间代码生成目标代码,目标代码的解释执行,详细地阐述了一个编译器的设计和实现.-lexical analysis, LL1 syntax analysis, semantic analysis and code generation and code optimization (regular expression optimization, public expression optimization, optimization loop invariant), intermediate code generated object code, object code to explain the implementation of a detailed exposition of a compiler the design and implementation.
- 2022-05-21 17:48:29下载
- 积分:1
-
雅加达
jakarta-regexp-1.5 正则表达式的源代码-jakarta-regexp-1.5 regular expression source code
- 2022-02-06 14:33:40下载
- 积分:1
-
Review of information compiled principle. Which contains a detailed review infor...
编译原理的复习资料。里面包含着详细的复习资料。通过学习,过编译原理这门课应该是没问题了-Review of information compiled principle. Which contains a detailed review information. Through the study, had to compile this class should be the principle there is no problem
- 2022-03-28 21:19:51下载
- 积分:1
-
语法分析器(C++)源代码+其详细的课程设计报告
输入的文法可以消除左递归并提取公共左因子求出文法的非终结集合――FIRST和FOLLOW集并对输入的算符优...
语法分析器(C++)源代码+其详细的课程设计报告
输入的文法可以消除左递归并提取公共左因子求出文法的非终结集合――FIRST和FOLLOW集并对输入的算符优先文法,构造算符优先关系表
-Parser (C++) Source code its detailed report on curriculum design input left recursive grammar can be eliminated and the public left factor extract derived grammar of non-end collection- FIRST and FOLLOW set of the input operator priority grammar, operator precedence relations structure table
- 2022-06-20 01:08:25下载
- 积分:1
-
一个C++函数解释器,很好用的。
一个C++函数解释器,很好用。-a C function interpreter, a good use.
- 2023-06-21 03:40:07下载
- 积分:1
-
VisulASMSetup(汇编集成)
VisulASMSetup(汇编集成)-VisulASMSetup (assembly integration)
- 2022-05-09 01:22:56下载
- 积分:1
-
编译原理实验中的工具BISON,可以再windows或者DOS下使用
编译原理实验中的工具BISON,可以再windows或者DOS下使用-Compilation Principle Experiment tools BISON, can be used under windows or DOS
- 2023-08-09 12:55:03下载
- 积分:1
-
词法分析的浏览单词程序,很不错的。支持哦!
词法分析的浏览单词程序,很不错的。支持哦!-Lexical Analysis of browsing word process, very good. In support of Oh!
- 2022-09-12 03:15:04下载
- 积分:1