On 04/05/11 06:38, Neil Kandalgaonkar wrote:
On 5/2/11 5:28 PM, Tim Starling wrote:
How many wikitext parsers does the world really
need?
That's a tricky question. What MediaWiki calls parsing, the rest of the
world calls
1. Parsing
2. Expansion (i.e. templates, magic)
3. Applying local state, preferences, context (i.e. $n, prefs)
4. Emitting
And phases 2 and 3 depend heavily upon the state of the local wiki at
the time the parse is requested. If you've ever tried to set up a test
wiki that works like Wikipedia or Wikimedia Commons you'll know what I'm
talking about.
I wasn't saying that the current MediaWiki parser is suitable for
reuse, I was saying that it may be possible to develop the MediaWiki
parser into something which is reusable.
-- Tim Starling