Do you have a question? Post it now! No Registration Necessary. Now with pictures!
March 14, 2005, 5:06 am
rate this thread
I wanted to parse a C program for function defintions. I checked on
usage of C::Scan perl module, but it does not support old C style
function defintions - something like this..
Is there anyway i can parse this to find the defintion. I also tried to
right a regex for this. It does not work in all the cases as C has
very flexible sytax. I can write same func() in different way
float c; char *d;
I could not write a single regex to find a old C style function
defintion. Could anybody give some suggestions to move me in right
direction or a generic regex to do the job.
- » FAQ 8.31 Can I use perl to run a telnet or ftp session?
- — Previous thread in » PERL Discussions