[prev in list] [next in list] [prev in thread] [next in thread]
List: antlr-interest
Subject: [antlr-interest] C++ namespace/documentation
From: ric.klaren () gmail ! com (Ric Klaren)
Date: 2006-02-27 8:52:47
Message-ID: bc607a4e0602270852s25781b37h80f4a75485458f64 () mail ! gmail ! com
[Download RAW message or body]
Hi,
On 2/27/06, Dejan Jovanovi? <dejan.jovanovic@gmail.com> wrote:
> I am using antlr 2.7.6 in C++ mode.
>
> Is it possible to get rid of the ANTLR_BEGIN_NAMESPACE(parser) macros in
> the generated sources and get the namespace declarations directly?
Currently not, for antlr 3 this may be possible. (but antlr3 is still
not for primetime) Well for antlr2 you might change the
CppCodegenerator.java and rebuild (should be straightforward).
> I need this because I am generating documentation from the sources using
> doxygen, and it doesn't recognise the namespaces defined in this way.
You can fix this according by telling doxygen to preprocess them:
http://www.stack.nl/~dimitri/doxygen/preprocessing.html
> The eclipse CDT also doesn't handle these macros which results in wrong
> error annotations in the source.
Don't know if there's a way to work around it for eclipse.
Cheers,
Ric
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic