DWQA QuestionsCategory: ProgramPython parses C++ text to get a list of function names and variable names
willzhang asked 3 months ago

How can Python parse a CPP source file to get function name, class name, variable name list?

Theo replied 3 months ago

Don’t write the parser by yourself. You can use libclang with Python binding.

1 Answers
inapt answered 3 months ago