Topy news - and a request for Python pretty-printing
Ira D. Baxter
idbaxter at semdesigns.com
Sun Apr 14 22:13:44 EDT 2002
"François Pinard" <pinard at iro.umontreal.ca> wrote in message
news:mailman.1018828351.9865.python-list at python.org...
> > > Would someone happens to know if there is a pretty-printer for Python
> > > source _lines_, where I would find some inspiration maybe?
>
> Of course, I've been interested in the `pprint' module, at least
> for structures, but not enough to dive and extend it to statements and
> expressions. The main point is that `pprint' works on in-memory
structures,
> while I need to beautify surface, textual Python
Our DMS Software Reengineering Toolkit can easily build prettyprinters
for arbitrary langauges; we've done it for many standard ones.
See http://www.semdesigns.com/Products/Formatters/index.html
Not Python yet, but all DMS really needs is a good grammar definition.
(Anybody have a Python lexer/grammar definition?)
--
Ira D. Baxter, Ph.D. CTO Semantic Designs, Inc.
http://www.semdesigns.com
More information about the Python-list
mailing list