Newbie design problem
Bruno Desthuilliers
bruno.42.desthuilliers at wtf.websiteburo.oops.com
Fri Dec 14 11:27:21 EST 2007
MartinRinehart at gmail.com 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 ?
More information about the Python-list
mailing list