User:Peter17/GSoC-2011: Difference between revisions
((base)) |
((base)) |
||
| Line 1: | Line 1: | ||
== Before May 25th == | |||
After establishing the contact with my mentor, Erik Rose, we decided to complete a comparison, that he had already started, of the different existing parsers. I created [https://github.com/peter17 an account on GitHub] to host [https://github.com/peter17/mediawiki-parser a fork] of [https://github.com/erikrose/mediawiki-parser Erik's mediawiki-parser project]. | |||
We needed between 3 and 4 weeks to put the [https://github.com/peter17/mediawiki-parser/blob/master/README.rst final list] in place, by testing and comparing the parsers, the simplicity of their usage and the understandability of their source code. | |||
We finally decided that PEG parsers were probably the best choice and, among them, I felt that [http://spir.wikidot.com/pijnu Pijnu] was the most pleasant to use. I began to implement some parts of MediaWiki grammar in it as a proof of concept. | |||
However, Pijnu had some limitations that we wanted to correct (Unicode support, comparison in tests, tests failing unexpectedly). So, I contacted Pijnu's developer, Denis "Spir" Derman, and we discussed those questions. | |||
After Spir solved the issue of failing tests (a memoization reset was needed), I added a lot of test cases for my parser and continued to develop it. | |||
== May 25th to June 1st == | |||
I spent a long time working on wikitable parsing. I added simple and semi-complex test cases and had them parsed correctly. | |||
I also added a [https://github.com/peter17/mediawiki-parser/blob/master/TODO.rst TODO file] which gives the current status of the different parts of MediaWiki syntax for my parser. | |||
ErikRose had a look at my commits and corrected a space/tabs indentation problem. We have planned to communicate with each other by audio. | |||
Revision as of 17:36, 3 June 2011
Before May 25th
After establishing the contact with my mentor, Erik Rose, we decided to complete a comparison, that he had already started, of the different existing parsers. I created an account on GitHub to host a fork of Erik's mediawiki-parser project.
We needed between 3 and 4 weeks to put the final list in place, by testing and comparing the parsers, the simplicity of their usage and the understandability of their source code.
We finally decided that PEG parsers were probably the best choice and, among them, I felt that Pijnu was the most pleasant to use. I began to implement some parts of MediaWiki grammar in it as a proof of concept.
However, Pijnu had some limitations that we wanted to correct (Unicode support, comparison in tests, tests failing unexpectedly). So, I contacted Pijnu's developer, Denis "Spir" Derman, and we discussed those questions.
After Spir solved the issue of failing tests (a memoization reset was needed), I added a lot of test cases for my parser and continued to develop it.
May 25th to June 1st
I spent a long time working on wikitable parsing. I added simple and semi-complex test cases and had them parsed correctly.
I also added a TODO file which gives the current status of the different parts of MediaWiki syntax for my parser.
ErikRose had a look at my commits and corrected a space/tabs indentation problem. We have planned to communicate with each other by audio.