You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to generate custom error messages from a parser. For example with a function like BaseParser.parseError(String message) which causes a parse error with the given custom error message.
The text was updated successfully, but these errors were encountered:
The (internal) current API however causes two problems:
error messages are either collected (ReportingParseRunner, others) or not at all (BasicParseRunner);
the Rule interface leaves no possibility to insert a custom error message; in fact, there is no "errorMessage" field in AbstractMatcher.
I'll have to collect more knowledge on the API to be able to figure out how to collect user error messages, and also the interface to do it, since it's quite important. I thought about something like this:
It should be possible to generate custom error messages from a parser. For example with a function like BaseParser.parseError(String message) which causes a parse error with the given custom error message.
The text was updated successfully, but these errors were encountered: