-
在本编译程序中,源语言为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
-
A LL(1) parser, built by MS VC 6.0, an assignment of my Complier Principles co...
LL(1)的语法分析器,VC6.0编译器通过,输入输出的文件名详见代码,输出文件中的分析过程和编译原理课本要求类似,根据不同的句子可能需要重新调整对齐格式-A LL(1) parser, built by MS VC 6.0, an assignment of my Complier Principles course
- 2022-08-16 06:42:11下载
- 积分:1
-
计算机科班学生的词法分析作业,用flex处理生成的VC源程序。...
计算机科班学生的词法分析作业,用flex处理生成的VC源程序。- The computer regular professional training student s lexical
analysis work, processes the production with flex the VC source
program.
- 2022-03-11 07:34:59下载
- 积分:1
-
itis a program to solve the lexical expressions .its efficeincy is very good in...
itis a program to solve the lexical expressions .its efficeincy is very good in solving the expressions-itis a program to solve the lexical expressions .its efficeincy is very good in solving the expressions...
- 2023-07-20 13:40:03下载
- 积分:1
-
c++ to visual basic converter
c++ to visual basic converter-c++ to visual basic converter
- 2022-06-21 02:19:36下载
- 积分:1
-
lalr1编译器,网上找的,可以使用!是学习编译原理这门课程的好例子,大家下下来可以自己试一试...
lalr1编译器,网上找的,可以使用!是学习编译原理这门课程的好例子,大家下下来可以自己试一试-lalr1 compiler, for the Internet, you can use! Principle study compiled this course a good example, where you can down their test!
- 2022-03-09 17:31:03下载
- 积分:1
-
一个简单词法分析,用Java写的,有界面的
一个简单词法分析,用Java写的,有界面的-this is written in Java
- 2022-12-19 20:45:03下载
- 积分:1
-
读取BNF表达式和终结符文件,然后生成相应文法的First、Follow集、文法分析表以及冲突表。...
读取BNF表达式和终结符文件,然后生成相应文法的First、Follow集、文法分析表以及冲突表。-BNF expressions and terminator read the file, and then generates the appropriate grammar First, Follow sets, grammar analysis table, as well as conflict table
- 2022-05-31 03:17:31下载
- 积分:1
-
词法分析程序设计
词法分析程序设计- The lexical analyaer designs
- 2022-03-07 08:13:07下载
- 积分:1
-
it is program which is used to bulid a hut in c program.having the simplicity in...
it is program which is used to bulid a hut in c program.having the simplicity in program
- 2022-01-31 02:33:57下载
- 积分:1