[Menhir-list] Error reporting
remi at gide.net
Thu Feb 10 13:28:41 CET 2011
Thanks for your answer.
How hard do you think it will be ?
If you could give few hints about how to get started to implement this
feature, I might try.
My intuition is that it could be done in codeGeneration.ml ...
On Thu, Feb 10, 2011 at 13:19, Francois Pottier
<Francois.Pottier at inria.fr>wrote:
> On Thu, Feb 10, 2011 at 12:18:56PM +0100, Rémi Dewitte wrote:
> > I would like to give a more detailed error message when the user submits
> > script with a syntax error. Something like :
> > Got token COMMA expected one of SEMICOLON, LPAREN.
> > I have found it pretty easy to implement the Got token part from the
> > but I can't find a way to get more info from menhir parser. Do you have
> > idea ?
> At the moment, there is no way to obtain the set of tokens that would not
> caused an error.
> In principle, it should be possible to add this feature under some form. I
> will add this to the feature wish list, but don't hold your breath -- we
> don't have time to actively work on Menhir at the moment.
> Best regards,
> François Pottier
> Francois.Pottier at inria.fr
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Menhir-list