Page MenuHomePhabricator

Create a formal specification for MediaWiki Quiz format
Open, MediumPublic


MediaWiki-extensions-Quiz uses an text format that is not formally documented.

There are help pages like:

And there is the Php code.

To faciliate re-use and interoperability outside of Wikiversity, the text format should have a formal specification in a language like EBNF.

Ideally the standardised description uses a notation that is well established (e.g. EBNF) and can be converted into at least usable Php code, and usable Python code.

This will allow the parser in the Php extension to be replaced with a formally verified generated parser , which the Php extension can then use to easily utilise the format.

And then any other parsers will be using the same algorithm, or will be tested against the same standard (rather than 'the Php code' being the standard.)