Nir Soffer
2005-06-03 10:15:33 UTC
IMHO one of the weakest points in MoinMoin is how wiki.py parses the
input. Using regular expressions simply doesn't work properly for
nested balanced expressions, and we have already far too many
exceptions which nested expressions work, and which not.
Many exceptions?input. Using regular expressions simply doesn't work properly for
nested balanced expressions, and we have already far too many
exceptions which nested expressions work, and which not.
What do you think of using a completely different paradigm, namely to
do bison-like parsing of the input data to get the appropriate tokens?
May be interesting, the current parser is a big mess, the currentdo bison-like parsing of the input data to get the appropriate tokens?
parser state is "fix here, break there".
BTW, is any other part of MoinMoin dependent on wiki.py? I mean, can
I simply replace the HTML generating engine with a different one,
similar to the `colorizing' parsers for other languages like C or C++?
Where can I find the documentation of the affected interface?
wiki.py is a plugin - you can replace it with your parser.I simply replace the HTML generating engine with a different one,
similar to the `colorizing' parsers for other languages like C or C++?
Where can I find the documentation of the affected interface?
Note that many people want to change the wiki syntax, specially the
linking syntax. Maybe it better work first the syntax, and only then
check what it the best way to parse it.
There is already a discussion on new parsers in the wiki, try to search
for it.
Best Regards,
Nir Soffer
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005