属性文法的广义系统化表示
Generalized Systematic Debugging for Attribute Grammars
摘要:
属性文法是一种有效的语义分析和翻译方法。然而,由于自动生成系统固有的困难,如递归语法结构和属性依赖,调试自动生成系统是复杂的。本文提出了一种新的系统调试自动发电机的方法。我们的方法是,在原则上,基于先前提出的算法调试的AG,但更一般。这很容易集成各种基于查询的系统调试方法,包括基于切片的方法。该方法已在AG描述调试器Aki中实现。我们使用Aki实验评估了我们的新方法,这证明了我们的调试方法的可用性。
英文摘要:
Attribute grammars (AGs) are known to be a useful formalism for semantic analysis and translation. However, debugging AGs is complex owing to inherent difficulties of AGs, such as recursive grammar structure and attribute dependency. In this paper, a new systematic method of debugging AGs is proposed. Our approach is, in principle, based on previously proposed algorithmic debugging of AGs, but is more general. This easily enables integration of various query-based systematic debugging methods, including the slice-based method. The proposed method has been implemented in Aki, a debugger for AG description. We evaluated our new approach experimentally using Aki, which demonstrates the usability of our debugging method.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。