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
_______________________________________________ [email protected] https://lists.gnu.org/mailman/listinfo/help-bison
