Yes, Andreas,
I tried to install it on my local ubuntu, but failed at the installing Antlr and your patch. I will try it again tonight.
Another thing is that I am trying to port your grammar to Javascritp via PegJs. It is just beginning, dozens of rules had been converted; so far I did not meet any difficulty to convert from antlr to peg. But lots of works are needed.
On Thu, Sep 23, 2010 at 3:07 PM, Andreas Jonsson <andreas.jonsson@kreablo.se
wrote:
2010-09-22 20:42, Jan Paul Posma skrev:
How awesome! Is this code already available? Maybe it's a good idea to
write to wikitech-l once you publish the source code, because I think most people don't follow this list. This list has been created to keep away parser discussions from most developers who don't care about that, but a milestone like this should be shared there too.
Yes, the code is available in the repository at
http://svn.wikimedia.org/svnroot/mediawiki/trunk/parsers/libmwparser
Again, very nice, can't wait to be able to install this myself. ;-)
Building and installing it a complex process at the moment, and I'm afraid I haven't documented it very well. But please go ahead and try it, if you like. If you get stuck, just drop me a mail.
Best regards,
Andreas
Regards, Jan Paul
On 22-Sep-2010, at 19:41, Andreas Jonsson wrote:
Hi,
I have set up a site for testing my parser implementation:
http://libmwparser.kreablo.se/index.php/Libmwparsertest
Please go ahead and edit.
I have disabled most of the preprocessing, as it seems very hard to lift out the independent preprocessing from the parser preparation stuff. But it should be easy to write a new one with only the required functionality (which is parser functions, magic words, comment removal, and transclusion).
It would still take a lot of work to make a version that could be substituted in place of the current parser with support for all features. But its a solid proof of concept.
Best regards,
Andreas Jonsson
Wikitext-l mailing list Wikitext-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitext-l
Wikitext-l mailing list Wikitext-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitext-l
Wikitext-l mailing list Wikitext-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitext-l