On 4/24/06, Ivan Krstic krstic@fas.harvard.edu wrote:
Pedro de Medeiros wrote:
To make this change into a valid summer of code project, I propose to do a wiki parser, for which I have already designed some draft rules in a yacc/bison manner.
Have you looked at the existing parser attempts in SVN (I don't remember if they're all still there)?
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.
Getting the first 90% of a real parser for MediaWiki syntax will take a small fraction of the time required to get a full parser. This makes it easy to create another almost-but-not-quite-finished parser by the end of the summer, and we'd be no better off for it.
That depends also in what platform this parser need be, and also for what use. For instance, a C/C++ parser would be a necessary step to create a php module for wiki parsing.
If a parser takes only a small fraction of the time, maybe I could also write the php module that uses the parser. :)
I strongly recommend investigating the existing parser attempts, and finishing one of them.
I have seen some attemps. But none of them is in C/C++ or even complete.
Who should I talk to? Maybe I can email some of my draft yacc/bison parser to the mentor?
If Arne "Timwi" Heizmann was interested in mentoring someone for SoC, he'd likely be a good person to mentor this project.
Thanks.
Cheers, -- Pedro de Medeiros - Computer Science - University of BrasÃlia Email: pedro.medeiros@gmail.com - Home Page: http://www.nonseq.net Linux User No.: 234250 - ICQ: 2878740 - Jabber: medeiros@jabber.org