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.
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.