Conditional evaluation in simple multi-visit attribute-grammar evaluators

Wuu Yang*

*此作品的通信作者

研究成果: Paper同行評審

摘要

Attribute grammars are a formalism for specifying computations on context-free languages. Due to the non-strictness of the if constructs in attribution equations, it is possible to avoid evaluating certain attribute instances in a syntax tree. A dynamic evaluator can easily avoid such useless computations with a demand-driven approach. However, dynamic evaluators are not efficient because they need to keep the attribute dependence graph during evaluation, and they need to decide an evaluation order for each syntax tree. In contrast, a visit-oriented (static) evaluator can carefully re-arrange the evaluation order and still avoid unnecessary computations. We propose such a technique in this paper.

原文English
頁面455-464
頁數10
DOIs
出版狀態Published - 5 12月 1997
事件Proceedings of the 1997 Asia-Pacific Software Engineering Conference and International Computer Science Conference, APSEC'97 and ICSC'97 - Hong Kong, Hong Kong
持續時間: 2 12月 19975 12月 1997

Conference

ConferenceProceedings of the 1997 Asia-Pacific Software Engineering Conference and International Computer Science Conference, APSEC'97 and ICSC'97
城市Hong Kong, Hong Kong
期間2/12/975/12/97

指紋

深入研究「Conditional evaluation in simple multi-visit attribute-grammar evaluators」主題。共同形成了獨特的指紋。

引用此