There's more than one way to do things | |
PerlMonks |
Re: regex 2 match C function (parser)by kelan (Deacon) |
on Aug 13, 2003 at 13:50 UTC ( [id://283548]=note: print w/replies, xml ) | Need Help?? |
You're either going to want to slurp the entire file so you can catch when the return type is on a different line, or just write a small parser, or both. I've written small parsers before using the /\G.../gc method explained in perlop and it isn't too difficult. Be careful that you distinguish function definitions and function calls or you could run into trouble. kelan Perl6 Grammar Student
In Section
Seekers of Perl Wisdom
|
|