论文标题
真的将特定域的语言嵌入C ++
Really Embedding Domain-Specific Languages into C++
论文作者
论文摘要
特定于领域的语言(DSL)既普遍又强大,但仍然很难集成到大型项目中。结果,尽管DSL可以在性能,可靠性和可维护性上带来明显的优势,但它们的使用通常涉及交易其他良好的软件工程实践。在本文中,我们描述了Clang C ++编译器的扩展程序以支持语法插件,并演示了该机制如何允许在C ++代码库中使用DSL,而无需将DSL源代码与周围C ++代码分开。
Domain-specific languages (DSLs) are both pervasive and powerful, but remain difficult to integrate into large projects. As a result, while DSLs can bring distinct advantages in performance, reliability, and maintainability, their use often involves trading off other good software-engineering practices. In this paper, we describe an extension to the Clang C++ compiler to support syntax plugins, and we demonstrate how this mechanism allows making use of DSLs inside of a C++ code base without needing to separate the DSL source code from the surrounding C++ code.