节点文献
编译实验教学之LR(0)分析表的分析与构造
Analysis and Construction of LR(0) Analytical Table in Compiler Experiment Teaching
【摘要】 编译原理是计算机学科的核心课程,实验教学对学生学习该课程具有相当重要的作用。LR(0)分析表是LR(0)分析器的主要组成部分之一,是建立其他LR分析的基础。本文首先对LR(0)的理论基础进行阐述,然后,着重讨论LR(0)项目集族和LR(0)分析表的构造方法,最后,对实现构造LR(0)分析表的C++语言程序进行分析。
【Abstract】 Compiler principle is a kernel course of computer subject,and the experiment teaching is very important for students to learn the couse.LR(0) analytical table is one of the major parts of the LR(0) analysor,and it is the basis of the major controling procedure’s analyzing action.Firstly,the article explains theory basis of LR(0) analysor,secondly discusses LR(0) itemsets project and construction method of the LR(0) analytical table emphatically,and finally,analyzes the C++ language procedure of realizing the construction of LR(0) analytical table.
【关键词】 LR(0)文法;
LR(0)分析表;
LR(0)项目;
LR(0)项目集族;
【Key words】 LR(0) Grammar; LR(0) analytical table; LR(0) item; LR(0) itemsets;
【Key words】 LR(0) Grammar; LR(0) analytical table; LR(0) item; LR(0) itemsets;
【基金】 安徽省高等学校省级教学质量与教学改革工程项目(20100692);安庆市科技局重点项目(20100807)资助
- 【文献出处】 安庆师范学院学报(自然科学版) ,Journal of Anqing Teachers College(Natural Science Edition) , 编辑部邮箱 ,2011年01期
- 【分类号】TP314
- 【下载频次】203