文件名称:cifafenxi
介绍说明--下载内容均来自于网络,请自行研究使用
词法分析器的实现,1) 输入:字符串(待进行词法分析的源程序),输出:由(种别码,自身值)所组成的二元组序列。
2) 功能:
a. 滤空格
b. 识别保留字
c. 识别标识符
d. 拼数
e. 拼复合单词: 例如: >=、 <=、 :=
3) 检查如下错误:
a. 程序语言的字符集以外的非法字符
b. 单词拼错,如9A88,而对于将begin拼写成begon的错误,只须把begon当成标识符即可
-Lexical analyzer realize, 1), type: string (to be carried out lexical analysis of source code), output: from (other kinds of code, its own value) which consists of binary sequences. 2) Function: a. filter b. Identification of spaces reserved words c. hard d. identifier to identify a number of e. hard compound word: For example:
2) 功能:
a. 滤空格
b. 识别保留字
c. 识别标识符
d. 拼数
e. 拼复合单词: 例如: >=、 <=、 :=
3) 检查如下错误:
a. 程序语言的字符集以外的非法字符
b. 单词拼错,如9A88,而对于将begin拼写成begon的错误,只须把begon当成标识符即可
-Lexical analyzer realize, 1), type: string (to be carried out lexical analysis of source code), output: from (other kinds of code, its own value) which consists of binary sequences. 2) Function: a. filter b. Identification of spaces reserved words c. hard d. identifier to identify a number of e. hard compound word: For example:
(系统自动生成,下载前可以参看下载内容)
下载文件列表
cifafenxi.cpp