Skip to content

%grmtools section lacking warnings_are_errors flag #617

Description

@ratmice

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions