Paul McGuire wrote: > If your re demands get more complicated, you could take a look at > pyparsing. The code is a bit more verbose, but many find it easier to > compose their expressions using pyparsing's classes, such as Literal, > OneOrMore, Optional, etc., plus a number of built-in helper functions > and expressions, including delimitedList, quotedString, and > cStyleComment. Pyparsing is intended for writing recursive-descent > parsers, but can also be used (and is best learned) with simple > applications such as this one.
As a slightly unrelated pyparsing question, is there a good set of API documentation around for pyparsing? I've looked into it for my mud client, but for now have gone with DParser because I need (desire) custom token generation sometimes. Pyparsing looks easier to internationalize, though. -- http://mail.python.org/mailman/listinfo/python-list