Parsing text in python

Alex Martelli aleaxit at yahoo.com
Mon Dec 11 05:03:12 EST 2000


"Arturo Pérez Mulas" <arturo_perez at wanadoo.es> wrote in message
news:tYIY5.47$17.2755 at m2newsread.uni2.es...
Hello,

I was wondering if there is a parsing tool for python similar to yacc/lex. I
have only come across Plex, but
seems very limited in comparison with yacc (lacks iterations).


Berkeley YACC, at least, can generate Python (as well as other
languages).  http://sourceforge.net/projects/byacc/.

Also see
http://www.foretec.com/python/workshops/1998-11/proceedings/papers/aycock-li
ttle/aycock-little.html,
which also includes pointers to other tools/approaches; and
kwParsing, at http://www.pythonpros.com/arw/kwParsing/kwParsing.html
(aka kjParsing it seems).  I'm sure there are many others yet...


Alex







More information about the Python-list mailing list