Python lex settings

Robert Kern robert.kern at gmail.com
Thu Dec 18 18:16:19 EST 2008


Sergey Shepelev wrote:
> Hello.
> 
> I'm trying to make almost-Python source to Erlang source translation
> tool.
> 
> Are there ready ply.lex settings for parsing python source?

Yes! Andrew Dalke has implemented a PLY grammar for Python for experimenting 
with almost-Python languages.

   http://www.dalkescientific.com/Python/python4ply.html

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list