优秀的毕业设计论文网
计算机 JAVA 电子信息 单片机 机械机电 模具 土木工程 建筑结构 论文
热门搜索词:网络 ASP.NET 汽车 电气 数控 PLC

一个编译原理语法分析器的设计与实现论文 VB开发

以下是资料介绍,如需要完整的请充值下载.
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
  
资料介绍:

[来源:http://think58.com]

编译程序一般由词法分析程序、语法分析程序、语义分析程序、中间代码生成程序、目标代码生成程序、代码优化程序、表格管理程序和出错处理程序等成分构成。在编译原理的教学过程中,算法的讲解都需要对算法进行详细的分析,包括算法条件的判断,文法分析表的构造过程,文法分析表的具体生成,针对文法的句子的分析过程等,这些过程往往需要占用大量时间来分析、制表等。本软件的主要任务就是利用程序来完成算法的上述相关过程,以达到高效,直观的效果。本文旨在介绍语法分析方法中的一种自上而下的分析方法——LL(1)分析法。所谓LL(1)分析法是指语法分析是按自左至右的顺序向前查看一个输入字符串,并分析过程中产生句子的最左推导。 [来源:http://think58.com]

  [来源:http://www.think58.com]

关键词:编译;语法分析;LL(1)算法;演示

[资料来源:THINK58.com]

  [版权所有:http://think58.com]

[来源:http://www.think58.com]

The compiler generally is made up of the lexical analyzer program, the syntax analysis program, the semantics analysis program, the inter-language production procedure, the goal code production procedure, the code optimization procedure, the form executive program and the procedure of disposing mistakes. In the teaching process of compiler principle, all algorithm explanation needs to be explain clearly, including algorithm condition judgment, grammar analytical table structure process, grammar analytical table concrete production, in view of grammar sentence analysis process and so on. These processes often take much time to analyze, the scheduling and so on. This program mainly work is to complete the algorithm which take advantage of the procedure to deal with those above mentioned processes , in order to save time. The paper aims at introducing a syntax analytical method named LL(1) algorithm which from the up to down. The syntax analyzer analyzes the character string beginning from the left to right one word each time and educes the most left deduction of the sentence in the analyze course..

[资料来源:http://www.THINK58.com]

 

[版权所有:http://think58.com]

Key words: compiler; grammar analysis; LL(1) algorithm; demonstrate

[版权所有:http://think58.com]

 

[来源:http://www.think58.com]

 

[资料来源:THINK58.com]

 

[资料来源:http://www.THINK58.com]

论文总页数:22

[资料来源:http://THINK58.com]

1引言   1 [来源:http://think58.com]

1.1项目背景 1 [来源:http://www.think58.com]

1.2目标 1 [来源:http://think58.com]

1.3名词解释 1 [资料来源:THINK58.com]

1.4算法简介 2

[来源:http://think58.com]

1.4.1自顶向下分析   2 [资料来源:http://THINK58.com]

1.4.2 递归子程序 3 [资料来源:http://THINK58.com]

1.4.3 LL(K)分析方法  4

[资料来源:THINK58.com]

1.4.4 LL(1)分析方法  4

[资料来源:http://THINK58.com]

1.4.5LL(1)分析表 5 [资料来源:www.THINK58.com]

2 系统流程图 6

[版权所有:http://think58.com]

2.1程序流程图   6

[资料来源:http://THINK58.com]

2.2 系统模块流程图   7

[资料来源:http://think58.com]

3 系统实施   7

[来源:http://www.think58.com]

3.1文件读取模块 8 [资料来源:THINK58.com]

3.1.1文件读取使用的CommonDialog控件介绍 8

[资料来源:www.THINK58.com]

3.1.2文法左递归的判断    9

[资料来源:http://THINK58.com]

3.2算法分析模块 9 [资料来源:http://think58.com]

3.2.1select    9 [资料来源:http://think58.com]

3.2.2first 10 [资料来源:http://THINK58.com]

3.2.3follow    10

[资料来源:THINK58.com]

3.3分析表构造模块    12

[资料来源:THINK58.com]

3.3.1构造文法分析表  12

[来源:http://www.think58.com]

3.3.2A::=aβ规则    13 [来源:http://think58.com]

3.3.3A::=Dβ规则    13

[版权所有:http://think58.com]

3.3.4A::=ε规则 13 [来源:http://www.think58.com]

3.4句子分析模块 13 [资料来源:http://THINK58.com]

3.4.1读取句子   14

[来源:http://think58.com]

3.4.2分析句子   14 [资料来源:www.THINK58.com]

4 特殊问题及解决方法 14

[来源:http://www.think58.com]

4.1 Select集的求解  15 [资料来源:http://THINK58.com]

4.1.1 问题描述   15

[来源:http://www.think58.com]

4.1.2 解决方案   15 [来源:http://think58.com]

4.1.3 解决结果   15 [来源:http://www.think58.com]

4.2ListBox添加水平滚动条  15 [来源:http://www.think58.com]

4.2.1 问题描述   15

[版权所有:http://think58.com]

4.2.2 解决方案   15

[来源:http://think58.com]

4.2.3 解决结果   16

[资料来源:www.THINK58.com]

5 结果测试   16 [资料来源:www.THINK58.com]

5.1测试正确文法 16

[资料来源:http://think58.com]

5.2测试错误文法 19 [版权所有:http://think58.com]

     20

[来源:http://www.think58.com]

参考文献 20 [资料来源:http://THINK58.com]

     21

[版权所有:http://think58.com]

     22

[来源:http://think58.com]

 

[资料来源:http://think58.com]

部分运行界面 [来源:http://think58.com]

  [资料来源:http://THINK58.com]

  [来源:http://www.think58.com]

 

[资料来源:http://THINK58.com]