[Moin-user] Re: [Moin-devel] writing a moin parser

Juergen Hermann jh at web.de
Fri Jul 8 02:36:09 EDT 2005


On Wed, 15 Jun 2005 15:20:30 -0500, jacob martinson wrote:

>I'm sure it's simple once you understand it, but looking at wiki.py
>it's pretty easy to get lost on what is actually happening.  This has
>got to be one of the best candidates for being rewritten with the re.X
>option I've ever seen:

a) it was hard to write, so be lucky you only have to read it. ;)

b) look at it EXPANDED (it's formatted for humans in the source and some 
repeated and/or configured parts are inserted on the fly, and even so it's 
ugly), and you'll die a horrible death. Maybe not so horrible like being eaten 
by the Ravenous Bugblatter Beast of Traal, but pretty close.

Ciao, Jürgen






More information about the Moin-user mailing list