Macros for domain-specific languages

Macros for domain-specific languages
复制标题

特定领域语言的宏

DOI:
10.1145/3428297
复制
发表时间:
2020
影响因子:
--
通讯作者:
Felleisen, Matthias
Felleisen, Matthias
中科院分区:
--
文献类型:
--
作者:
Ballantyne, Michael;King, Alexis;Felleisen, Matthias

文献摘要

参考文献

被引文献

相似文献

宏提供了一种强大的语言扩展方法。它们已被证明在通用和特定于领域的编程上下文中都很有用。提出了一种基于宏可扩展宿主语言实现宏可扩展dsl的体系结构。这些dsl的宏展开器继承了宿主的语法系统、健康展开等。它们将可扩展DSL语法转换为DSL核心语言。这种安排有几个重要的后果。当各种dsl的扩展器共享这些继承的组件时,集成它们的语法和宿主语言就变得很简单了。此外,DSL编译器可以围绕固定的核心语言设计,即使是可扩展的DSL。最后,宏使程序员能够自己安全地开发dsl,并根据自己的需要定制它们。
Macros provide a powerful means of extending languages. They have proven useful in both general-purpose and domain-specific programming contexts. This paper presents an architecture for implementing macro-extensible DSLs on top of macro-extensible host languages. The macro expanders of these DSLs inherit the syntax system, hygienic expansion, and more from the host. They transform the extensible DSL syntax into a DSL core language. This arrangement has several important consequences. It becomes straightforward to integrate the syntax of various DSLs and the host language when their expanders share these inherited components. Also, a DSL compiler may be designed around a fixed core language, even for an extensible DSL. Finally, macros empower programmers to safely grow DSLs on their own and tailor them to their needs.
银牌:可扩展的属性语法系统
DOI: --
发表时间: 2008
影响因子: 1.3
作者:
E. V. Wyk;Derek Bodin;Jimin Gao;Lijesh Krishnan
通讯作者: Lijesh Krishnan
TEX 和 METAFONT:排版的新方向
DOI: --
发表时间: 1979
期刊:
影响因子: --
作者:
D. Knuth
通讯作者: D. Knuth
一种基于范围图的静态语义分析约束语言
DOI: --
发表时间: 2015
期刊: ACM SIGPLAN Workshop on Partial Evaluation and Program Manipulation
影响因子: --
作者:
H. V. Antwerpen;P. Néron;A. Tolmach;E. Visser;Guido Wachsmuth
通讯作者: Guido Wachsmuth
可扩展语言中的可扩展模式匹配
DOI: --
发表时间: 2011
期刊: arXiv.org
影响因子: --
作者:
Sam Tobin
通讯作者: Sam Tobin
从Python到PLT方案
DOI: --
发表时间: 2004
期刊:
影响因子: --
作者:
P. Meunier;Daniel Silva
通讯作者: Daniel Silva