In article <0qec45lho8lkng4n20sb1ad4eguat67...@4ax.com>, Angus Rodgers <twir...@bigfoot.com> wrote: > >Partly as an educational exercise, and partly for its practical >benefit, I'm trying to pick up a programming project from where >I left off in 2001. It implemented in slightly generalised form >the "buffer pair" scheme for lexical analysis described on pp. >88--92 of Aho et al., /Compilers: Principles, Techniques and >Tools/ (1986). (I'm afraid I don't have a page reference for the >2007 second edition. Presumably it's also in Knuth somewhere.) > > [...] > >Does some Python library already provide some functionality like >this? (It's enough to do it with nblocks = 2, as in Aho et al.)
Not AFAIK, but there may well be something in the recipes or PyPI; have you tried searching them? >If not, is this a reasonable thing to try to program in Python? Definitely! It should be lots easier to program this with Python. -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "as long as we like the same operating system, things are cool." --piranha -- http://mail.python.org/mailman/listinfo/python-list