|Think about Loose Coupling|
regex 2 find C function dependenciesby jai (Sexton)
|on Sep 19, 2003 at 05:14 UTC||Need Help??|
jai has asked for the wisdom of the Perl Monks concerning the following question:
I have to write a perl program that lists out all the functions in a given C source file & prints the functions called by each of them. To match the called functions, I first had the regex
.But this failed to match the following:
So I modified it to
Still, it fails for functions called like this.
Is there any way to reliably parse them ? any help would be greatly appreciated.