mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
* data/glr.c: Comment changes.
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
2005-11-11 Akim <akim@epita.fr>
|
2005-11-11 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
|
* data/glr.c: Comment changes.
|
||||||
|
|
||||||
|
2005-11-11 Akim Demaille <akim@epita.fr>
|
||||||
|
|
||||||
When yydebug, report semantic and location values for reductions.
|
When yydebug, report semantic and location values for reductions.
|
||||||
* data/glr.c (yy_reduce_print): Report the semantic values and the
|
* data/glr.c (yy_reduce_print): Report the semantic values and the
|
||||||
|
|||||||
25
data/glr.c
25
data/glr.c
@@ -36,8 +36,10 @@ m4_define_default([b4_stack_depth_init], [200])
|
|||||||
|
|
||||||
# b4_user_formals
|
# b4_user_formals
|
||||||
# ---------------
|
# ---------------
|
||||||
# This is specific to GLR because it relies on ISO C formal argument
|
# The possible parse-params formal arguments preceded by a comma.
|
||||||
# declarations.
|
#
|
||||||
|
# This is not shared with yacc.c in c.m4 because GLR relies on ISO C
|
||||||
|
# formal argument declarations.
|
||||||
m4_define([b4_user_formals],
|
m4_define([b4_user_formals],
|
||||||
[m4_ifset([b4_parse_param], [, b4_c_ansi_formals(b4_parse_param)])])
|
[m4_ifset([b4_parse_param], [, b4_c_ansi_formals(b4_parse_param)])])
|
||||||
|
|
||||||
@@ -54,7 +56,8 @@ m4_ifdef([b4_lex_param], [, ]b4_lex_param)))
|
|||||||
|
|
||||||
# b4_yyerror_args
|
# b4_yyerror_args
|
||||||
# ---------------
|
# ---------------
|
||||||
# Arguments passed to yyerror: user args plus yylloc.
|
# Optional effective arguments passed to yyerror: user args plus yylloc, and
|
||||||
|
# a trailing comma.
|
||||||
m4_define([b4_yyerror_args],
|
m4_define([b4_yyerror_args],
|
||||||
[b4_pure_if([b4_location_if([yylocp, ])])dnl
|
[b4_pure_if([b4_location_if([yylocp, ])])dnl
|
||||||
m4_ifset([b4_parse_param], [b4_c_args(b4_parse_param), ])])
|
m4_ifset([b4_parse_param], [b4_c_args(b4_parse_param), ])])
|
||||||
@@ -70,18 +73,11 @@ m4_ifset([b4_parse_param], [b4_c_args(b4_parse_param), ])])
|
|||||||
|
|
||||||
# b4_pure_args
|
# b4_pure_args
|
||||||
# ------------
|
# ------------
|
||||||
# Arguments needed by yyerror: user args plus yylloc.
|
# Same as b4_yyerror_args, but with a leading comma.
|
||||||
m4_define([b4_pure_args],
|
m4_define([b4_pure_args],
|
||||||
[b4_pure_if([b4_location_if([, yylocp])])[]b4_user_args])
|
[b4_pure_if([b4_location_if([, yylocp])])[]b4_user_args])
|
||||||
|
|
||||||
|
|
||||||
# b4_pure_formals
|
|
||||||
# ---------------
|
|
||||||
# Arguments passed to yyerror: user formals plus yyllocp.
|
|
||||||
m4_define([b4_pure_formals],
|
|
||||||
[b4_pure_if([b4_location_if([, YYLTYPE *yylocp])])[]b4_user_formals])
|
|
||||||
|
|
||||||
|
|
||||||
# b4_lpure_args
|
# b4_lpure_args
|
||||||
# -------------
|
# -------------
|
||||||
# Same as above, but on the look-ahead, hence yyllocp instead of yylocp.
|
# Same as above, but on the look-ahead, hence yyllocp instead of yylocp.
|
||||||
@@ -89,6 +85,13 @@ m4_define([b4_lpure_args],
|
|||||||
[b4_pure_if([b4_location_if([, yyllocp])])[]b4_user_args])
|
[b4_pure_if([b4_location_if([, yyllocp])])[]b4_user_args])
|
||||||
|
|
||||||
|
|
||||||
|
# b4_pure_formals
|
||||||
|
# ---------------
|
||||||
|
# Arguments passed to yyerror: user formals plus yyllocp.
|
||||||
|
m4_define([b4_pure_formals],
|
||||||
|
[b4_pure_if([b4_location_if([, YYLTYPE *yylocp])])[]b4_user_formals])
|
||||||
|
|
||||||
|
|
||||||
# b4_lpure_formals
|
# b4_lpure_formals
|
||||||
# ----------------
|
# ----------------
|
||||||
# Same as above, but on the look-ahead, hence yyllocp instead of yylocp.
|
# Same as above, but on the look-ahead, hence yyllocp instead of yylocp.
|
||||||
|
|||||||
Reference in New Issue
Block a user