Creating modular and reusable DSL textual syntax definitions with Grammatic/ANTLR

arXiv:0902.2621 First posted 2009-02-16 v1 Submitted to PSI'09
Cite this paper ×
BibTeX
@misc{breslav2009creating,
  title = {Creating modular and reusable DSL textual syntax definitions with Grammatic/ANTLR},
  author = {Andrey Breslav},
  year = {2009},
  eprint = {0902.2621},
  archivePrefix = {arXiv},
  primaryClass = {cs.PL},
  url = {https://arxiv.org/abs/0902.2621}
}
APA 7
Breslav, A. (2009). Creating modular and reusable DSL textual syntax definitions with Grammatic/ANTLR [Preprint]. arXiv. https://doi.org/10.48550/arXiv.0902.2621
GB/T 7714
BRESLAV A. Creating modular and reusable DSL textual syntax definitions with Grammatic/ANTLR[EB/OL]. (2009-02-16)[2026-11-30]. https://arxiv.org/abs/0902.2621.

Abstract

In this paper we present Grammatic - a tool for textual syntax definition. Grammatic serves as a front-end for parser generators (and other tools) and brings modularity and reuse to their development artifacts. It adapts techniques for separation of concerns from Apsect-Oriented Programming to grammars and uses templates for grammar reuse. We illustrate usage of Grammatic by describing a case study: bringing separation of concerns to ANTLR parser generator, which is achieved without a common time- and memory-consuming technique of building an AST to separate semantic actions from a grammar definition.

Post #1 · the paper

Discussion

No comments yet. Start the discussion!