-
用c寓言编写的一个词法分析程序! 很不错
用c寓言编写的一个词法分析程序! 很不错-c fable with the preparation of a lexical analysis procedure! Very good
- 2022-01-21 19:18:45下载
- 积分:1
-
在本编译程序中,源语言为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
-
编译原理的源代码,涉及了编译原理的各个过程:词法分析,LL1语法分析,语义分析,中间代码生成,中间代码优化(常表达式优化,公共表达式优化,循环不变式优化),中间...
编译原理的源代码,涉及了编译原理的各个过程:词法分析,LL1语法分析,语义分析,中间代码生成,中间代码优化(常表达式优化,公共表达式优化,循环不变式优化),中间代码生成目标代码,目标代码的解释执行,详-compiler source code, the compiler principles involved in various processes : lexical analysis, LL1 syntax analysis, semantic analysis and code generation and code optimization (regular expression optimization, public expression optimization, optimization loop invariant), intermediate code generated object code target code enforcement explained in detail
- 2022-01-25 21:41:34下载
- 积分:1
-
一个非常好的词法分析程序,加上语法的分析是一个难得一见的好实例...
一个非常好的词法分析程序,加上语法的分析是一个难得一见的好实例-a very good lexical analysis procedure, in addition to the syntax analysis is a rare to see a good example
- 2022-06-28 22:57:22下载
- 积分:1
-
编译原理独立词法分析程序
编译原理独立词法分析程序- Translation principle independent lexical analyaer
- 2022-03-16 06:38:21下载
- 积分:1
-
编译原理课程设计,用C写的PL/0编译器,有详细的文档和代码
编译原理课程设计,用C写的PL/0编译器,有详细的文档和代码-compiler theory curriculum design, the C write PL/0 compiler, a detailed documentation and code
- 2022-03-13 18:23:16下载
- 积分:1
-
VC++编的一个词法分析器
VC++编的一个词法分析器-VC series a lexical analyzer
- 2023-05-11 21:50:02下载
- 积分:1
-
简单的词法分析(parseclass.h)
简单的词法分析(parseclass.h)- Simple lexical analysis (parseclass.h)
- 2022-09-01 23:45:02下载
- 积分:1
-
vc做的C语言编译器,基本可以编译c的各种特性,值得学习编译器的朋友下载...
vc做的C语言编译器,基本可以编译c的各种特性,值得学习编译器的朋友下载-vc do C language compiler, which can be compiled c various properties worth learning compiler downloaded to see friends
- 2022-03-29 07:10:53下载
- 积分:1
-
一个表达式解析器,利用Visual Studio C++6.0 开发,感觉不错,不妨一下...
一个表达式解析器,利用Visual Studio C++6.0 开发,感觉不错,不妨一下-an expression parser, using Visual Studio C++6.0, feeling good, it may be what
- 2023-07-08 04:15:03下载
- 积分:1