Tahr: The Generative Attribute Grammar Framework
Matteo Ciccaglione, Pierciro Caliandro, Alessandro Pellegrini

TL;DR
Tahr is a framework that generates software tools from attribute grammar specifications, enabling text manipulation, translation between languages, and handling ambiguity in grammars, demonstrated through program translation tasks.
Contribution
It introduces a novel framework that automates the creation of software artefacts from attribute grammars, supporting translation and ambiguity management.
Findings
Successfully translated MIPS to x86 architectures.
Demonstrated effective handling of ambiguous grammars.
Provided a flexible platform for grammar-based text processing.
Abstract
In this article, we present Tahr, a framework that allows taking attribute grammar specifications and generating a set of software artefacts that can be used programmatically to operate on text compliant with the grammars. Tahr can be used as an algorithmic workbench to test different manipulations of attribute grammars and support translation between different languages out of the box. We describe the framework's organisation, how the user can specify an attribute grammar, and the generated software artefacts. We also discuss how Tahr deals with ambiguous grammar specifications, and how this ambiguity can be effectively exploited when using attribute grammars for text generation. We test the correctness of Tahr by showing the practical possibility of translating MIPS programs into their corresponding equivalents for x86 architectures and a custom virtual machine.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Model-Driven Software Engineering Techniques · Advanced Software Engineering Methodologies
