Attribute Grammar Inversion and Source-to-source Translation
Book information
Description
With the proliferation of computer languages and dialects, it is important to create tools to aid in the construction of source-to-source translators. By allowing users to make use of software (or data) written for another system, these tools form an important component in the quest for software reusability. After discussing the theoretical and practical issues of attribute grammar inversion, this book demonstrates how the technique can be used to build source-to-source translators. This is done by first identifying a common canonical form in which to represent the various source languages and then writing attribute grammars from each source to the canonical form. By automatically inverting these attribute grammars one obtains translators from the canonical form back to each source language and by composing the appropriate pairs of translators one obtains source-to-source translators. To prove the feasibility of the inversion approach to source-to-source translation, it has been used to generate translators between the programming languages Pascal and C.
Similar books
Pro ASP.NET 2.0 in C# 2005
2005 · PDF
Expert Oracle JDBC Programming
2005 · PDF
PHP Objects, Patterns, and Practice
2008 · PDF
Programming Language Concepts
2012 · PDF
Guide to ILDJIT
2011 · PDF
Accelerated C# 2010
2010 · PDF
PHP for Absolute Beginners
2010 · PDF
Beginning XNA 3.0 Game Programming: From Novice to Professional
2009 · PDF