Magnus Manske wrote:
Here it is! The millionth pseudo-parser I wrote for wiki(p|m)edia! :-)
Try it out at
So whatever became of the flex/bison parser, then? Has it been abandoned because nobody can make sense of my code? :-)
Anyway, I've found a bug in your yanrap (Yet Another Not-Really-A-Parser):
Input: * one ** one point one * two
Output: <?xml version='1.0' encoding='UTF-8' ?> <article rendertime='0.0019750595092773 sec'><list type='bullet'><listitem>one<list type='bullet'><listitem>one point one</listitem></list>two</listitem></list></article>
Should have been: <?xml version='1.0' encoding='UTF-8' ?> <article rendertime='0.0019750595092773 sec'><list type='bullet'><listitem>one<list type='bullet'><listitem>one point one</listitem></list></listitem><listitem>two</listitem></list></article>