-
这里以开始定义的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
-
basic explanation for the source code microsoft visual studio environment throug...
basic解释器源代码
microsoft visual studio 6.0环境下通过-basic explanation for the source code microsoft visual studio environment through 6.0
- 2022-07-27 05:08:47下载
- 积分:1
-
this procedure is the function : China will decorate the expression (containing...
本程序的功能是:将中缀表达式(只能含有的运算符为( ) / * + - =)转化为后缀表达式,-this procedure is the function : China will decorate the expression (containing only the operator ()/*- =) into suffix expression,
- 2022-07-12 16:08:23下载
- 积分:1
-
- 2022-02-07 19:30:49下载
- 积分:1
-
词法分析器 对输入的程序进行分析,将关键字,保留字与系统标识符分开,并对其属性进行说明。 建立数组,将单词读入,对单词的ASCII码进行判断,将在ASCII码值...
词法分析器 对输入的程序进行分析,将关键字,保留字与系统标识符分开,并对其属性进行说明。 建立数组,将单词读入,对单词的ASCII码进行判断,将在ASCII码值在一定区间进行区分(使用if语句来判断),分开来后,对其所在ASCII值区间的不同,给予以不同的属性(比如:系统保留字…),词法分析器完成后要能识别+,-,=等字符。-lexical analyzer on the importation procedures for analysis, keyword, the word reservation system with separate identifier, and a description of their attributes. The establishment of an array, you read the word, the right word ASCII judgment, in ASCII value in a certain area and distinguish between (use to determine if statements), separately, its value lies ASCII range of different, to give a different properties (such as : system retain the word ...), after the completion of a lexical analyzer to identify,-, =, etc. characters.
- 2022-02-26 09:14:02下载
- 积分:1
-
单反的语义分析器
slr语义分析器-SLR semantic analyzer
- 2022-04-26 13:50:33下载
- 积分:1
-
本程序不能编译除大小写字母之外的编码
本程序需事先建立字母权值文后件才可运行
本程序从文件中读入文字,编译后写入文件,所以屏幕上不会直接出现答案...
本程序不能编译除大小写字母之外的编码
本程序需事先建立字母权值文后件才可运行
本程序从文件中读入文字,编译后写入文件,所以屏幕上不会直接出现答案-not build this program in addition to case-insensitive outside of the coding process required prior to the establishment of the letters after the value of the text pieces can Win OK this program read from the file into the text, compiled into the paper, not directly on the screen appeared the answer
- 2022-03-07 09:53:23下载
- 积分:1
-
大学课程设计之编译原理 词法分析
大学课程设计之编译原理 词法分析- College course translation principle lexical analysis design
- 2022-07-21 00:14:05下载
- 积分:1
-
使用LEX/YACC 编写的计算器程序
在VC环境下使用
使用LEX/YACC 编写的计算器程序
在VC环境下使用-The use of LEX/YACC calculator program written in VC environment
- 2022-08-11 00:15:11下载
- 积分:1
-
PL/0语言编译器
PL/0语言编译器-PL/0 language compiler
- 2023-04-26 13:00:03下载
- 积分:1