[antlr-interest] Putting the generated (C++) Parser, Lexer an d Treewalker in their own namespace

Trey Spiva Trey.Spiva at embarcadero.com
Tue Aug 13 10:49:48 PDT 2002


For C++ ther is an option called "namespace".  The documentation says:

"When set, all the C++ code generated is wrapped in the namespace mentioned
here."

Is this what you need.  Sounds like the Java code generation still needs to
implement the option.

> -----Original Message-----
> From: rradh [mailto:rradh at yahoo.com]
> Sent: Tuesday, August 13, 2002 11:34 AM
> To: antlr-interest at yahoogroups.com
> Subject: [antlr-interest] Putting the generated (C++) Parser, Lexer and
> Treewalker in their own namespace
> 
> Hi,
> 
> Apologies if this is a repeat question!
> 
> I want to place the generated Parser, Lexer and Treewalker in the
> tool's namespace.
> 
> Currently I have a perl script that adds the 'namespace' on the
> generated files (after invoking antlr).
> 
> It would be nice if there was some way to provide a keyword to ANTLR
> telling to enclose the generated files in a user-defined namespace.
> 
> If its not in the works yet, I can help the developers on this if
> they need it :)
> 
> Regards
> Rajesh
> 
> 
> 
> 
> 
> 
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list