Back to Search Start Over

The Automatic Inversion of Attribute Grammars.

Authors :
Yellin, Daniel M.
Mueckstein, Eva-Maria M.
Source :
IEEE Transactions on Software Engineering. May86, Vol. 12 Issue 5, p590-599. 10p. 15 Diagrams.
Publication Year :
1986

Abstract

Over the last decade there has developed an acute awareness of the need to introduce abstraction and mathematical rigor into the programming process. This increased formality allows for the automatic manipulation of software, increasing productivity, and, even more importantly, the manageability of complex systems. Along these lines, attribute grammars constitute a formal mechanism for specifying translations between languages; from a formal description of the translation a translator can be automatically constructed. In this paper we consider taking this process one step further: given an attribute grammar specifying the translation from language L1 to language L2, we address the question of whether the inverse attribute grammar specifying the inverse translation from L2 to L1 can be automatically generated. We show how to solve this problem for a restricted subset of attribute grammars. This inversion process allows for compatible two-way translators to be generated from a single description. To show the practical feasibility of attribute grammar inversion, we relate our experience in inverting an attribute grammar used as an interface for a formal database accessing language, SQL. The attribute grammar is used to paraphrase SQL database queries in English. [ABSTRACT FROM AUTHOR]

Details

Language :
English
ISSN :
00985589
Volume :
12
Issue :
5
Database :
Academic Search Index
Journal :
IEEE Transactions on Software Engineering
Publication Type :
Academic Journal
Accession number :
14309303