bwanders / dokuwiki-strata

Strata - a Semi-Structured Data plugin for Dokuwiki
https://www.dokuwiki.org/plugin:strata
17 stars 8 forks source link

Improved parsing/error messages #37

Closed bwanders closed 2 years ago

bwanders commented 7 years ago

The current use of big regular expressions makes it difficult to provide fine-tuned error messages to help out the user.

A new scheme for parsing should be implemented. Either by splitting up the regular expressions to work towards more of a "scanning" approach (i.e., regex is used to tokenize mostly), or by replacing the whole parsing stage with a different kind of parser such as a recursive descent parser.