Fortifying Macros

Journal of Functional Programming(2012)

引用 13|浏览2
暂无评分
摘要
Existing macro systems force programmers to make a choice between clarity of specification and robustness. If they choose clarity, they must forgo validating significant parts of the specification and thus produce low-quality language extensions. If they choose robustness, they must write in a style that mingles the implementation with the specification and therefore obscures the latter. This paper introduces a new language for writing macros. With the new macro system, programmers naturally write robust language extensions using easy-to-understand specifications. The system translates these specifications into validators that detect misuses-including violations of context-sensitive constraints-and automatically synthesize appropriate feedback, eliminating the need for ad hoc validation code.
更多
查看译文
关键词
domain-specific languages,macros
AI 理解论文
溯源树
样例
生成溯源树,研究论文发展脉络
Chat Paper
正在生成论文摘要