Snowball to Python compiler

Terry Reedy tjreedy at udel.edu
Thu Apr 21 23:48:21 EDT 2011


On 4/21/2011 8:25 PM, Paul Rubin wrote:
> Matt Chaput<matt at whoosh.ca>  writes:
>> I'm looking for some code that will take a Snowball program and
>> compile it into a Python script. Or, less ideally, a Snowball
>> interpreter written in Python.
>>
>> (http://snowball.tartarus.org/)
>>
>> Anyone heard of such a thing?
>
> I never saw snowball before, it looks kind of interesting, and it
> looks like it already has a way to compile to C.  If you're using
> it for IR on any scale, you're surely much better off using the C
> routines with a C API wrapper,

If the C routines are in a shared library, you should be able to write 
the interface in Python with ctypes.

> than translating snowball to
> Python, which will be dog slow to interpret.


-- 
Terry Jan Reedy




More information about the Python-list mailing list