[antlr-interest] Referencing/Using antlr3 python runtime directlyinstead of via python setup.py install?

Dave Dutcher dave at tridecap.com
Tue Sep 29 05:45:30 PDT 2009


> -----Original Message-----
> From: Andrew Plumb
> Subject: [antlr-interest] Referencing/Using antlr3 python 
> runtime directlyinstead of via python setup.py install?
> 
> Hi Everyone,
> 
> Does anyone have any examples of how to reference the antlr3 
> python runtime code directly from a python script calling an 
> antlr-generated parser?
> 
> It doesn't have to be complex (setting an environment 
> variable will do if there's a way), I'm just looking for 
> something that works so I can exercise my own antlr parser 
> dabblings.  I want to avoid touching system python defaults 
> so I don't disrupt others, run on systems I don't necessarily 
> have sudo/root access to, and be able to quickly test across 
> multiple platforms (Linux, Solaris and Mac OS X).

You don't actually have to run python setup.py install to use the rutime.
You can just take the antlr3 file out of the runtime egg and put it in your
local directory or anywhere on your python path. 

Dave

 



More information about the antlr-interest mailing list