> Welcome to pyparsing! The simplest way to implement a markup processor in > pyparsing is to define the grammar of the markup, attach a parse action to > each markup type to convert the original markup to the actual results, and > then use transformString to run through the input and do the conversion. > This discussion topic has some examples: > http://pyparsing.wikispaces.com/message/view/home/31853.
Thanks for the pointers - I had a look through the examples on the pyparsing website, but none seemed to show a simple example of this kind of thing. The discussion topic you noted above is exactly the sort of thing I was after! Cheers, -- http://mail.python.org/mailman/listinfo/python-list