Re: Where find regexs needed to build lexical analyzer for Python source code?

2009-09-11 Thread Hao Lian
Chris Seberino writes with great flourish: > > I'd like to build a lexer aka lexical analyzer aka tokenizer for > Python source code as a learning exercise. > > Where can I find the regexs that define the tokens of Python source? > (I am aware of tokenizer.py but I was hoping there was a web pag

Where find regexs needed to build lexical analyzer for Python source code?

2009-09-11 Thread Chris Seberino
I'd like to build a lexer aka lexical analyzer aka tokenizer for Python source code as a learning exercise. Where can I find the regexs that define the tokens of Python source? (I am aware of tokenizer.py but I was hoping there was a web page w/ a list somewhere.) cs -- http://mail.python.org/ma