摘要
LR分析法是编译程序语法分析中最常用且有效的自下而上的分析方法,理论较完善,适用于大多数上下文无关语言的分析。本文主要探讨LR分析的教学方法,采用"启发+关联式"教学法,引导学生理解LR分析的内涵。
LR parsing, which has relatively completed theory, is the most commonly used and effective bottom-top method in the syntax analysis of compiler, and is applied'to the analysis of most of context-free languages Teaching method of LR parsing is discussed in the paper. Heuristic and relational teaching method is rased to guide students to understand meaning of LR parsing.
出处
《计算机教育》
2010年第3期26-29,共4页
Computer Education
关键词
LR分析法
项目集规范族
LR分析表
LR文法
LR parsing
canonical collection of set of items
LF: parsing table
LR grammar