Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > looking for a tool that parses c/c++ for preprocessor #define andgenerate a kind of dictionary "macroname" "value"

Reply
Thread Tools

looking for a tool that parses c/c++ for preprocessor #define andgenerate a kind of dictionary "macroname" "value"

 
 
Moderator
Guest
Posts: n/a
 
      05-31-2011
Looking for a tool that parses c/c++ for preprocessor #define and
generate a kind of dictionary "macroname" "value"

Any idea?

Thanks

Aron
 
Reply With Quote
 
 
 
 
Rich Webb
Guest
Posts: n/a
 
      05-31-2011
On Tue, 31 May 2011 06:57:35 -0700 (PDT), Moderator <(E-Mail Removed)>
wrote:

>Looking for a tool that parses c/c++ for preprocessor #define and
>generate a kind of dictionary "macroname" "value"
>
>Any idea?


Doxygen? It does rather more than that, of course.

<http://www.stack.nl/~dimitri/doxygen/>

--
Rich Webb Norfolk, VA
 
Reply With Quote
 
 
 
 
Nobody
Guest
Posts: n/a
 
      05-31-2011
On Tue, 31 May 2011 06:57:35 -0700, Moderator wrote:

> Looking for a tool that parses c/c++ for preprocessor #define and
> generate a kind of dictionary "macroname" "value"


gcc -E -dM file.c | sed 's/^#define \([^ ]*\) \(.*\)$/"\1" "\2"/'


 
Reply With Quote
 
Jeff Flinn
Guest
Posts: n/a
 
      05-31-2011
Moderator wrote:
> Looking for a tool that parses c/c++ for preprocessor #define and
> generate a kind of dictionary "macroname" "value"
>
> Any idea?



boost.wave see: http://www.boost.org/doc/libs/1_46_1...ave/index.html

Jeff
 
Reply With Quote
 
Moderator
Guest
Posts: n/a
 
      05-31-2011
On May 31, 5:12*pm, Jeff Flinn <(E-Mail Removed)> wrote:
> Moderator wrote:
> > Looking for a tool that parses c/c++ for preprocessor #define and
> > generate a kind of dictionary "macroname" "value"

>
> > Any idea?

>
> boost.wave see:http://www.boost.org/doc/libs/1_46_1...ave/index.html
>
> Jeff


Thanks to all for the valuable answers!

Aron
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in running a basic code in python 3.3.0 that includes HTML file Satabdi Mukherjee Python 1 04-04-2013 07:48 PM
looking for a tool that parses c/c++ for preprocessor #define andgenerate a kind of dictionary "macroname" "value" Moderator C Programming 4 05-31-2011 04:24 PM
Compiler error occurred when try to use a flexible template expression in preprocessor definesCompiler error occurred when try to use a flexible template expression in preprocessor defines snnn C++ 6 03-14-2005 04:09 PM
preprocessor, token concatenation, no valid preprocessor token Cronus C++ 1 07-14-2004 11:10 PM
What parses the xml/xsl transform in asp.net? System.xml NOT msxml? KathyB ASP .Net 0 06-25-2003 05:03 PM



Advertisments