-
在本编译程序中,源语言为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
-
The translation principle procedure, please much advises.
编译原理程序,请多指教。- The translation principle procedure, please much advises.
- 2022-08-26 09:51:32下载
- 积分:1
-
JC1.0。本编译器包含完整的文档与程序。借助 Lex & Bison, masm 开发。语句5个,支持混合运算。输入输出作为两个 IO 语句(函数调用),由汇...
JC1.0。本编译器包含完整的文档与程序。借助 Lex & Bison, masm 开发。语句5个,支持混合运算。输入输出作为两个 IO 语句(函数调用),由汇编实现并编译为 io.obj,将由 Link 链接。生成 EXE。整个流程完整清晰,代码易读。-JC1.0. The compiler includes complete documentation and procedures. With Lex Bison, can develop. Statement 5, support mixed computing. Input and output as two IO statement (function call), compiled by the compiler to achieve and io.obj will link Link. EXE generation. The entire process, complete and clear, legible code.
- 2022-03-02 14:29:23下载
- 积分:1
-
brief introduction, the entire project is divided into five documents : Main.c
简单介绍一下,整个工程分为5个文件:Main.c ----- 程序的入口点,其实很简单,就是调用两个函数。Global.h ----- 定义了一些全局变量及宏Parse.h ----- 语法分析器的主要算法Prece.h ----- 定义和实现了一些关于优先级的操作Stack.h ----- 定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎么样把课堂上学到的知识运用到实际编程当中去,工程中所用到的模块化思想,数据结构等知识都是大家学过的,大三了,希望大家在最后这段时间里把写程序的本领练就出来。:)-brief introduction, the entire project is divided into five documents : Main.c----- procedure entry point, it is actually very simple, it is called two functions. Global.h----- definition of global variables and Wang Parse.h----- parser the main algorithm Prece.h----- definition and realization of a number of priority the operation Stack.h----- the definition and implementation of a stack and operation of the compiler used whenever WITH TC 2.0 or WinTC open Main.c documents compiled enough. If found please Bug out here or affixed to amend the code of Columbia here :) Overall, the project is just a simple example, like to tell you how to put classroom knowledge
- 2022-09-22 15:55:02下载
- 积分:1
-
this procedure is the function : China will decorate the expression (containing...
本程序的功能是:将中缀表达式(只能含有的运算符为( ) / * + - =)转化为后缀表达式,-this procedure is the function : China will decorate the expression (containing only the operator ()/*- =) into suffix expression,
- 2022-07-12 16:08:23下载
- 积分:1
-
反编译专家,很好用的。支持右键,支持文件夹反编译
反编译专家,很好用的。支持右键,支持文件夹反编译-Decompile expert, well used. Support the right to support decompile folder
- 2023-07-17 16:20:03下载
- 积分:1
-
Six different lexical parsing source code, or common
6个不同的词法语法分析程序源代码,或者说通用c的编译器源码,3个c++控制台程序,3个mfc应用程序,-Six different lexical parsing source code, or common-source compiler c, 3 c++ console process, three mfc application, huh, huh
- 2022-01-30 11:50:24下载
- 积分:1
-
编译原理的一个题目:算符优先分析
编译原理的一个题目:算符优先分析-Compilation Principle of a topic: operator priority analysis
- 2023-05-29 10:30:03下载
- 积分:1
-
For a given input string that can identify the string to determine whether a giv...
对于给定的输入串,能够判断识别该串是否为给定文法的句型-For a given input string that can identify the string to determine whether a given grammar of the sentence
- 2022-03-11 22:48:02下载
- 积分:1
-
在多道程序设计系统编辑器
System Editor for multiprogramming
- 2022-01-25 21:42:01下载
- 积分:1