I've been among those writing parsers (many half-baken ones;-) and IMHO the only viable option, in the long run, is to make an abstract grammar (whatever style) and have parser generators for many languages implement them.
This would also be an improvement over the current parser, which renders
'''bold [[link|bold ''' not bold ''italics]] still italics
as
<b>bold <a href="/mediawiki/index.php?title=Link">bold </b> not bold <i>italics</a> still italics</i>
which is about as broken as it gets, and only tidyhtml saves wikipedia from serving such embarrassments.
Magnus
On 9/28/06, jeremiah johnson naikrovek@gmail.com wrote:
I think this is an awesome idea. Especially since I spent all day writing a parser in Java.
I work at an organization where using PHP is not allowed, so this is my only option. I don't even know PHP well enough to port MediaWiki's parser.
If anyone knows which PHP classes (is 'classes' an appropriate term for PHP?) contain the parsing logic, I can port it, then open source the parser.
If anyone is interested, please let me know. I'm writing a parser for the small amount of markup my organization would use, but I'd be quite happy to port the MediaWiki parser to Java at home.
jeremiah();
On 9/28/06, Gregory Szorc gregory.szorc@gmail.com wrote:
Has it ever been considered to separate the MediaWiki markup parser from the core MediaWiki project? It seems to me that if the parser stood on its own, it would help wiki adoption by allowing others to use the same syntax as the most popular wikis in the world (Wikipedia). As MediaWiki has pledged support for Creole, it seems that eventually the wiki parsing in MediaWiki will have to be converted to accomodate a common interface that works for both MediaWiki and Creole, so why not use this opportunity to free out the core parser?
Gregory Szorc gregory.szorc@case.edu _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l