parsing a c project
Eli Bendersky
eliben at gmail.com
Wed Aug 4 12:40:37 EDT 2010
On Wed, Aug 4, 2010 at 14:33, Aitor Garcia <carrierphasejitter at yahoo.com>wrote:
> Hi,
>
> I need to know the memory locations of all variables in a C project
> including
> variables allocated inside structs.
>
Aitor, try the pycparser project (http://code.google.com/p/pycparser/) -
it's a complete ISO C parser in pure Python. It has been used for tasks
similar to this one (parsing of struct/union declarations for various
purposes).
Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100804/f86cce26/attachment-0001.html>
More information about the Python-list
mailing list