[EMAIL PROTECTED] wrote:
Quoting Ismael Garrido <[EMAIL PROTECTED]>:


(Newbie looking scared) That's kind of hard for me... Parsing it myself
is too complex for me. Also, I hoped Python's math would do the job for
me, so I wouldn't have to make what's already done in Python.


Writing  (and understanding) grammar is probably easier than you think --- once
you get over the syntax.  And they are fantastically useful things for doing any
sort of parsing.  But no matter..

If you are interested in learning about parsing, I suggest looking at pyparsing - it is IMO the easiest of the Python parsing frameworks. It has an example that implements a four-function calculator so that would get you off in the right direction.


http://pyparsing.sourceforge.net/

Kent
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to