Akim Demaille and Renaud Durlin and Nicolas Pierron and Benoît Sigoure. Automatic Attribute Propagation for Modular Attribute Grammars. CSI Seminar 0801 January 2008

Attribute grammars are well suited to describe (parts of) the semantics of programming languages: hooked on the syntactic production rules, they allow to express local relations that are later bound globally by a generic evaluator. However they fall short when working on large and complex languages. First attributes that are virtually needed everywhere need to be propagated by every single production rule. Second, this constraint hinders modularity, since adding a syntactic extension might require the propagation of new attributes in the rest of the language. This paper shows how to solve these problems by introducing a technique to automatically propagate attributes by completing the set of semantic rules. We formally define the propagation constraints such that it is optimized to avoid unnecessary addition of semantic rules. Attribute grammars are thus made more maintainable, modular and easier to use.

PublicationForm
Logo:
Category: SoftwareTools
Title: Automatic Attribute Propagation for Modular Attribute Grammars
Authors: Akim Demaille and Renaud Durlin and Nicolas Pierron and Benoît Sigoure
Type: StudentReport
Whereprefix:  
Where: CSI Seminar
Ref: 0801
Place:  
Date: January 2008
Note:  
Lang: english
Keywords: attribute grammar, context-free grammar, disambiguation, C, C++, attribute propagator
Status: submitted

Revision: r1.4 - 13 Jun 2008 - 10:05 - WarrenSeine
Publications > 200801-Seminar-Pierron
Copyright © 1999-2010 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback