文件名称:ll(1)YUFAPANDUAN
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:4.67kb
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
学编译原理时写的一个语法分析程序
分类:C/C++技术交流
一.[目的要求]
① 对输入文法,由程序自动构造FIRST FOLLOW集
② 对输入文法,由程序自动生成它的LL(1)分析表;
③ 对于给定的输入串,应能判断识别该串是否为给定文法的句型。
二.[题目分析]
该程序可分为如下几步:
(1)读入文法
(2)判断正误
(3)若无误,判断是否为LL(1)文法
(4)若是,构造分析表;
(5)由总控算法判断输入符号串是否为该文法的句型。
-Studies Compilation Principle wrote a syntax analysis program Category: C/C++ A technology exchange. [Objective request] ① the input grammar, automatically constructed by the procedures set FIRST FOLLOW ② the input grammar, it is automatically generated by the process of LL (1) analysis table ③ For a given input strings, should be able to identify the string to determine whether given the sentence grammar.二. [Title Analysis] The program can be divided into the following steps: (1) read into the grammar (2) The judge is false (3) If correct, determine whether to LL (1) grammar (4) If so, structural analysis table (5) controlled by the general algorithm to determine whether the string of input symbols for the grammar of the sentence.
分类:C/C++技术交流
一.[目的要求]
① 对输入文法,由程序自动构造FIRST FOLLOW集
② 对输入文法,由程序自动生成它的LL(1)分析表;
③ 对于给定的输入串,应能判断识别该串是否为给定文法的句型。
二.[题目分析]
该程序可分为如下几步:
(1)读入文法
(2)判断正误
(3)若无误,判断是否为LL(1)文法
(4)若是,构造分析表;
(5)由总控算法判断输入符号串是否为该文法的句型。
-Studies Compilation Principle wrote a syntax analysis program Category: C/C++ A technology exchange. [Objective request] ① the input grammar, automatically constructed by the procedures set FIRST FOLLOW ② the input grammar, it is automatically generated by the process of LL (1) analysis table ③ For a given input strings, should be able to identify the string to determine whether given the sentence grammar.二. [Title Analysis] The program can be divided into the following steps: (1) read into the grammar (2) The judge is false (3) If correct, determine whether to LL (1) grammar (4) If so, structural analysis table (5) controlled by the general algorithm to determine whether the string of input symbols for the grammar of the sentence.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ll(1)YUFAPANDUAN/LL1.c
ll(1)YUFAPANDUAN
ll(1)YUFAPANDUAN
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.