-
这里以开始定义的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
-
一个小型的编译程序,用于学习实验。
文件中包含有 词法分析 语法分析 编译程序等...
一个小型的编译程序,用于学习实验。
文件中包含有 词法分析 语法分析 编译程序等
-Compile a small program for learning experiment. File contains lexical analysis parser compiler, etc.
- 2022-08-07 07:38:58下载
- 积分:1
-
这是一个模拟语言的编译程序
这是一个模拟的C语言编译器---Little C程序。可支持递归、if语句、do-while、return等语句。-This is a simulation of the C language compiler-Little C procedures. Support recursion, if statements, do-while, return and other statements.
- 2022-03-02 21:40:08下载
- 积分:1
-
顶程序
本程序用于自顶向下的语法分析。只您输入的上下问无关文法进行分析,并构造出预测分析表。-procedure for the top-down syntax analysis. Only you enter the ministry asked not grammar analysis and structural analysis projected table.
- 2023-07-11 12:30:05下载
- 积分:1
-
LL (1) parser
LL(1)语法分析器,在任何时候,总控程序都是按照栈顶符号X和当前输入符号a行事的。对于任何(X,a),总控程序每次都执行下述三种可能的动作之一:
若X=a=’#’,则宣布分析成功,停止分析过程;
若X=a≠’#’,则把X从栈顶逐出,让a指向下一输入符号;
若X是一个非终结符,则查看分析表M。若M中存放着一条关于X的产生式,那么,首先把X逐出栈顶,然后,把产生式的右部符号按反序一一推进栈,同时做这个产生式相应的语义动作(目前不管)。若M[X,a]中存放着一条出错标志,则调用出错诊查程序Error。-LL (1) parser
- 2022-04-20 05:21:39下载
- 积分:1
-
C语言编译的语法分析..
C语言编译的语法分析.. -C language compiler syntax analysis ..
- 2022-11-16 16:55:03下载
- 积分:1
-
大学课程设计之编译原理 词法分析
大学课程设计之编译原理 词法分析- College course translation principle lexical analysis design
- 2022-07-21 00:14:05下载
- 积分:1
-
Attends class when teacher has used SNL compiler
上课时老师用过的SNL编译器- Attends class when teacher has used SNL compiler
- 2022-06-14 21:29:07下载
- 积分:1
-
自己写的一个编译程序,可以从二进制文件中读取一段c程序,进行表达式的识别和一些简单的c语句,最后生成三元式输出...
自己写的一个编译程序,可以从二进制文件中读取一段c程序,进行表达式的识别和一些简单的c语句,最后生成三元式输出-To write a compiler, you can read from the binary files for some c procedures, identification and expression of c some simple statements, the last generation of ternary output
- 2023-06-12 09:50:03下载
- 积分:1
-
编写一个C语言的子集的词法分析程序,对C语言源代码程序进行扫描,识别简单语言的基本字、标识符、无符号整数、运算符和界符等单词符号,产生的单词转换成特别码表示,形...
编写一个C语言的子集的词法分析程序,对C语言源代码程序进行扫描,识别简单语言的基本字、标识符、无符号整数、运算符和界符等单词符号,产生的单词转换成特别码表示,形成word文件(单词序列)保存。-CCwordSequence) preservation.
- 2022-01-26 05:44:59下载
- 积分:1