Mediawiki manages by having defined "whatever our code does is how it is", and when they needed a second parser for their new WYSIWG editor (because the one in the main Mediawiki code base isn't really usable for other purposes) it added a lot of extra effort and pain. So no, it's not literally "impossible", but a large hurdle to working with it. When I had to deal with mediawiki markup I built all kinds of really ugly tricks that fed markup snippets into a mediawiki instance, parsed the HTML, adjusted the snippets based on that, repeat...
Re:Wikipedia's in Trouble (2019)
by dredmorbius on Friday December 04, 2020 @01:25PM
(#25305837)
POSIWID meet POMLIWIR
https://en.wikipedia.org/wiki/The_purpose_of_a_system_is_wha...
What's POMLIWIR?
Re:Wikipedia's in Trouble (2019)
by dredmorbius on Friday December 04, 2020 @03:36PM
(#25307532)
The purpose of a markup language is what it renders.
Re:Wikipedia's in Trouble (2019)
by ChrisLomont on Friday December 04, 2020 @01:14PM
(#25305711)
You can have unparseable structures that are built upon using special, one time hacks for various cases and things you want out.
"Parsing ... is the process of analyzing a string of symbols ... conforming to a formal grammar." [1]
Wikipedia content is most definitely not a formal grammar in any usable meaning of the terms. This is why it's a nightmare to work with, and why it's not parseable using the correct meaning of parseable.
If there's no grammar for the content that it accepts, I would consider this to be a failing, not fatal but certainly a good point being made.
The problem isn't a lack of grammar, the problem is not having a grammar factored out of one specific codebase which implements the grammar, such that you can't be sure the existing code is doing the right thing except from the trivial standpoint of "this code is defined to be correct" which doesn't provide much of a basis for discussion.
It's imparsable in a similar way to TeX and Perl: There is a program that can process it, good luck creating another.
There are two official parsers (original mw, and parsoid, with parsoid being much more of a "real" parser), so people did create another.
not a bad example nevertheless, but as we are talking about grammar
I stopped reading the article early on.