Basic tokenizer

Paul McGuire ptmcg at austin.rr._bogus_.com
Thu Sep 2 09:02:09 EDT 2004


"Andrea Griffini" <agriff at tin.it> wrote in message
news:dr1ej05htuepi5hr766g0nf6ho1jpe31te at 4ax.com...
> On Thu, 2 Sep 2004 08:24:19 +0200, "Miki Tebeka"
> <miki.tebeka at zoran.com> wrote:
>
> >There are several parsing/lexing packages for Python. My favorite is PLY
> >(http://systems.cs.uchicago.edu/ply/).
>
> I gave it a very quick look and I've to say that I was
> impressed... but it wasn't a good impression.
>

I'd be interested in your feedback on this pyparsing example:
http://www.geocities.com/ptmcg/python/fourFn.py.txt

(The "fourFn.py" title is a legacy - this now does 5-function arithmetic
plus trig functions.)

-- Paul





More information about the Python-list mailing list