We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
%whitespace
While testing the https://meimporta.eu/lalr-playground/ I introduced a grammar for https://github.com/jplevyak/dparser but forgot to add a %whitespace directive but lalr didn't flagged that as an error.
lalr
Maybe this can fix it:
int GrammarParser::parse( const char* start, const char* finish, ErrorPolicy* error_policy, Grammar* grammar ) { LALR_ASSERT( start ); LALR_ASSERT( finish ); LALR_ASSERT( grammar ); error_policy_ = error_policy; grammar_ = grammar; position_ = start; end_ = finish; line_ = 1; errors_ = 0; if ( !match_grammar() ) { error( 1, LALR_ERROR_SYNTAX, "parsing grammar failed" ); } if( grammar_->whitespace_tokens().empty() ) { error( 1, PARSER_ERROR_UNDEFINED_SYMBOL, "no '%%whitespace' directive defined" ); } return errors_; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
While testing the https://meimporta.eu/lalr-playground/ I introduced a grammar for https://github.com/jplevyak/dparser but forgot to add a
%whitespace
directive butlalr
didn't flagged that as an error.Maybe this can fix it:
The text was updated successfully, but these errors were encountered: