Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #5905 > unrolled thread

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

Started byModerator <zegaucho@gmail.com>
First post2011-05-31 06:57 -0700
Last post2011-05-31 09:24 -0700
Articles 5 — 4 participants

Back to article view | Back to comp.lang.c++


Contents

  looking for a tool that parses c/c++ for preprocessor #define and generate a kind of dictionary "macroname" "value" Moderator <zegaucho@gmail.com> - 2011-05-31 06:57 -0700
    Re: looking for a tool that parses c/c++ for preprocessor #define and generate a kind of dictionary "macroname" "value" Rich Webb <bbew.ar@mapson.nozirev.ten> - 2011-05-31 10:41 -0400
    Re: looking for a tool that parses c/c++ for preprocessor #define and generate a kind of dictionary "macroname" "value" Nobody <nobody@nowhere.com> - 2011-05-31 15:52 +0100
    Re: looking for a tool that parses c/c++ for preprocessor #define and generate a kind of dictionary "macroname" "value" Jeff Flinn <TriumphSprint2000@hotmail.com> - 2011-05-31 11:12 -0400
      Re: looking for a tool that parses c/c++ for preprocessor #define and generate a kind of dictionary "macroname" "value" Moderator <zegaucho@gmail.com> - 2011-05-31 09:24 -0700

#5905 — looking for a tool that parses c/c++ for preprocessor #define and generate a kind of dictionary "macroname" "value"

FromModerator <zegaucho@gmail.com>
Date2011-05-31 06:57 -0700
Subjectlooking for a tool that parses c/c++ for preprocessor #define and generate a kind of dictionary "macroname" "value"
Message-ID<bf3af5eb-ed30-4039-b86b-c5039d0b866c@u26g2000vby.googlegroups.com>
Looking for a tool that parses c/c++ for preprocessor #define and
generate a kind of dictionary "macroname" "value"

Any idea?

Thanks

Aron

[toc] | [next] | [standalone]


#5908

FromRich Webb <bbew.ar@mapson.nozirev.ten>
Date2011-05-31 10:41 -0400
Message-ID<hdv9u6lj3nfe689n6un3hp5372agm0h76j@4ax.com>
In reply to#5905
On Tue, 31 May 2011 06:57:35 -0700 (PDT), Moderator <zegaucho@gmail.com>
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

[toc] | [prev] | [next] | [standalone]


#5909

FromNobody <nobody@nowhere.com>
Date2011-05-31 15:52 +0100
Message-ID<pan.2011.05.31.14.52.01.984000@nowhere.com>
In reply to#5905
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"/'

[toc] | [prev] | [next] | [standalone]


#5911

FromJeff Flinn <TriumphSprint2000@hotmail.com>
Date2011-05-31 11:12 -0400
Message-ID<is30gs$6k0$1@dont-email.me>
In reply to#5905
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/libs/wave/index.html

Jeff

[toc] | [prev] | [next] | [standalone]


#5913

FromModerator <zegaucho@gmail.com>
Date2011-05-31 09:24 -0700
Message-ID<28b4fb9f-d807-4e36-b163-a15af42e596b@y19g2000yqk.googlegroups.com>
In reply to#5911
On May 31, 5:12 pm, Jeff Flinn <TriumphSprint2...@hotmail.com> 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/libs/wave/index.html
>
> Jeff

Thanks to all for the valuable answers!

Aron

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.c++


csiph-web