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