我想在我的 C++ 源代码中创建我自己的自定义注释(就像 Java 样式注释)标签。由于标准 C++ 语法不允许注释,我想根据自己的需要修改/增强编译器。
但是 Visual Studio 是否会公开其编译器内部结构供用户修改(例如,其词法分析器的输出、抽象语法树等)?如果没有,是否有任何第三方工具可用于解析 C++ 语法并允许我根据自己的注释发出自己的自定义 C++ 源代码?
最佳答案
Does Visual Studio expose its compiler internals for users to modify (e.g. output of its lexer, abstract syntax tree, etc.)?
没有
Are there any third party tools for parsing C++ syntax and allow me to emit my own customized C++ source base on my own annotation?
关于c++ - 向 C++ 源代码添加注释语法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4458047/