摘要
有些计算机高级语言存在语法直观性差、难理解等问题,现开发了一种业务逻辑语言编译系统,该系统采用受限语言文法的、分层的文法定义方法,以便消除语言的二义性,实现可扩展性。在进行语法分析时采用修正的Left-Right Parsing分析算法,该算法在构造分析表的过程中利用规则进行二义性消除,并进行区别LookaheadLeft-Right Parsing算法的效率优化。该系统已在业务逻辑可重构的应用系统-Ice Tip中得到应用,实践证明此系统在效率和性能上完全可以满足用户的需求。
Because the computer advanced languages have some problems, for example bad vision, difficult intelligibility in syntax and so on, an operation logic language of compiled system is adopted restricted grammar and stratified grammar definitions in its effect to dispel ambiguous grammar and gain its expansibility. The amendatory Left-Right Parsing algorithm in analysis expressions is used to dispel ambiguity by rules in constructing analytic table, and is distinguished itself from Look ahead Left-Right Parsing algorithm by efficiency optimization. The system had applied IceTip, which is an operation logic reconstructive applied system, and it proved that it can satisfy user's requirements in efficiency and capability.
出处
《科学技术与工程》
2008年第8期2067-2070,共4页
Science Technology and Engineering
关键词
分层定义
二义性消除
受限语言文法定义
逻辑可重构
stratified definition ambiguity grammar elimination restricted grammar definition reconstructed logic