-
Notifications
You must be signed in to change notification settings - Fork 38
Description
This is relatively minor and isn't clear to me if this is actually a bug or should just be closed.
The workaround is to just set it in CTParserBuilder, there is no equivalent for nimbleparse though
so the only thing missing is the ability to force nimbleparse to treat warnings as errors.
There isn't exactly a direct RTParserBuilder equivalent of warnings_are_errors method of CTParserBuilder.
There is a question, about whether it is possible that this behavior can be configured by the parser or not. Or whether this is a behavior that e.g. nimbleparse would extract the key from the header and implement on it's own. It appears to me that YaccGrammarError, and YaccGrammarWarning are disjoint in that you couldn't get ASTWithValidityInfo::errors() to return a YaccGrammarError containing a YaccGrammarWarning. This from a library perspective then means the key would not be easily applied to downstream consumers using RTParserBuilder directly.
So maybe this isn't something that should be contained in the %grmtools section?
List of relevant methods/types.