文件名称:cifafenxiqi
- 所属分类:
- 编译器/词法分析
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 28kb
- 下载次数:
- 0次
- 提 供 者:
- 何*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实现一个词法分析器,词法分析程序的主要任务是从左到右扫描每行源程序,拼成单词,换成统一的内部表示 (token)输出,送给语法分析器。具体包括:
–组织源程序的输入;
–按规则拼单词,并转换成二元形式;
–滤掉空白符,跳过注释、换行符及一些无用的符号(如字符常数的引号) (实验一已完成);
–进行行列计数,用于指出出错的行列号,并复制出错部分;
–列表打印源程序;
–发现并定位词法错误;
–生成符号表。token 文件和符号表用作语法分析的输入部分。
-Implement a lexical analyzer, lexical analysis program' s main task is scanned from left to right each line source, makes up words, and replaced with a unified internal representation (token) output, given parser. These include:- Organization of the input source - word fight by the rules, and converted into binary form - filter out the blank character, skip notes, line breaks and some useless symbols (such as character constants quotation marks) (experimental 1 has been completed) - to the ranks of count, the ranks for that error number, and copy the wrong part of it - list of print source - find and locate lexical errors - generate symbol table. token file and symbol table as part of parsing the input.
–组织源程序的输入;
–按规则拼单词,并转换成二元形式;
–滤掉空白符,跳过注释、换行符及一些无用的符号(如字符常数的引号) (实验一已完成);
–进行行列计数,用于指出出错的行列号,并复制出错部分;
–列表打印源程序;
–发现并定位词法错误;
–生成符号表。token 文件和符号表用作语法分析的输入部分。
-Implement a lexical analyzer, lexical analysis program' s main task is scanned from left to right each line source, makes up words, and replaced with a unified internal representation (token) output, given parser. These include:- Organization of the input source - word fight by the rules, and converted into binary form - filter out the blank character, skip notes, line breaks and some useless symbols (such as character constants quotation marks) (experimental 1 has been completed) - to the ranks of count, the ranks for that error number, and copy the wrong part of it - list of print source - find and locate lexical errors - generate symbol table. token file and symbol table as part of parsing the input.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
词法分析器\bianyi\bianyi\bianyi.csproj
..........\......\......\..n\Debug\bianyi.exe
..........\......\......\...\.....\bianyi.pdb
..........\......\......\...\.....\bianyi.vshost.exe
..........\......\......\cifabianyi.cs
..........\......\......\obj\bianyi.csproj.FileList.txt
..........\......\......\...\bianyi.csproj.FileListAbsolute.txt
..........\......\......\...\Debug\bianyi.exe
..........\......\......\...\.....\bianyi.pdb
..........\......\......\Program.cs
..........\......\......\...perties\AssemblyInfo.cs
..........\......\bianyi.sln
..........\......\bianyi.suo
..........\......\......\obj\Debug\TempPE
..........\......\......\bin\Debug
..........\......\......\obj\Debug
..........\......\......\bin
..........\......\......\obj
..........\......\......\Properties
..........\......\bianyi
..........\bianyi
词法分析器
..........\......\......\..n\Debug\bianyi.exe
..........\......\......\...\.....\bianyi.pdb
..........\......\......\...\.....\bianyi.vshost.exe
..........\......\......\cifabianyi.cs
..........\......\......\obj\bianyi.csproj.FileList.txt
..........\......\......\...\bianyi.csproj.FileListAbsolute.txt
..........\......\......\...\Debug\bianyi.exe
..........\......\......\...\.....\bianyi.pdb
..........\......\......\Program.cs
..........\......\......\...perties\AssemblyInfo.cs
..........\......\bianyi.sln
..........\......\bianyi.suo
..........\......\......\obj\Debug\TempPE
..........\......\......\bin\Debug
..........\......\......\obj\Debug
..........\......\......\bin
..........\......\......\obj
..........\......\......\Properties
..........\......\bianyi
..........\bianyi
词法分析器