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.
2019
Algebraic signatures, Context-free grammars, Equivalence, Syntax specification
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.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11562/1010951
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 2
  • ???jsp.display-item.citation.isi??? 0
social impact