The stupid question is the question not asked | |
PerlMonks |
need regex to parse c++ functionsby Chief of Chaos (Friar) |
on Nov 27, 2002 at 13:51 UTC ( [id://216083]=perlquestion: print w/replies, xml ) | Need Help?? |
Chief of Chaos has asked for the wisdom of the Perl Monks concerning the following question:
Greetings honoured monks, I'm working on a regex that returns me a list of function names of a c++ file. (Returns a array of strings or a string ) But there are so many possibilities of function definitions. E.g. : are ok : are not ok : etc All functions (that are ok) should be in the array. To simplify it, I have set the function parameters to void. Does there a module exists for parsing c++ source files? Is there a better way to get the function names without a regex? my code so far : I hope the great spirit of monk wisdom can help a unworthy little apprentice like me.
Back to
Seekers of Perl Wisdom
|
|