文件名称:ll(1)fenxi
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:1.52kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本程序是采用的LL(1)方法进行的语法分析,而LL(1)的分析方法是属于自上而下的方法。
自上而下分析的基本思想是:对任意输入串,试图用一切可能的方法,从文法开始符号(根结点)出发,自上而下为输入串建立一棵语法树。从推导的角度看,它是从文法的开始符号出发,反复使用各种产生式,寻找与输入串匹配的推导。
在输入之前必须要进行该文法是不是LL(1)文法的判断,然后再构造相应的LL(1)分析表来用预测分析方法进行语法分析,依据下面的文法及分析表来设计程序实现预测分析的分析过程。
-This procedure is used for LL (1) method of syntax analysis, LL (1) methods of analysis are top-down approach.
Top-down analysis of the basic idea is: For any input string, trying to use all possible means, from the grammar start symbol (root node) proceed from top to bottom as the input string to establish a syntax tree. From the derivation of the point of view, it is starting from the grammar start symbol and repeatedly using a variety of productions to find the derivation of the input string matches.
Before you enter must be to carry out the grammar is not LL (1) grammar, the judge, and then construct the corresponding LL (1) Analysis of the table to use predictive analysis method of syntax analysis, based on the following grammar and analysis of the table to the design process to achieve predictable analysis of the analysis.
自上而下分析的基本思想是:对任意输入串,试图用一切可能的方法,从文法开始符号(根结点)出发,自上而下为输入串建立一棵语法树。从推导的角度看,它是从文法的开始符号出发,反复使用各种产生式,寻找与输入串匹配的推导。
在输入之前必须要进行该文法是不是LL(1)文法的判断,然后再构造相应的LL(1)分析表来用预测分析方法进行语法分析,依据下面的文法及分析表来设计程序实现预测分析的分析过程。
-This procedure is used for LL (1) method of syntax analysis, LL (1) methods of analysis are top-down approach.
Top-down analysis of the basic idea is: For any input string, trying to use all possible means, from the grammar start symbol (root node) proceed from top to bottom as the input string to establish a syntax tree. From the derivation of the point of view, it is starting from the grammar start symbol and repeatedly using a variety of productions to find the derivation of the input string matches.
Before you enter must be to carry out the grammar is not LL (1) grammar, the judge, and then construct the corresponding LL (1) Analysis of the table to use predictive analysis method of syntax analysis, based on the following grammar and analysis of the table to the design process to achieve predictable analysis of the analysis.
相关搜索: 语法树
LL(1) 语法分析
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建文本文档.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.