-
在本编译程序中,源语言为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
-
这是我们学习编译原理时做的一个程序. 是一个简单的词法分析程序.将一个文本文件时的推导规则进行....
这是我们学习编译原理时做的一个程序. 是一个简单的词法分析程序.将一个文本文件时的推导规则进行.-This our compiler theory when learning to do a procedure. It is a simple lexical analysis procedure. A text file of the derivation rules.
- 2022-03-09 09:57:24下载
- 积分:1
-
符合编译原理的词法分析器
符合编译原理的词法分析器- Conforms to the translation principle morphology analyzer
- 2022-08-23 11:51:28下载
- 积分:1
-
Magic C++!的源代码
Magic C++!的源代码-Magic C! Source code
- 2022-08-25 21:25:53下载
- 积分:1
-
一个程序,用于判定给定的文法是否为算符优先文法。 实现了:1.文法的机内表示;2. FIRSTVT集和LASTVT集的计算; 3. 算符优先关系矩阵的构造。...
一个程序,用于判定给定的文法是否为算符优先文法。 实现了:1.文法的机内表示;2. FIRSTVT集和LASTVT集的计算; 3. 算符优先关系矩阵的构造。-a procedure for the determination of grammar to whether the operator priority to grammar. Realized : 1. Grammar said the machines; 2. LASTVT FIRSTVT sets and set computing; 3. Operator precedence relations of the matrix structure.
- 2022-02-18 16:37:46下载
- 积分:1
-
词法分析器生成工具,Turbo C编译器生成的V2.0
词法分析器生成工具,用Turbo C v2.0编译生成的-lexical analyzer generation tool, Turbo C compiler generated v2.0
- 2023-03-20 16:25:04下载
- 积分:1
-
用汇编和C写的32位C语言编译器,支持C++,也可编译Windows程序和DLL文件...
用汇编和C写的32位C语言编译器,支持C++,也可编译Windows程序和DLL文件- 32 C language compiler write which with the assembly and C,
supports C, also may translate the Windows procedure and the DLL
document
- 2022-02-21 14:46:37下载
- 积分:1
-
编译原理―LL(1)文法分析器(1.0) 求LL(1)文法的FOLLOW集合工具: 软件读入一个LL(1)文法,生成其FOLLOW集合。...
编译原理―LL(1)文法分析器(1.0) 求LL(1)文法的FOLLOW集合工具: 软件读入一个LL(1)文法,生成其FOLLOW集合。-compiler theory-LL (1) grammar analyzer (1.0) for LL (1) grammar FOLLOW Set tools : software read an LL (1) grammar, generating its FOLLOW pool.
- 2022-01-26 06:18:06下载
- 积分:1
-
词法分析的小程序,对学编译原理的同学是个好例子
词法分析的小程序,对学编译原理的同学是个好例子-lexical analysis of small programs, compiler theory for school students is a good example
- 2022-01-29 04:13:52下载
- 积分:1
-
对简单的C程序或者Pascal程序进行词法分析
对简单的C程序或者Pascal程序进行词法分析以TOKEN字的形式放入结果文件-of simple C program or Pascal procedures lexical analysis in the form of the word TOKEN Add outcome document
- 2023-04-26 18:25:03下载
- 积分:1