mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
* data/c.m4 (b4_error_verbose_if): New.
* data/lalr1.cc: Use it. (YYERROR_VERBOSE_IF): Remove. (yyn_, yylen_, yystate_, yynerrs_, yyerrstatus_): Remove as parser members, replaced by... (yyn, yylen, yystate, yynerss, yyerrstatus): these parser::parse local variables. (yysyntax_error_): Takes the state number as argument. (yyreduce_print_): Use the argument yyrule, not the former attribute yyn_.
This commit is contained in:
@@ -138,6 +138,15 @@ m4_define([b4_int_type_for],
|
||||
## ------------------ ##
|
||||
|
||||
|
||||
# b4_error_verbose_if(IF-TRUE, IF-FALSE)
|
||||
# --------------------------------------
|
||||
# Expand IF-TRUE, if errors are verbose, IF-FALSE otherwise.
|
||||
m4_define([b4_error_verbose_if],
|
||||
[m4_if(b4_error_verbose, [1],
|
||||
[$1],
|
||||
[$2])])
|
||||
|
||||
|
||||
# b4_location_if(IF-TRUE, IF-FALSE)
|
||||
# ---------------------------------
|
||||
# Expand IF-TRUE, if locations are used, IF-FALSE otherwise.
|
||||
|
||||
Reference in New Issue
Block a user