计算机科学 > 程序设计语言
[提交于 2009年2月16日]
标题:Creating modular and reusable DSL textual syntax definitions with Grammatic/ANTLR
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Andrey Breslav[v1] 2009年2月16日 星期一 07:55:16 UTC