文件名称:cifafenxiqi
- 所属分类:
- 其它资源
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 221kb
- 下载次数:
- 0次
- 提 供 者:
- 陈**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
写了一个词法分析器
这里以开始定义的PASCAL语言子集的源程序作为词法分析程序的输入数据。在词法分析中,自文件头开始扫描源程序字符,一旦发现符合“单词”定义的源程序字符串时,将它翻译成固定长度的单词内部表示,并查填适当的信息表。经过词法分析后,源程序字符串(源程序的外部表示)被翻译成具有等长信息的单词串(源程序的内部表示),并产生两个表格:常数表和标识符表,它们分别包含了源程序中的所有常数和所有标识符。-was a lexical analyzer here to start the definition of PASCAL language subset of the source points as lexical Analysis of the data entry process. The lexical analysis, the first since the paper began scanning source characters, Once found with "words" definition of the source string, it will be translated into fixed length of the internal word, check and fill the appropriate form. After lexical analysis, source string (source said external) has been translated into information such as a long string of words (source said the internal) , and produce two forms : Constant table and table identifier, namely contains the source of all the constants and all identifiers.
这里以开始定义的PASCAL语言子集的源程序作为词法分析程序的输入数据。在词法分析中,自文件头开始扫描源程序字符,一旦发现符合“单词”定义的源程序字符串时,将它翻译成固定长度的单词内部表示,并查填适当的信息表。经过词法分析后,源程序字符串(源程序的外部表示)被翻译成具有等长信息的单词串(源程序的内部表示),并产生两个表格:常数表和标识符表,它们分别包含了源程序中的所有常数和所有标识符。-was a lexical analyzer here to start the definition of PASCAL language subset of the source points as lexical Analysis of the data entry process. The lexical analysis, the first since the paper began scanning source characters, Once found with "words" definition of the source string, it will be translated into fixed length of the internal word, check and fill the appropriate form. After lexical analysis, source string (source said external) has been translated into information such as a long string of words (source said the internal) , and produce two forms : Constant table and table identifier, namely contains the source of all the constants and all identifiers.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
编译1
.....\compile1.cpp
.....\compile1.dsp
.....\compile1.dsw
.....\compile1.ncb
.....\compile1.opt
.....\compile1.plg
.....\Debug
.....\pascal.txt
.....\result.txt
.....\编译
.....\....\xinhao.doc
.....\....\编译原理实验报告chenjianfeng.doc
.....\compile1.cpp
.....\compile1.dsp
.....\compile1.dsw
.....\compile1.ncb
.....\compile1.opt
.....\compile1.plg
.....\Debug
.....\pascal.txt
.....\result.txt
.....\编译
.....\....\xinhao.doc
.....\....\编译原理实验报告chenjianfeng.doc