摘要: 本文介绍了一种基于属性文法的编译结构设计方法。本编译设计方法采用两遍扫描,语法分析采用自顶向下的分析技术,并与属性文法中对继承属性的自顶向下计值过程揉合在一起,而在第二遍处理中,进行自下而上地对综合属性的计值。这样就很自然地将属性文法的思想和办法运用于编译结构设计之中,实践表明,其效果是好的。
Abstract: A method of designing compiler based on the attributed grammar is introduced and discussed. There are two passers in this compiler. Top-down analysis technique is adopted for the parser and is combined naturally with the top-down estimator for ATI. The bottom-up estimator for ATS is handled in the second Pass. In this way, the idea of attributed grammar is incorporated into the procedure for designing compilers with high efficiency.
赵荣彩. 一种基于属性文法的编译结构设计方法[J]. , 1988, 14(01): 24-.
Zhao Rongcai. A METHOD OF DESIGNING COMPILERS BASED ON THE ATTRIBUTED GRAMMAR[J]. , 1988, 14(01): 24-.