文件名称:Compiler

介绍说明--下载内容均来自于网络,请自行研究使用

编译课上做的小程序,用四种分析方法分别实现(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
(系统自动生成,下载前可以参看下载内容)

下载文件列表

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

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org