Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: regex 2 match C function (parser)

by kelan (Deacon)
on Aug 13, 2003 at 13:50 UTC ( #283548=note: print w/replies, xml ) Need Help??


in reply to regex 2 match C function

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://283548]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2022-12-07 16:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?