将特定领域语言真正嵌入C++
Really Embedding Domain-Specific Languages into C++
摘要:
领域特定语言(DSL)既普遍又强大,但仍然难以集成到大型项目中。因此,尽管DSL可以在性能、可靠性和可维护性方面带来明显的优势,但它们的使用往往涉及牺牲其他良好的软件工程实践。在本文中,我们描述了一个扩展的Clang C++编译器,以支持语法插件,我们演示了这种机制如何允许使用DSL内部的C++代码库,而不需要分离的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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。