This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: new parser: error recovery needs work
Just a couple of thoughts about errors in the new parser...
i'm not sure why, but the errors now feel more like they need carat errors
then before. I think its because they sound more precise, without giving
you the accuracy of where to go with it. Before its like - oh a parse
error - right let me see - but now its 'missing type-id' and it makes me
think, huh, where? (I think i heard something about carat errors being on
the way, just wanting to err suggest that they make it into 3.4)
Second thought, the error messages of the form 'expected type-id' etc ...
are compact and precise. Something in me would like 'waffly friendly' error
messages. On the otherhand I dont think thats such a great idea. However,
(if it already exists forgive me) it would be good if there was really nice
extensive documentation on error messages and what they mean in nice
friendly language :P ... or something at least. A tool which could look up
the documentation just by passing it the text of an error message ... would
be nice too.
Regards,
Gareth