Tokenize

Harry George harry.g.george at boeing.com
Thu Jul 24 16:29:14 EDT 2003


"Ken Fettig" <kfettig at state.nd.us> writes:

> Does Python have an equivelent to the Java StringTokenizer? If so, what is
> it and how do you implement it?
> Thanks
> Ken Fettig
> kenfettig at btinet.net
> kfettig at state.nd.us
> 
> 
> 

See shlex (in the main distribution) or see a variety of lexer/parser
tools such as Ply, Yapp.py,

shlex is about the level of complexity you want.  See the Library
Reference Manual for instructions.

-- 
harry.g.george at boeing.com
6-6M31 Knowledge Management
Phone: (425) 342-5601




More information about the Python-list mailing list