Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Parsing C Functions..

by pc88mxer (Vicar)
on Apr 27, 2008 at 20:02 UTC ( [id://683189]=note: print w/replies, xml ) Need Help??


in reply to Parsing C Functions..

How about just matching open/close brace pairs that are at column 0? Will that work for you? Something like:  m/^\{.*?^\}/ms

Another option is to fully parse the C code. There's a good start at this described here: Converting C to English with Perl

Update: Here's another grammar which might help: Parsing C

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-19 04:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found