On Mon, May 24, 2004 at 10:30:50PM -0500, Delirium wrote:
I like the WikiRover, but something IMO it needs is a
formal parser for
wikitext. I haven't looked at MediaWiki 1.3, but last time I looked at
the parser (1.1 maybe?) it wasn't actually a parser, but a bunch of
regular expressions applied to the flat Wiki file, with some hacks like
replacing math sections with a unique text string to avoid them getting
clobbered.
You should perhaps have a look at 1.3 first. Parts of the Parser are
already a real parser, reading the wikitext in one pass, character by
character. See Tokenizer.php and its use in Parser.php. This work is
not yet completed, so the regexes still exist for some parts of the markup.
Regards,
JeLuF