[EMAIL PROTECTED] a écrit :
> Jonathan Garnder said:
> 
>> Well, if using something like PLY ( http://www.dabeaz.com/ply/ ) is
>> considered more Pythonic than writing your own parser and lexer...
> 
> Lex is very crude. 

Possibly. Anyway, there are quite a few other parser generators :
http://wiki.python.org/moin/LanguageParsing

(snip)
> 
> But not totally Pythonic. I want an array of Token objects, not a list
> of tuples, for example.

tokens = map(Token, list_of_tuples)

Ok, I guess this can't apply to your current project ?
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to