arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 0906.1777cs.PLcs.SE
收藏

用类Aesthetic技术创造语篇语言方言

Creating Textual Language Dialects Using Aspect-like Techniques

Andrey Breslav

摘要:

在这里,我们提出了一个工作,旨在有效地创建文本语言方言和支持工具(例如,编译器前端,IDE支持,漂亮的打印机等)。方言是一种语言,它可以用一组(相对较小的)变化来描述另一种语言(母语)。例如,我们可以考虑在DB管理系统中使用的SQL方言。我们建议使用语法的方面来定义语言的不同特征并转换语法。一种方言是通过定义一种修饰母语言的句法体而产生的。这种技术不依赖于任何特定的语言设计,AST结构或解析技术,并为创建扩展或限制语言的方言提供了统一的方法。

英文摘要:

Here we present a work aimed on efficiently creating textual language dialects and supporting tools for them (e.g. compiler front-ends, IDE support, pretty-printers, etc.). A dialect is a language which may be described with a (relatively small) set of changes to some other language (a parent language). For example we can consider SQL dialects used in DB-management systems. We propose to use aspects for grammars to define different features of the anguage and to transform grammars. A dialect is created by defining a syntactical spect which modifies the parent language. This technique is not dependent on any particular language design, AST structure or parsing technology and provides a uniform way for creating dialects, which extend or restrict languages.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑