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

Andrew Plumb andrew at plumb.org
Tue Sep 29 06:08:47 PDT 2009


Hi Dave,

Excellent!  Just the sort of thing I was looking for.

The approach I'll probably take then is to download runtime, unpack,  
and 'ln -s' to the runtime egg file.

Thanks!

Andrew.

On 29-Sep-09, at 8:45 AM, Dave Dutcher wrote:

>> -----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
>
>
>

--

"The future is already here.  It's just not very evenly distributed"  
-- William Gibson





More information about the antlr-interest mailing list