Object Grammars: Compositional & Bidirectional Mapping Between Text and Graphs

Abstract : Object Grammars define mappings between text and object graphs. Parsing recognizes syntactic features and creates the corresponding object structure. In the reverse direction, formatting recognizes object graph features and generates an appropriate textual presentation. The key to Object Grammars is the expressive power of the mapping, which decouples the syntactic structure from the graph structure. To handle graphs, Object Grammars support declarative annotations for resolving textual names that refer to arbitrary objects in the graph structure. Predicates on the semantic structure provide additional control over the mapping. Furthermore, Object Grammars are compositional so that languages may be defined in a modular fashion. We have implemented our approach to Object Grammars as one of the foundations of the Ensō system and illustrate the utility of our approach by showing how it enables definition and composition of domain-specific languages (DSLs).
Type de document :
Communication dans un congrès
Krzysztof Czarnecki and Görel Hedin. Software Language Engineering, Sep 2012, Dresden, Germany. 2012
Liste complète des métadonnées

https://hal.inria.fr/hal-00758627
Contributeur : Jurgen Vinju <>
Soumis le : jeudi 29 novembre 2012 - 09:34:42
Dernière modification le : mercredi 29 novembre 2017 - 15:10:47

Identifiants

  • HAL Id : hal-00758627, version 1

Collections

Citation

Tijs van Der Storm, William Cook, Alex Loh. Object Grammars: Compositional & Bidirectional Mapping Between Text and Graphs. Krzysztof Czarnecki and Görel Hedin. Software Language Engineering, Sep 2012, Dresden, Germany. 2012. 〈hal-00758627〉

Partager

Métriques

Consultations de la notice

148