-
原理同简单的编译器分析,但对输入要求较严格,附有说明
原理同简单的编译器分析,但对输入要求较严格,附有说明-principles with a simple compiler analysis, but the more stringent entry requirements, annotated
- 2022-03-24 10:39:21下载
- 积分:1
-
input is a regular expression, you can use : lowercase letters or numbers, said...
输入一个正则表达式,可以使用: 小写字母或数字,表示终结符;*,闭包;+,并集;~,补集;E,空串;O,空集 然后程序将生成 相应的NFA,以及化简之后的DFA,最后再输入一个字符串,程序判断它是否满足该正则表达式-input is a regular expression, you can use : lowercase letters or numbers, said Fu end;* Closure; , And set; To complement the set; E, empty string; O, empty set procedures will then generate the corresponding NFA, and the simplification of the DFA after finally lose into a string, procedures judgment whether it is to meet the regular expression
- 2022-06-14 20:06:53下载
- 积分:1
-
Simulation of serial communication serial port communication code M88 simulation...
模拟串口通信代码M88
模拟串口通信代码M-Simulation of serial communication serial port communication code M88 simulation code M
- 2022-02-07 15:40:13下载
- 积分:1
-
用YACC写的语法分析器
用YACC写的语法分析器- Grammar analyzer writes which with YACC
- 2022-06-17 16:24:20下载
- 积分:1
-
make文件自动生成器,可生成多种编译器的make文件
make文件自动生成器,可生成多种编译器的make文件-make document automatic production, may produce the many
kinds of compilers the make document
- 2022-07-03 13:39:41下载
- 积分:1
-
D/A Converter (D/A converter)
D/A Converter(D/A转换器)-D/A Converter (D/A converter)
- 2022-05-06 04:41:14下载
- 积分: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
-
基于从C++开发的一个LL1文法分析器,内付源码,源码中还有一定的注释...
基于从C++开发的一个LL1文法分析器,内付源码,源码中还有一定的注释-from C-based development of a LL1 grammar analyzer, which paid source, there still is a certain source of the Notes
- 2022-03-23 12:44:57下载
- 积分:1
-
目标代码生成(C++)源代码+详细的课程设计报告
源程序的中间代码变换成依赖于具体机器的等价的目标代码...
目标代码生成(C++)源代码+详细的课程设计报告
源程序的中间代码变换成依赖于具体机器的等价的目标代码-Target code generation (C++) Source code a detailed report of the curriculum design of the intermediate source code converted into machine dependent on the specific object code equivalent
- 2022-01-25 23:37:57下载
- 积分:1
-
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系...
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系,最后只得把扫描器中已做好的相关的数组部分删去。 对于float数据类型的支持,直到语义分析都是正常的,也能生成相应的汇编代码,但由于我们对8086/8088指令系统本身了解不足,这样的汇编代码将只能做到含义上完全忠实于源程序,但不能运行。 对于局部变量的支持,则于时间紧迫,所有的局部变量全被处理成静态变量。使递归函数不能得到正确的结果。 对于函数调用语句,不进行参数匹配检查,如果参数数量不对,也将能通过编译,但运行时将产生非法操作。 对&& !等逻辑操作在最后生成代码时处理比较粗燥,生成的代码在逻辑复杂时将不能保证运行正常。 接下来有一些,不能说是缺陷,但必须说明的问题: 对于main函数,没有参数表,通回类型也必须为void,但如果写上参数表及其他返回类型也能编译通过,生成代码时将简单地忽略,不影响最后的代码的运行。 对于while,for,if语句,其语句体不管是一句还是多句,必须都有{}围起来。这跟C语言中若是一句则可省略{}不同。-Due to the time constraints and lack of preparation in advance, the compiler finalized when exposed numerous problems and shortcomings, mainly in the following aspects : no support for array data type, which is grammar analyzer design of an omission, because of the time, the final could only have scanners do phase customs array deleted. For float data types of support until semantic analysis is normal, and can generate the corresponding assembly code, but because of our 808
- 2022-01-26 16:03:11下载
- 积分:1