文件名称:Compiler
- 所属分类:
- 编译器/词法分析
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 472kb
- 下载次数:
- 0次
- 提 供 者:
- 丁*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
编译课上做的小程序,用四种分析方法分别实现(LL1,算符优先,递归下降,简单词法分析)
完成对正则文法所描述的Pascal语言子集单词符号的词法分析程序。
<标识符>→字母︱ <标识符>字母︱ <标识符>数字
<无符号整数>→数字︱ <无符号整数>数字
<单字符分界符> →+ ︱- ︱* ︱ ︱(︱)
<双字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒号>=︱<斜竖>*
<小于>→<
<等于>→=
<大于>→>
<冒号> →:
<斜竖> →/
识别语言的保留字 :begin end if then else for do while and or not-Compiler class to do a small procedure, analytical methods were used to achieve four (LL1, operator priority, recursive descent, a simple lexical analysis) to complete the grammar is described in a subset of the Pascal language word lexical analysis program symbols. < Identifier> → letters ︱ < identifier> letters ︱ < identifier> figures < unsigned integer> → Digital ︱ < unsigned integer> figures < single character boundaries Fu> →+ ︱- ︱ ︱* ︱ (︱) < two-character boundaries Fu> → < greater than> = ︱ < less than> = ︱ < less than> > ︱ < colon> = ︱ < oblique vertical> * < less than> → < < equal> → = < greater than> →> < colon> →: < oblique vertical> →/recognition of language reserved word: begin end if then else for do while and or not
完成对正则文法所描述的Pascal语言子集单词符号的词法分析程序。
<标识符>→字母︱ <标识符>字母︱ <标识符>数字
<无符号整数>→数字︱ <无符号整数>数字
<单字符分界符> →+ ︱- ︱* ︱ ︱(︱)
<双字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒号>=︱<斜竖>*
<小于>→<
<等于>→=
<大于>→>
<冒号> →:
<斜竖> →/
识别语言的保留字 :begin end if then else for do while and or not-Compiler class to do a small procedure, analytical methods were used to achieve four (LL1, operator priority, recursive descent, a simple lexical analysis) to complete the grammar is described in a subset of the Pascal language word lexical analysis program symbols. < Identifier> → letters ︱ < identifier> letters ︱ < identifier> figures < unsigned integer> → Digital ︱ < unsigned integer> figures < single character boundaries Fu> →+ ︱- ︱ ︱* ︱ (︱) < two-character boundaries Fu> → < greater than> = ︱ < less than> = ︱ < less than> > ︱ < colon> = ︱ < oblique vertical> * < less than> → < < equal> → = < greater than> →> < colon> →: < oblique vertical> →/recognition of language reserved word: begin end if then else for do while and or not
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Compiler
........\AccidenceAnalysis
........\.................\AccidenceAnalysis
........\.................\.................\AccidenceAnalysis.vcproj
........\.................\.................\AccidenceAnalysis.vcproj.564F741C02D04CB.Black White Grey.user
........\.................\.................\Debug
........\.................\.................\.....\AccidenceAnalysis.exe.intermediate.manifest
........\.................\.................\.....\BuildLog.htm
........\.................\.................\.....\mt.dep
........\.................\.................\.....\Scanner.obj
........\.................\.................\.....\vc80.idb
........\.................\.................\Head.h
........\.................\.................\output.txt
........\.................\.................\Scanner.cpp
........\.................\.................\test.cpp
........\.................\AccidenceAnalysis.ncb
........\.................\AccidenceAnalysis.sln
........\.................\debug
........\.................\.....\AccidenceAnalysis.exe
........\LL1
........\...\debug
........\...\.....\LL1.exe
........\...\LL1
........\...\...\Debug
........\...\...\.....\BuildLog.htm
........\...\...\.....\LL1.exe.intermediate.manifest
........\...\...\.....\LL1.obj
........\...\...\.....\mt.dep
........\...\...\.....\vc80.idb
........\...\...\Head.h
........\...\...\LL1.cpp
........\...\...\LL1.vcproj
........\...\...\LL1.vcproj.564F741C02D04CB.Black White Grey.user
........\...\...\Release
........\...\...\.......\BuildLog.htm
........\...\...\.......\LL1.exe.intermediate.manifest
........\...\...\.......\LL1.obj
........\...\...\.......\mt.dep
........\...\...\.......\vc80.idb
........\...\LL1.ncb
........\...\LL1.sln
........\...\release
........\...\.......\LL1.exe
........\OperationEmblemPercedence
........\.........................\debug
........\.........................\.....\OperationEmblemPercedence.exe
........\.........................\OperationEmblemPercedence
........\.........................\.........................\Debug
........\.........................\.........................\.....\BuildLog.htm
........\.........................\.........................\.....\mt.dep
........\.........................\.........................\.....\OperationEmblemPercedence.exe.intermediate.manifest
........\.........................\.........................\.....\OperationEmblemPercedence.obj
........\.........................\.........................\.....\vc80.idb
........\.........................\.........................\Head.h
........\.........................\.........................\OperationEmblemPercedence.cpp
........\.........................\.........................\OperationEmblemPercedence.vcproj
........\.........................\.........................\OperationEmblemPercedence.vcproj.564F741C02D04CB.Black White Grey.user
........\.........................\OperationEmblemPercedence.ncb
........\.........................\OperationEmblemPercedence.sln
........\RecursiveDescent
........\................\debug
........\................\.....\RecursiveDescent.exe
........\................\RecursiveDescent
........\................\................\Debug
........\................\................\.....\BuildLog.htm
........\................\................\.....\mt.dep
........\................\................\.....\RecursiveDescent.exe.intermediate.manifest
........\................\................\.....\RecursiveDescent.obj
........\................\................\.....\vc80.idb
........\................\................\RecursiveDescent.cpp
........\................\................\RecursiveDescent.vcproj
........\................\................\RecursiveDescent.vcproj.564F741C02D04CB.Black White Grey.user
........\................\RecursiveDescent.ncb
........\................\RecursiveDescent.sln
........\AccidenceAnalysis
........\.................\AccidenceAnalysis
........\.................\.................\AccidenceAnalysis.vcproj
........\.................\.................\AccidenceAnalysis.vcproj.564F741C02D04CB.Black White Grey.user
........\.................\.................\Debug
........\.................\.................\.....\AccidenceAnalysis.exe.intermediate.manifest
........\.................\.................\.....\BuildLog.htm
........\.................\.................\.....\mt.dep
........\.................\.................\.....\Scanner.obj
........\.................\.................\.....\vc80.idb
........\.................\.................\Head.h
........\.................\.................\output.txt
........\.................\.................\Scanner.cpp
........\.................\.................\test.cpp
........\.................\AccidenceAnalysis.ncb
........\.................\AccidenceAnalysis.sln
........\.................\debug
........\.................\.....\AccidenceAnalysis.exe
........\LL1
........\...\debug
........\...\.....\LL1.exe
........\...\LL1
........\...\...\Debug
........\...\...\.....\BuildLog.htm
........\...\...\.....\LL1.exe.intermediate.manifest
........\...\...\.....\LL1.obj
........\...\...\.....\mt.dep
........\...\...\.....\vc80.idb
........\...\...\Head.h
........\...\...\LL1.cpp
........\...\...\LL1.vcproj
........\...\...\LL1.vcproj.564F741C02D04CB.Black White Grey.user
........\...\...\Release
........\...\...\.......\BuildLog.htm
........\...\...\.......\LL1.exe.intermediate.manifest
........\...\...\.......\LL1.obj
........\...\...\.......\mt.dep
........\...\...\.......\vc80.idb
........\...\LL1.ncb
........\...\LL1.sln
........\...\release
........\...\.......\LL1.exe
........\OperationEmblemPercedence
........\.........................\debug
........\.........................\.....\OperationEmblemPercedence.exe
........\.........................\OperationEmblemPercedence
........\.........................\.........................\Debug
........\.........................\.........................\.....\BuildLog.htm
........\.........................\.........................\.....\mt.dep
........\.........................\.........................\.....\OperationEmblemPercedence.exe.intermediate.manifest
........\.........................\.........................\.....\OperationEmblemPercedence.obj
........\.........................\.........................\.....\vc80.idb
........\.........................\.........................\Head.h
........\.........................\.........................\OperationEmblemPercedence.cpp
........\.........................\.........................\OperationEmblemPercedence.vcproj
........\.........................\.........................\OperationEmblemPercedence.vcproj.564F741C02D04CB.Black White Grey.user
........\.........................\OperationEmblemPercedence.ncb
........\.........................\OperationEmblemPercedence.sln
........\RecursiveDescent
........\................\debug
........\................\.....\RecursiveDescent.exe
........\................\RecursiveDescent
........\................\................\Debug
........\................\................\.....\BuildLog.htm
........\................\................\.....\mt.dep
........\................\................\.....\RecursiveDescent.exe.intermediate.manifest
........\................\................\.....\RecursiveDescent.obj
........\................\................\.....\vc80.idb
........\................\................\RecursiveDescent.cpp
........\................\................\RecursiveDescent.vcproj
........\................\................\RecursiveDescent.vcproj.564F741C02D04CB.Black White Grey.user
........\................\RecursiveDescent.ncb
........\................\RecursiveDescent.sln