Guido van Rossum <guido <at> python.org> writes: > > So maybe this is an argument for having some > > kind of simple parsing package in the stdlib, > > for knocking up little specialised languages > > like this. > > Now I'll *really* try to get pgen in. Unfortunately I can't make the > April 17 deadline.
Have a look at reflex.py (in the cheese shop), a very tiny, bare-bones lexer which is intended for just this sort of thing. (Well, it can be used for bigger things too - I've managed to implement a complete hand-written C++ parser on top of it...) -- Talin _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com