摘要
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月 1997 → 5 12月 1997 |
Conference
Conference | 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/97 → 5/12/97 |