Several formalisms for language syntax specification exist in literature. In this paper, we prove that longstanding syntactical transformations between context-free grammars and algebraic signatures give rise to adjoint equivalences that preserve the abstract syntax of the generated terms. The main result is a categorical equivalence between the categories of algebras (i.e., all the possible semantics) over the objects in these formalisms up to the provided syntactical transformation, namely that all these frameworks are essentially the same from a semantic perspective. Copyright © 2019 for this paper by its authors.
On the semantic equivalence of language syntax formalisms
Samuele Buro;Isabella Mastroeni
2019-01-01
Abstract
Several formalisms for language syntax specification exist in literature. In this paper, we prove that longstanding syntactical transformations between context-free grammars and algebraic signatures give rise to adjoint equivalences that preserve the abstract syntax of the generated terms. The main result is a categorical equivalence between the categories of algebras (i.e., all the possible semantics) over the objects in these formalisms up to the provided syntactical transformation, namely that all these frameworks are essentially the same from a semantic perspective. Copyright © 2019 for this paper by its authors.File in questo prodotto:
Non ci sono file associati a questo prodotto.
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.