Location:
Search - plo-com
Search list
Description: pl/0编译器的C++实现,包含了词法分析,语法分析,语义分析&代码生成部分。-pl / 0 compiler for C + + realization included lexical analysis, parsing, Semantic Analysis & code generator parts.
Platform: |
Size: 24263 |
Author: 张艾 |
Hits:
Description: 在本编译程序中,源语言为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 to use syntax analysis of the core, the compiler again scanning methods. Lexical analysis, and code generation as an independent for the subroutine call syntax analysis procedures. Grammatical analysis at the same time, provided the error reporting function. The source did not compile the wrong circumstances, Call category PCODE explain the interpretation and implementation of procedures generated P
Platform: |
Size: 384000 |
Author: mayfar |
Hits:
Description: plo 清华版的第二章的那个!!
1. 基本内容(成绩范围:“中”、“及格”或“不及格”)
对PL/0作以下修改扩充:
(1)增加单词:保留字 ELSE,FOR,TO, DOWNTO
运算符 +=,-=,++,--
修改单词:不等号# 改为 <>
增加条件语句的ELSE子句
(2)扩充赋值运算:+= 和 -=
(3)扩充语句(Pascal的FOR语句):
①FOR <变量>:=<表达式> TO <表达式> DO <语句>
②FOR <变量>:=<表达式> DOWNTO <表达式> DO <语句>
其中,语句①的循环变量的步长为1,
语句②的循环变量的步长为-1。
选做内容:
(1)增加运算:++ 和 --。
(4)增加一维数组类型(可增加指令)
-plo Qinghua version of the second chapter of that! ! 1. Basic content (results Scope : "China" and "pass" or "fail"), PL/0 expansion for the following modifications : (1) increase the words : retaining the word ELSE, FOR, TO, DOWNTO Operators =,-=,.-- amend the words : re# sign of inequality
Platform: |
Size: 1241088 |
Author: litianwag |
Hits:
Description: pl/0编译器的C++实现,包含了词法分析,语法分析,语义分析&代码生成部分。-pl/0 compiler for C++ realization included lexical analysis, parsing, Semantic Analysis & code generator parts.
Platform: |
Size: 23552 |
Author: 张艾 |
Hits:
Description: 我在三做的课程,当时拿到了95分,包括完整的报告,有IF/else/read/for等语句的plo-I do three courses, then get 95 hours, including a full report, IF there/else/read/for such phrases as the plo
Platform: |
Size: 573440 |
Author: 陈金鹏 |
Hits: