Pedro de Medeiros wrote:
As a matter of fact, I did. Sometime ago. But code was difficult to understand, it wouldn't compile and running bison on the .y file returned lots (maybe 2000?) grammar conflicts.
The latter part of this is surprising. Timwi, can you clarify? I seem to remember that the parser was incomplete, but what of it was there worked fine.
That depends also in what platform this parser need be, and also for what use.
Not really. My point was that it's easy to build a parser for *a lot* of the MediaWiki syntax, and hard to build one for all of it. We need the latter.
If a parser takes only a small fraction of the time, maybe I could also write the php module that uses the parser. :)
You misunderstood me; see above.
I have seen some attemps. But none of them is in C/C++ or even complete.
Timwi's work used standard tools that would eventually produce a C parser, IIRC. Of course none of the parsers in SVN are complete -- if they were, we wouldn't be having this discussion.