Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Re: Try another tack...

by isotope (Deacon)
on Mar 15, 2002 at 17:20 UTC ( [id://152027]=note: print w/replies, xml ) Need Help??


in reply to Re: Try another tack...
in thread Maintaining horrible C with Parse::RecDescent

That type is used for only 7 of the tables. There are many others.

--isotope
http://www.skylab.org/~isotope/

Replies are listed 'Best First'.
Re: Re: Re: Try another tack...
by RMGir (Prior) on Mar 15, 2002 at 17:41 UTC
    Hmmm... If you do
    perl -ne'print if /^[A-Z_]+ [a-z_0-9]+ = {/' *.c
    does that catch all of the array declarations?

    Does it catch anything else?

    If that works, you're home free (almost) :). At least as far as marking the array starts goes...

    Let's back up a bit, again. What were you thinking of doing with the tables if you can find them? Extract the data to some more maintainable format and have scripts to go back and forth? Just format them in place so they're easier to read/edit?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found