Location:
Search - pcode
Search list
Description: PL/0语言是Pascal语言的一个子集,我们这里分析的PL/0的编译程序包括了对PL/0语言源程序进行分析处理、编译生成类PCODE代码,并在虚拟机上解释运行生成的类PCODE代码的功能。
PL/0语言编译程序采用以语法分析为核心、一遍扫描的编译方法。词法分析和代码生成作为独立的子程序供语法分析程序调用。语法分析的同时,提供了出错报告和出错恢复的功能。在源程序没有错误编译通过的情况下,调用类PCODE解释程序解释执行生成的类PCODE代码。以下源程序是以清华大学出版社《编译原理》中的源代码为基础作了少量改动而成。
程序在Turbo Pascal 7.0上编译运行通过。
-PL / 0 language Pascal language is a subset of, we have here the analysis 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 a report errors and error recovery functions. The source did not compile the wrong circumstances, PCODE category called to explain the interpretation and implementation of procedures generated PCODE category code. Following is the source Qinghua University Press, &quo
Platform: |
Size: 19052 |
Author: 姚紫欣 |
Hits:
Description: 设计文档基本内容如下:
1) 整体框架
2) 词法分析
Class CTokenizer
Class CScaner
C关键字表
标识符词法
3) 语法分析
Class CParser
Grammar
基本树形结构
支持的语句及运算
4) 建立符号表
Class LineListRec
Class BucketListRec
Class CSymbolTable
Class CFunArgsCheck
5) 类型检测
Class CAnalyzer
类型匹配
函数调用参数检测
6) 代码生成
PCode
80X86 ASM
7) 总结
详细内容请阅读本文提供的设计文档与全部源代码。-basic design documents as follows : 1) the overall framework 2) lexical analysis CTokenizer Class C Class CScaner keyword table identifier accidence 3) syntax analysis Class CParser Grammar basic tree structure support for the statement and Operational 4) Establishment of the symbol table Class LineListRec Class Buck etListRec Class CSymbolTable Class CFunArgsC heck 5) type detection Class CAnalyzer type matching function call parameters detection 6) code Generation PCode 80X86 ASM 7) summarized details please read this paper the design documentation and full source generation yards.
Platform: |
Size: 8715 |
Author: shifenai |
Hits:
Description: 设计文档基本内容如下:
1) 整体框架
2) 词法分析
Class CTokenizer
Class CScaner
C关键字表
标识符词法
3) 语法分析
Class CParser
Grammar
基本树形结构
支持的语句及运算
4) 建立符号表
Class LineListRec
Class BucketListRec
Class CSymbolTable
Class CFunArgsCheck
5) 类型检测
Class CAnalyzer
类型匹配
函数调用参数检测
6) 代码生成
PCode
80X86 ASM
7) 总结
详细内容请阅读本文提供的设计文档与全部源代码。-basic design documents as follows : 1) the overall framework 2) lexical analysis CTokenizer Class C Class CScaner keyword table identifier accidence 3) syntax analysis Class CParser Grammar basic tree structure support for the statement and Operational 4) Establishment of the symbol table Class LineListRec Class Buck etListRec Class CSymbolTable Class CFunArgsC heck 5) type detection Class CAnalyzer type matching function call parameters detection 6) code Generation PCode 80X86 ASM 7) summarized details please read this paper the design documentation and full source generation yards.
Platform: |
Size: 12932 |
Author: shifenai |
Hits:
Description: 设计文档基本内容如下:
1) 整体框架
2) 词法分析
Class CTokenizer
Class CScaner
C关键字表
标识符词法
3) 语法分析
Class CParser
Grammar
基本树形结构
支持的语句及运算
4) 建立符号表
Class LineListRec
Class BucketListRec
Class CSymbolTable
Class CFunArgsCheck
5) 类型检测
Class CAnalyzer
类型匹配
函数调用参数检测
6) 代码生成
PCode
80X86 ASM
7) 总结
详细内容请阅读本文提供的设计文档与全部源代码。-basic design documents as follows : 1) the overall framework 2) lexical analysis CTokenizer Class C Class CScaner keyword table identifier accidence 3) syntax analysis Class CParser Grammar basic tree structure support for the statement and Operational 4) Establishment of the symbol table Class LineListRec Class Buck etListRec Class CSymbolTable Class CFunArgsC heck 5) type detection Class CAnalyzer type matching function call parameters detection 6) code Generation PCode 80X86 ASM 7) summarized details please read this paper the design documentation and full source generation yards.
Platform: |
Size: 10595 |
Author: shifenai |
Hits:
Description: 设计文档基本内容如下:
1) 整体框架
2) 词法分析
Class CTokenizer
Class CScaner
C关键字表
标识符词法
3) 语法分析
Class CParser
Grammar
基本树形结构
支持的语句及运算
4) 建立符号表
Class LineListRec
Class BucketListRec
Class CSymbolTable
Class CFunArgsCheck
5) 类型检测
Class CAnalyzer
类型匹配
函数调用参数检测
6) 代码生成
PCode
80X86 ASM
7) 总结
详细内容请阅读本文提供的设计文档与全部源代码。-basic design documents as follows : 1) the overall framework 2) lexical analysis CTokenizer Class C Class CScaner keyword table identifier accidence 3) syntax analysis Class CParser Grammar basic tree structure support for the statement and Operational 4) Establishment of the symbol table Class LineListRec Class Buck etListRec Class CSymbolTable Class CFunArgsC heck 5) type detection Class CAnalyzer type matching function call parameters detection 6) code Generation PCode 80X86 ASM 7) summarized details please read this paper the design documentation and full source generation yards.
Platform: |
Size: 11814 |
Author: shifenai |
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: 383061 |
Author: mayfar |
Hits:
Description: 1. PL/0 语言介绍
●PL/0 程序设计语言是一个较简单的语言,它以赋值语句为基础,构造概念有顺序、条件和重复(循环)三种。PL/0 有子程序概念,包括过程定义(可以嵌套)与调用且有局部变量说明。PL/0语言编译程序采用以语法分析为核心、一遍扫描的编译方法。词法分析和代码生成作为独立的子程序供语法分析程序调用。语法分析的同时,提供了出错报告和出错恢复的功能。在源程序没有错误编译通过的情况下,调用类PCODE解释程序解释执行生成的类PCODE代码。
●保留字(关键字):所谓保留字是指在Pascal语言中具有特定的含义。标准Pascal语言中的保留字一共有35个,Turbo Pascal语言一共有51个。下面是Pascal语言的保留字:AND,ARRAY,BEGIN,CASE,CONST,DIV,DO,DOWNTO,ELSE,END,FILE,FOR,FUNTION,GOTO,IF,IN,LABEL,MOD,NIL,NOT,OF,OR,PACKED,PROCEDURE,PROGRAM,RECORD,REPEAT,SET,THEN,TO,TYPE,UNTIL,VAR,WHILE,WITH,EXPORTS,SHR,STRING,ASM,OBJECT,UNIT,CONSTRUCTOR,IMPLEMENTATION,DESTRUCTOR,USES,INHERITED,INLINE,INTERFACE,LIBRARY,XOR,SHL
Platform: |
Size: 513232 |
Author: 与非门 |
Hits:
Description: PL/0语言是Pascal语言的一个子集,我们这里分析的PL/0的编译程序包括了对PL/0语言源程序进行分析处理、编译生成类PCODE代码,并在虚拟机上解释运行生成的类PCODE代码的功能。
PL/0语言编译程序采用以语法分析为核心、一遍扫描的编译方法。词法分析和代码生成作为独立的子程序供语法分析程序调用。语法分析的同时,提供了出错报告和出错恢复的功能。在源程序没有错误编译通过的情况下,调用类PCODE解释程序解释执行生成的类PCODE代码。以下源程序是以清华大学出版社《编译原理》中的源代码为基础作了少量改动而成。
程序在Turbo Pascal 7.0上编译运行通过。
-PL/0 language Pascal language is a subset of, we have here the analysis 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 a report errors and error recovery functions. The source did not compile the wrong circumstances, PCODE category called to explain the interpretation and implementation of procedures generated PCODE category code. Following is the source Qinghua University Press, &quo
Platform: |
Size: 18432 |
Author: 姚紫欣 |
Hits:
Description: 设计文档基本内容如下:
1) 整体框架
2) 词法分析
Class CTokenizer
Class CScaner
C关键字表
标识符词法
3) 语法分析
Class CParser
Grammar
基本树形结构
支持的语句及运算
4) 建立符号表
Class LineListRec
Class BucketListRec
Class CSymbolTable
Class CFunArgsCheck
5) 类型检测
Class CAnalyzer
类型匹配
函数调用参数检测
6) 代码生成
PCode
80X86 ASM
7) 总结
详细内容请阅读本文提供的设计文档与全部源代码。-basic design documents as follows : 1) the overall framework 2) lexical analysis CTokenizer Class C Class CScaner keyword table identifier accidence 3) syntax analysis Class CParser Grammar basic tree structure support for the statement and Operational 4) Establishment of the symbol table Class LineListRec Class Buck etListRec Class CSymbolTable Class CFunArgsC heck 5) type detection Class CAnalyzer type matching function call parameters detection 6) code Generation PCode 80X86 ASM 7) summarized details please read this paper the design documentation and full source generation yards.
Platform: |
Size: 8192 |
Author: shifenai |
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: vb-pCode反编译工具源代码,目标程序要采用pcode方式编译.-vb-pCode decompile tool for source code, object program to be used to compile pcode way.
Platform: |
Size: 114688 |
Author: chen |
Hits:
Description: C语言写的PL0文法编译器,编译得到虚拟机代码(PCODE)并解释执行。-Written by C language compiler PL0 grammar, the compiler has been a virtual machine code (PCODE) and explain the implementation.
Platform: |
Size: 18432 |
Author: 周龙亭 |
Hits:
Description: 本程序是简单的c编译器源码,可以直接生成pcode,然后跑在虚拟机中-This procedure is a simple source c compiler can directly generate pcode, and then run in a virtual machine
Platform: |
Size: 401408 |
Author: 刘剑 |
Hits:
Description: 文本加密,利用异或操作对指定文件进行加密,加密密码由用户输入-Text encryption, the use of XOR operations on the specified file is encrypted, encryption, password from user input
Platform: |
Size: 1024 |
Author: 兔兔 |
Hits:
Description: C0文法编译器,实现语言是cpp,生成pcode目标码。-C0 grammar compiler, implementation languages are cpp, object code generated pcode.
Platform: |
Size: 370688 |
Author: 李林尧 |
Hits:
Description: 一个纯手工的c++编译器,有词法分析、语法分析,并可以声称pcode和asm汇编码-A purely manual c++ compiler, a lexical analysis, syntax analysis, and can claim that Department of asm code and pcode
Platform: |
Size: 49152 |
Author: zhangzifeng |
Hits:
Description: C编译器使用了界面库CJLIB6.0,自己修改了CrystalView的高亮显示方式,仿照emacs,代码生成先使用了PCode,但因为苦于手中没有解释器,编写一个时间不够,所以后来又编写了80x86汇编代码的生成,有一定突破。自我认为整个程序界面比较友好,功能(基于所要求的)也计较完善。-C compiler to use the interface library CJLIB6.0, his revised CrystalView highlighting the way, along the lines of emacs, code generation first use of PCode, but because the interpreter does not suffer from the hands of the preparation of a lack of time, so then prepared a 80x86 assembly code generation, have some breakthrough. Self that the whole program interface more friendly, and function (based on the requirements) are also thought to improve.
Platform: |
Size: 906240 |
Author: 白大勇 |
Hits:
Description: 鼠标画图的例子,可以下载来看看,很值得的-画图的编程
Platform: |
Size: 10240 |
Author: 许巍 |
Hits:
Description: 很好用的软件源代码,计算速度比较快,很好用的软件源代码,计算速度比较快。-It is a very good software
Platform: |
Size: 448512 |
Author: 罗志敏 |
Hits:
Description: PL0语言的Pcode中间代码生成,采用自顶向下方法(PL0's Pcode intermediate code generation)
Platform: |
Size: 141312 |
Author: AlvinZH |
Hits: