Does anyone know of a parser that can take Wiki formatted text as input and produce a tree of entities, in the same way that an XML parser produces an entity tree? To clarify, I'm looking for something that would take text like:
-Intro-
Textual stuff in ''italics''
--Subhead--
Yet more text
and produce a tree rooted at Intro with three child nodes one of which (Subhead) itself has a child. I'm looking for something that can understand the "simple" wiki format described at http://meta.wikimedia.org/wiki/Help:Wikitext.
I'm aware of several lexers for Wiki text, but no tree parsers. I'm looking for something Open source and written in C or C++.