On 06/02/2008, Chris Howie cdhowie@gmail.com wrote:
On Feb 6, 2008 8:50 AM, Steve Bennett stevagewp@gmail.com wrote:
For Chris, wikitext is context-sensitive so a context-free grammar is not possible, but a useable ANTLR grammar is quite feasible. I'm actually getting pretty close. I'm just doing battle with tables atm, which are difficult because the syntax is pretty ambiguous, and because table cells can contain *anything* - including other tables.
When you get it done let me know. There is a C# generator for ANTLR grammars, so I could integrate this with WikiBench for, e.g., realtime previews during editing (minus templates).
Yeah, WYSIWYG is the big winning application of such a thing. The mediawiki.org pages set out where we're at with this beast, and there's the wikitext-l list where this particular piece of vapourware is being condensed - you have an application, so joining the list (and reading the archive) would be a good and useful thing. Same for anyone else who has a use for good third-party wikitext parsers - MediaWiki wikitext appears at present mostly to be made of edge cases ...
- d.