Conditional evaluation in simple multi-visit attribute-grammar evaluators

Wuu Yang*

*此作品的通信作者

研究成果: Article同行評審

摘要

Attribute grammars are a formalism for specifying computations on context-free languages. Due to the nonstrictness 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
頁(從 - 到)601-610
頁數10
期刊Proceedings of the National Science Council, Republic of China, Part A: Physical Science and Engineering
21
發行號6
DOIs
出版狀態Published - 5 11月 1997

指紋

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

引用此