如何用 python 其他语言制作 optparse

How to make optparse in python other languages

我想在 python 中编写计算圈复杂度 (CC) 程序。

当我在 python 代码中计算 CC 时,我使用编译器(ASTVisitor)模块。

但我不知道其他语言的可用模块,例如C/C++,Java。

请告诉我,我可以使用类似模块的编译器(ASTVisiter)其他语言,

或制作 AST(抽象语法树)的模块。

c/c++ 有 libclang,其中有 python 个绑定。