Computing Reviews
Today's Issue Hot Topics Search Browse Recommended My Account Log In
Review Help
Search
Matching-based incremental evaluators for hierarchical attribute grammar dialects
Carle A., Pollock L. ACM Transactions on Programming Languages and Systems17 (2):394-429,1995.Type:Article
Date Reviewed: Jan 1 1996

Semantic values in a hierarchical attribute grammar can be defined by composing other attribute grammars. Two techniques make this possible. First, the attribute values are maintained separately from the syntax tree being evaluated, in an auxiliary data structure called the attribute tree. Second, the various grammars and their evaluations must share the document’s underlying internal representation (IR).

This paper explains hierarchical attribute grammars, critiques previously published algorithms, and defines a new family of evaluation algorithms. A critical assumption is that the actual changes to the IR that occur between attribute value updates are not available a priori, but must be constructed algorithmically. The givens include the previous state of the IR, the IR as currently constituted, and the attribute tree after the last evaluation cycle. From these, an updated attribute tree is constructed. The new tree retains previously computed values wherever possible. Retaining values is critical to incremental attribute evaluation. Several algorithms are presented along with their complexity bounds. All aggressively trade space for time. Practical experience is not discussed.

The paper’s primary audience is those directly involved with language-based tools. A secondary audience is those who are interested in document differencing algorithms. Structural differencing is an interesting problem in its own right, for example in document management or source code control systems. I found the paper most interesting when considering ways to adapt the algorithms to other problem domains.

Reviewer:  Robert A. Ballance Review #: CR119259 (9601-0051)
Bookmark and Share
 
Translator Writing Systems And Compiler Generators (D.3.4 ... )
 
 
Optimization (D.3.4 ... )
 
 
Program Editors (D.2.3 ... )
 
 
Coding Tools and Techniques (D.2.3 )
 
 
Processors (D.3.4 )
 
 
Programming Environments (D.2.6 )
 
Would you recommend this review?
yes
no
Other reviews under "Translator Writing Systems And Compiler Generators": Date
The art of compiler design
Pittman T., Peters J., Prentice-Hall, Inc., Upper Saddle River, NJ, 1992. Type: Book (9780130481900)
Apr 1 1994
Compiler generation from denotational semantics
Paulson L., Cambridge University Press, New York, NY, 1984. Type: Book (9780521268431)
Jun 1 1985
Automatic compiler production: the front end
Reiss S. IEEE Transactions on Software Engineering SE-13(6): 609-627, 1987. Type: Article
Feb 1 1988
more...

E-Mail This Printer-Friendly
Send Your Comments
Contact Us
Reproduction in whole or in part without permission is prohibited.   Copyright 1999-2024 ThinkLoud®
Terms of Use
| Privacy Policy