[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] lalr1.cc: don't discard non-existent lookahead on syntax err
From: |
Akim Demaille |
Subject: |
Re: [PATCH] lalr1.cc: don't discard non-existent lookahead on syntax error. |
Date: |
Wed, 30 Dec 2009 15:48:46 +0100 |
Le 19 déc. 2009 à 06:18, Joel E. Denny a écrit :
> I pushed this to master. The bug does not exist on branch-2.5. The test
> case makes this bug look pretty obscure, and maybe that's right, but I
> really didn't spend much time searching for a simpler test case.
Looks good to me.
> +void
> +yy::parser::error (const location_type &, const std::string &m)
> +{
> + std::cerr << m << std::endl;
> +}
We should provide some %provide-me-with-a-sane-stderr-yyerror-function, many
things would be simpler, in particular in our test suite :)