Title :
A new efficient incremental evaluator for attribute grammars allowing conditional semantic equations
Author :
Naini, Majid Mojtabavi
Author_Institution :
Dept. of Electr. & Comput. Eng., Florida Atlantic Univ., Boca Raton, FL, USA
Abstract :
The evaluator presented performs a depth-first search of the (static) reverse dependency graph associated with a parse tree, interleaved with the execution of semantic rules. The full compound dependency graph is not constructed. Instead, it is implicitly represented by the semantic tree and the dependency graph of the productions. The semantic rules are precompiled as programs written in intermediate code and called semantic modules. Evaluation is a call-by-need evaluation and it is optimal in the number of attribute instances evaluated
Keywords :
grammars; attribute grammars; conditional semantic equations; depth-first search; incremental evaluator; parse tree; reverse dependency graph; semantic modules; Equations; Performance evaluation; Production; Tellurium; Tree graphs;
Conference_Titel :
Southeastcon '88., IEEE Conference Proceedings
Conference_Location :
Knoxville, TN
DOI :
10.1109/SECON.1988.194883