所属分类:
编译器/解释器
开发工具:C++ Builder
文件大小:199KB
下载次数:17
上传日期:2005-12-25 18:56:31
说明: 该词法分析程序用VC++ 6.0编写,以FileOpenDialog打开的*.c或*.cpp文件为语言字集的源程序作为词法分析程序的输入数据,经词法分析程序分析后的结果保存在源文件的同目录的output.txt文件中。在词法分析中,自文件头开始扫描源程序字符,一旦发现符合“单词”定义的源程序字符串时,将它翻译成固定长度的单词内部表示,并查填适当的信息表。经过词法分析后,源程序字符串(源程序的外部表示)被翻译成具有等长信息的单词串(源程序的内部表示),并产生两个表格:常数表和标识符表,它们分别包含了源程序中的所有常数和所有标识符。
(the lexical analysis procedures used to prepare VC 6.0 to FileOpenDialog open*. c*. cpp documents or language character sets for the source as lexical analysis of the data entry process, the analysis of lexical analysis procedures after the results stored in the same source file directory paper output.txt . 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, and to identify the appropriate information filled table. After lexical analysis, source string (source said external) has been translated into information such as a long string of words (internal source said), and produce two forms : Constant table and table identifier, namely)
文件列表:
CFFX
....\CA.
cpp
....\CA.
h
....\CFFX.
APS
....\CFFX.
clw
....\CFFX.
cpp
....\CFFX.
dsp
....\CFFX.
dsw
....\CFFX.
h
....\CFFX.
ncb
....\CFFX.
opt
....\CFFX.
plg
....\CFFX.
rc
....\CFFXDlg.
cpp
....\CFFXDlg.
h
....\ReadMe.
txt
....
\res
....\...\CFFX.
rc2
....\Resource.
h
....\richtext.
cpp
....\richtext.
h
....\StartDlg.
cpp
....\StartDlg.
h
....\StdAfx.
cpp
....\StdAfx.
h
....\词法分析器-实验报告.
doc