arXiv · 2512.01872
Tahr: The Generative Attribute Grammar Framework
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.
Explore related subjects
Keep this discovery
Matteo Ciccaglione, Pierciro Caliandro, Alessandro Pellegrini. 2025-12-01. Tahr: The Generative Attribute Grammar Framework. https://arxiv.org/abs/2512.01872
Cite the original work for its findings. Save a collection to share your selection of sources.