mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
Document how `%define "var" "value"' is not M4-friendly.
* src/parse-gram.y (variable): In comments here.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-04-24 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
|
Document how `%define "var" "value"' is not M4-friendly.
|
||||||
|
* src/parse-gram.y (variable): In comments here.
|
||||||
|
|
||||||
2009-04-24 Joel E. Denny <jdenny@ces.clemson.edu>
|
2009-04-24 Joel E. Denny <jdenny@ces.clemson.edu>
|
||||||
|
|
||||||
Add copyright updates missed during previous cherry pick.
|
Add copyright updates missed during previous cherry pick.
|
||||||
|
|||||||
@@ -78,8 +78,8 @@
|
|||||||
#line 1 "parse-gram.y"
|
#line 1 "parse-gram.y"
|
||||||
/* Bison Grammar Parser -*- C -*-
|
/* Bison Grammar Parser -*- C -*-
|
||||||
|
|
||||||
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software
|
Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free
|
||||||
Foundation, Inc.
|
Software Foundation, Inc.
|
||||||
|
|
||||||
This file is part of Bison, the GNU Compiler Compiler.
|
This file is part of Bison, the GNU Compiler Compiler.
|
||||||
|
|
||||||
@@ -672,8 +672,8 @@ static const yytype_uint16 yyrline[] =
|
|||||||
434, 435, 440, 442, 447, 448, 452, 453, 454, 455,
|
434, 435, 440, 442, 447, 448, 452, 453, 454, 455,
|
||||||
460, 465, 470, 476, 482, 493, 494, 503, 504, 510,
|
460, 465, 470, 476, 482, 493, 494, 503, 504, 510,
|
||||||
511, 512, 519, 519, 523, 524, 525, 530, 531, 533,
|
511, 512, 519, 519, 523, 524, 525, 530, 531, 533,
|
||||||
535, 537, 539, 549, 550, 555, 556, 565, 585, 587,
|
535, 537, 539, 551, 552, 557, 558, 567, 587, 589,
|
||||||
596, 601, 602, 607, 614, 616
|
598, 603, 604, 609, 616, 618
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -2544,21 +2544,21 @@ yyreduce:
|
|||||||
case 94:
|
case 94:
|
||||||
|
|
||||||
/* Line 1456 of yacc.c */
|
/* Line 1456 of yacc.c */
|
||||||
#line 550 "parse-gram.y"
|
#line 552 "parse-gram.y"
|
||||||
{ (yyval.uniqstr) = uniqstr_new ((yyvsp[(1) - (1)].chars)); }
|
{ (yyval.uniqstr) = uniqstr_new ((yyvsp[(1) - (1)].chars)); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 95:
|
case 95:
|
||||||
|
|
||||||
/* Line 1456 of yacc.c */
|
/* Line 1456 of yacc.c */
|
||||||
#line 555 "parse-gram.y"
|
#line 557 "parse-gram.y"
|
||||||
{ (yyval.chars) = ""; }
|
{ (yyval.chars) = ""; }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 97:
|
case 97:
|
||||||
|
|
||||||
/* Line 1456 of yacc.c */
|
/* Line 1456 of yacc.c */
|
||||||
#line 566 "parse-gram.y"
|
#line 568 "parse-gram.y"
|
||||||
{
|
{
|
||||||
code_props plain_code;
|
code_props plain_code;
|
||||||
(yyvsp[(1) - (1)].code)[strlen ((yyvsp[(1) - (1)].code)) - 1] = '\n';
|
(yyvsp[(1) - (1)].code)[strlen ((yyvsp[(1) - (1)].code)) - 1] = '\n';
|
||||||
@@ -2572,14 +2572,14 @@ yyreduce:
|
|||||||
case 98:
|
case 98:
|
||||||
|
|
||||||
/* Line 1456 of yacc.c */
|
/* Line 1456 of yacc.c */
|
||||||
#line 586 "parse-gram.y"
|
#line 588 "parse-gram.y"
|
||||||
{ (yyval.symbol) = symbol_from_uniqstr ((yyvsp[(1) - (1)].uniqstr), (yylsp[(1) - (1)])); }
|
{ (yyval.symbol) = symbol_from_uniqstr ((yyvsp[(1) - (1)].uniqstr), (yylsp[(1) - (1)])); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 99:
|
case 99:
|
||||||
|
|
||||||
/* Line 1456 of yacc.c */
|
/* Line 1456 of yacc.c */
|
||||||
#line 588 "parse-gram.y"
|
#line 590 "parse-gram.y"
|
||||||
{
|
{
|
||||||
(yyval.symbol) = symbol_get (char_name ((yyvsp[(1) - (1)].character)), (yylsp[(1) - (1)]));
|
(yyval.symbol) = symbol_get (char_name ((yyvsp[(1) - (1)].character)), (yylsp[(1) - (1)]));
|
||||||
symbol_class_set ((yyval.symbol), token_sym, (yylsp[(1) - (1)]), false);
|
symbol_class_set ((yyval.symbol), token_sym, (yylsp[(1) - (1)]), false);
|
||||||
@@ -2590,14 +2590,14 @@ yyreduce:
|
|||||||
case 100:
|
case 100:
|
||||||
|
|
||||||
/* Line 1456 of yacc.c */
|
/* Line 1456 of yacc.c */
|
||||||
#line 596 "parse-gram.y"
|
#line 598 "parse-gram.y"
|
||||||
{ (yyval.symbol) = symbol_from_uniqstr ((yyvsp[(1) - (1)].uniqstr), (yylsp[(1) - (1)])); }
|
{ (yyval.symbol) = symbol_from_uniqstr ((yyvsp[(1) - (1)].uniqstr), (yylsp[(1) - (1)])); }
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 103:
|
case 103:
|
||||||
|
|
||||||
/* Line 1456 of yacc.c */
|
/* Line 1456 of yacc.c */
|
||||||
#line 608 "parse-gram.y"
|
#line 610 "parse-gram.y"
|
||||||
{
|
{
|
||||||
(yyval.symbol) = symbol_get (quotearg_style (c_quoting_style, (yyvsp[(1) - (1)].chars)), (yylsp[(1) - (1)]));
|
(yyval.symbol) = symbol_get (quotearg_style (c_quoting_style, (yyvsp[(1) - (1)].chars)), (yylsp[(1) - (1)]));
|
||||||
symbol_class_set ((yyval.symbol), token_sym, (yylsp[(1) - (1)]), false);
|
symbol_class_set ((yyval.symbol), token_sym, (yylsp[(1) - (1)]), false);
|
||||||
@@ -2607,7 +2607,7 @@ yyreduce:
|
|||||||
case 105:
|
case 105:
|
||||||
|
|
||||||
/* Line 1456 of yacc.c */
|
/* Line 1456 of yacc.c */
|
||||||
#line 617 "parse-gram.y"
|
#line 619 "parse-gram.y"
|
||||||
{
|
{
|
||||||
code_props plain_code;
|
code_props plain_code;
|
||||||
code_props_plain_init (&plain_code, (yyvsp[(2) - (2)].chars), (yylsp[(2) - (2)]));
|
code_props_plain_init (&plain_code, (yyvsp[(2) - (2)].chars), (yylsp[(2) - (2)]));
|
||||||
@@ -2840,7 +2840,7 @@ yyreturn:
|
|||||||
|
|
||||||
|
|
||||||
/* Line 1676 of yacc.c */
|
/* Line 1676 of yacc.c */
|
||||||
#line 627 "parse-gram.y"
|
#line 629 "parse-gram.y"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -545,6 +545,8 @@ rhs:
|
|||||||
| variable and content.opt. |
|
| variable and content.opt. |
|
||||||
*---------------------------*/
|
*---------------------------*/
|
||||||
|
|
||||||
|
/* The STRING form of variable is deprecated and is not M4-friendly.
|
||||||
|
For example, M4 fails for `%define "[" "value"'. */
|
||||||
variable:
|
variable:
|
||||||
ID
|
ID
|
||||||
| STRING { $$ = uniqstr_new ($1); }
|
| STRING { $$ = uniqstr_new ($1); }
|
||||||
|
|||||||
Reference in New Issue
Block a user