parsers / lexers usable from Python and Java (and C++/C)?

Mike Rovner mike at nospam.com
Wed Jun 25 19:40:40 EDT 2003


John J. Lee wrote:
> "Mike Rovner" <mike at nospam.com> writes:
>
>> John J. Lee wrote:
>>> Are there any parser / lexer generators useable from both CPython
>>> and Java?
>>
>> PLY (http://systems.cs.uchicago.edu/ply/) implemented entirely in
>> Python, so it might be possible to use it from both implementations
>> of Python.
>
> No, I really did mean CPython and Java, not CPython and Jython.

Your goal is a little vague for me. Jython IS java.

> ... wrapping C++ (even generated C++) in an
> automated way without pain seems unlikely.

Take a look at boost.python pyste.

Mike








More information about the Python-list mailing list