Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.python

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-11-2009, 06:13 PM
Chris Seberino
Guest
 
Posts: n/a
Default Where find regexs needed to build lexical analyzer for Python sourcecode?

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
Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 09-12-2009, 04:41 AM
Hao Lian
Guest
 
Posts: n/a
Default Re: Where find regexs needed to build lexical analyzer for Pythonsource code?

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 page w/ a
> list somewhere.)
>
> cs



The tokenize library! bum bum bum

http://svn.python.org/view/python/trunk/Lib/tokenize.py

Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 01:06 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.