DocumentCode :
1298204
Title :
The automatic inversion of attribute grammars
Author :
Yellin, Daniel M. ; Mueckstein, Eva-maria M.
Author_Institution :
Dept. of Comput. Sci., Columbia Univ., New York, NY, USA
Issue :
5
fYear :
1986
fDate :
5/1/1986 12:00:00 AM
Firstpage :
590
Lastpage :
599
Abstract :
Attribute grammars constitute a formal mechanism for specifying translations between languages; from a formal description of the translation, a translator can be automatically constructed. This process is taken one step further; given an attribute grammar specifying the translation from language L1 to language L2, the question of whether the inverse attribute grammar specifying the inverse translation from L2 to L1 can be automatically generated is addressed. It is shown how to solve this problem for a restricted subset of attribute grammars. This inversion process allows compatible two-way translators to be generated from a single description. To show the practical feasibility of attribute grammar inversion, experience in inverting an attribute grammar used as an interface for a formal database accessing language, SQL, is related. The attributed grammar is used to paraphrase SQL database queries in English.
Keywords :
context-free grammars; database theory; program interpreters; query languages; SQL; attribute grammars; automatic inversion; database queries; formal database accessing language; formal description; inverse translation; specifying translations; Context; Databases; Grammar; Production; Program processors; Semantics; Automatic software generation; bidirectional translators; formal specifications; inversion of attribute grammars; natural language interfaces to databases;
fLanguage :
English
Journal_Title :
Software Engineering, IEEE Transactions on
Publisher :
ieee
ISSN :
0098-5589
Type :
jour
DOI :
10.1109/TSE.1986.6312955
Filename :
6312955
Link To Document :
بازگشت