[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Forcing Bison's yacc.c to report more expected tokens on syntax erro
From: |
Akim Demaille |
Subject: |
Re: Forcing Bison's yacc.c to report more expected tokens on syntax error |
Date: |
Wed, 6 Feb 2019 19:43:04 +0100 |
Hi Kevin,
> Le 6 févr. 2019 à 03:01, Kevin Villela <address@hidden> a écrit :
>
> Hi all, I saw that the yacc.c skeleton only supports reporting a maximum or
> 5 expected tokens. The page
> <https://www.gnu.org/software/bison/manual/html_node/LAC.html> on
> Look-Ahead Correction states this is "because of internationalization
> considerations". I was wondering if I would be able to contribute a
> configuration option to increase this number arbitrarily, or even just up
> to a higher number (e.g. 30) ?
The thing is that it's unclear that it actually helps to report all the
possibilities when there are too many.