有人知道解析 doxygen 风格的 C++ 注释字符串的 python 模块吗?我的意思是这样的字符串(简单示例):
/**
* A constructor.
* A more elaborate description of the constructor.
* @param param1 test1
* @param param2 test2
*/
我想提取简短的、详细的描述、参数、返回值等。我目前正在使用字符串方法和正则表达式来执行此操作,但我的解决方案不是很健壮。或者,有人可以推荐一个我可以快速设置的易于使用的 python 解析器库吗?
提前致谢