-
针对java语言的最简词法分析器 输入原文件输出目标文件。txt
针对java语言的最简词法分析器 输入原文件输出目标文件。txt
- 2022-04-21 03:15:00下载
- 积分:1
-
一个带界面的词法分析器~~界面比较简练友好,适合初学者使用...
一个带界面的词法分析器~~界面比较简练友好,适合初学者使用-An interface with a lexical analyzer ~ ~ more concise and friendly interface, suitable for beginners to use ~~~~~
- 2023-08-20 15:10:02下载
- 积分:1
-
TINYC source code
TINYC的源代码-TINYC source code
- 2023-04-16 17:45:04下载
- 积分:1
-
这里以开始定义的PASCAL语言子集的源程序作为词法分析程序的输入数据。在词法分析中,自文 件头开始扫描源程序字符,一旦发现符合“单词”定义的源程序字符串时,将...
这里以开始定义的PASCAL语言子集的源程序作为词法分析程序的输入数据。在词法分析中,自文 件头开始扫描源程序字符,一旦发现符合“单词”定义的源程序字符串时,将它翻译成固定长度的单 词内部表示,并查填适当的信息表。经过词法分析后,源程序字符串(源程序的外部表示)被翻译成 具有等长信息的单词串(源程序的内部表示),并产生两个表格:常数表和标识符表,它们分别包含 了源程序中的所有常数和所有标识符。- Here starts the PASCAL language subset source program which
defines to take the lexical analyaer the data-in. In the lexical
analysis, starts from the article article to scan the source program
character, once discovered when conforms to "the word" the definition
source program character string, translates it the fixed length the
word interior to indicate, and looks up fills in the suitable
information table. After the lexical analysis, the source program
character string (source program exterior expression) is translated
has and so on the long information the word string (source program
internal expression), and produces two forms: The chart and the
identifier table, they have separately contained in source program all
constants and all identifiers.
- 2022-03-30 16:56:06下载
- 积分:1
-
flex 词法分析器 识别token单元
flex 词法分析器 识别token单元-syntax analysis
- 2023-01-24 13:30:04下载
- 积分: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
-
optional exercise4答案,比较详细
optional exercise4答案,比较详细-optional exercise4
- 2022-03-05 08:27:11下载
- 积分:1
-
希望可以帮助同学在编译原理上有有更多的理解!
希望可以帮助同学在编译原理上有有更多的理解!- The hope may help the schoolmate in the translation principle
has more understanding!
- 2022-09-29 14:05:03下载
- 积分:1
-
查看asn1 ber编码方式的源文件,有多种查看方式
查看asn1 ber编码方式的源文件,有多种查看方式-Show asn1 ber encoding the source file, there are several ways to view
- 2022-06-18 11:07:57下载
- 积分:1
-
FFmpeg output_example.cpp的源代码。
FFmpeg output_example.cpp的源代码。-The code of output_example.cpp belongs to FFmpeg.
- 2023-05-18 08:20:04下载
- 积分:1