Macros for domain-specific languages
Macros for domain-specific languages
复制标题
特定领域语言的宏
DOI:
10.1145/3428297
复制
发表时间:
2020
影响因子:
--
通讯作者:
Felleisen, Matthias
中科院分区:
文献类型:
--
作者:
Ballantyne, Michael;King, Alexis;Felleisen, Matthias
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.
登录
查看更多内容
影响因子:
1.3
作者:
E. V. Wyk;Derek Bodin;Jimin Gao;Lijesh Krishnan
通讯作者:
Lijesh Krishnan
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
DOI:
--
发表时间:
2004
期刊:
影响因子:
--
作者:
P. Meunier;Daniel Silva
通讯作者:
Daniel Silva