[antlr-interest] Putting antlr into a different package?

Brian Smith brian-l-smith at uiowa.edu
Fri Mar 7 12:05:09 PST 2003


Paul,

You need to hack the source if you want ANTLR to live in another 
package. If you simply want to use two versions of ANTLR in the same 
program, you might be able to load each version of ANTLR with different 
classloaders, as long as the code that uses each version is isolated.

- Brian

Paul J. Lucas wrote:
> I've looked through the documentation but see no way to make the generated Java code from antlr use import statements for antlr from a different package.  For conflict reasons on a large project, we need to have it generated something like "import my.antlr.whatever;" rather than the standard "import antlr.whatever;".
> 
> Is there any way to do that with the code out of the box?  Or do I have to hack the source?
> 
> - Paul
> 
> 
>  
> 
> 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