[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Is there an option to change the message produced by YYERROR_VERBOSE?
From: |
Simon Sobisch |
Subject: |
Is there an option to change the message produced by YYERROR_VERBOSE? |
Date: |
Tue, 26 Apr 2016 21:39:49 +0200 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 |
We use bison in cobc (the GnuCOBOL compiler) and would like to check the
content of the unexpected part in
YYCASE_(0, YY_("syntax error"));
YYCASE_(1, YY_("syntax error, unexpected %s"));
YYCASE_(2, YY_("syntax error, unexpected %s, expecting %s"));
YYCASE_(3, YY_("syntax error, unexpected %s, expecting %s or %s"));
YYCASE_(4, YY_("syntax error, unexpected %s, expecting %s or %s or
%s"));
YYCASE_(5, YY_("syntax error, unexpected %s, expecting %s or %s or
%s or %s"));
as the reserved words differ depending on -std.
If the unexpected %s is not in the reserved words list currently active
because of the compiler configuration but is in the global one we add
another line to the warning, something like "%s not supported with std %s".
How can this be achieved?
Thank you for your support,
Simon
signature.asc
Description: OpenPGP digital signature
- Is there an option to change the message produced by YYERROR_VERBOSE?,
Simon Sobisch <=
Re: Is there an option to change the message produced by YYERROR_VERBOSE?, Hans Åberg, 2016/04/26
Re: Is there an option to change the message produced by YYERROR_VERBOSE?, Matthias Simon, 2016/04/27