/[bison]/bison/src/parse-gram.c
ViewVC logotype

Diff of /bison/src/parse-gram.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.40 by eggert, Wed Jan 1 10:09:55 2003 UTC revision 1.41 by akim, Wed Feb 5 09:57:02 2003 UTC
# Line 1  Line 1 
1  /* A Bison parser, made by GNU Bison 1.875.  */  /* A Bison parser, made by GNU Bison 1.875a.  */
2    
3  /* Skeleton parser for Yacc-like parsing with Bison,  /* Skeleton parser for Yacc-like parsing with Bison,
4     Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002 Free Software Foundation, Inc.     Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
5    
6     This program is free software; you can redistribute it and/or modify     This program is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by     it under the terms of the GNU General Public License as published by
# Line 157  Line 157 
157    
158    
159  /* Copy the first part of user declarations.  */  /* Copy the first part of user declarations.  */
160  #line 31 "parse-gram.y"  #line 32 "parse-gram.y"
161    
162  #include "system.h"  #include "system.h"
163    
# Line 212  int current_prec = 0; Line 212  int current_prec = 0;
212  #endif  #endif
213    
214  #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)  #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
215  #line 74 "parse-gram.y"  #line 75 "parse-gram.y"
216  typedef union YYSTYPE {  typedef union YYSTYPE {
217    symbol *symbol;    symbol *symbol;
218    symbol_list *list;    symbol_list *list;
# Line 222  typedef union YYSTYPE { Line 222  typedef union YYSTYPE {
222    uniqstr uniqstr;    uniqstr uniqstr;
223  } YYSTYPE;  } YYSTYPE;
224  /* Line 191 of yacc.c.  */  /* Line 191 of yacc.c.  */
225  #line 225 "parse-gram.c"  #line 226 "parse-gram.c"
226  # define yystype YYSTYPE /* obsolescent; will be withdrawn */  # define yystype YYSTYPE /* obsolescent; will be withdrawn */
227  # define YYSTYPE_IS_DECLARED 1  # define YYSTYPE_IS_DECLARED 1
228  # define YYSTYPE_IS_TRIVIAL 1  # define YYSTYPE_IS_TRIVIAL 1
# Line 246  typedef struct YYLTYPE Line 246  typedef struct YYLTYPE
246    
247    
248  /* Line 214 of yacc.c.  */  /* Line 214 of yacc.c.  */
249  #line 249 "parse-gram.c"  #line 250 "parse-gram.c"
250    
251  #if ! defined (yyoverflow) || YYERROR_VERBOSE  #if ! defined (yyoverflow) || YYERROR_VERBOSE
252    
# Line 442  static const yysigned_char yyrhs[] = Line 442  static const yysigned_char yyrhs[] =
442  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
443  static const unsigned short yyrline[] =  static const unsigned short yyrline[] =
444  {  {
445         0,   160,   160,   168,   170,   174,   175,   176,   177,   178,         0,   161,   161,   169,   171,   175,   176,   177,   178,   179,
446       179,   180,   181,   182,   183,   184,   185,   186,   187,   188,       180,   181,   182,   183,   184,   185,   186,   187,   188,   189,
447       189,   190,   191,   192,   193,   194,   198,   199,   200,   204,       190,   191,   192,   193,   194,   195,   199,   200,   201,   205,
448       210,   217,   227,   227,   232,   232,   237,   247,   262,   263,       211,   218,   228,   228,   233,   233,   238,   248,   263,   264,
449       264,   268,   269,   275,   276,   281,   285,   290,   296,   302,       265,   269,   270,   276,   277,   282,   286,   291,   297,   303,
450       313,   314,   323,   324,   330,   331,   336,   340,   344,   344,       314,   315,   324,   325,   331,   332,   337,   341,   345,   345,
451       348,   349,   354,   355,   357,   359,   361,   363,   368,   369,       349,   350,   355,   356,   358,   360,   362,   364,   369,   370,
452       373,   379,   388,   395,   397       374,   380,   389,   396,   398
453  };  };
454  #endif  #endif
455    
# Line 1249  yyreduce: Line 1249  yyreduce:
1249    switch (yyn)    switch (yyn)
1250      {      {
1251          case 6:          case 6:
1252  #line 175 "parse-gram.y"  #line 176 "parse-gram.y"
1253      { prologue_augment (yyvsp[0].chars, yylsp[0]); }      { prologue_augment (yyvsp[0].chars, yylsp[0]); }
1254      break;      break;
1255    
1256    case 7:    case 7:
1257  #line 176 "parse-gram.y"  #line 177 "parse-gram.y"
1258      { debug_flag = 1; }      { debug_flag = 1; }
1259      break;      break;
1260    
1261    case 8:    case 8:
1262  #line 177 "parse-gram.y"  #line 178 "parse-gram.y"
1263      { muscle_insert (yyvsp[-1].chars, yyvsp[0].chars); }      { muscle_insert (yyvsp[-1].chars, yyvsp[0].chars); }
1264      break;      break;
1265    
1266    case 9:    case 9:
1267  #line 178 "parse-gram.y"  #line 179 "parse-gram.y"
1268      { defines_flag = 1; }      { defines_flag = 1; }
1269      break;      break;
1270    
1271    case 10:    case 10:
1272  #line 179 "parse-gram.y"  #line 180 "parse-gram.y"
1273      { error_verbose = 1; }      { error_verbose = 1; }
1274      break;      break;
1275    
1276    case 11:    case 11:
1277  #line 180 "parse-gram.y"  #line 181 "parse-gram.y"
1278      { expected_conflicts = yyvsp[0].integer; }      { expected_conflicts = yyvsp[0].integer; }
1279      break;      break;
1280    
1281    case 12:    case 12:
1282  #line 181 "parse-gram.y"  #line 182 "parse-gram.y"
1283      { spec_file_prefix = yyvsp[0].chars; }      { spec_file_prefix = yyvsp[0].chars; }
1284      break;      break;
1285    
1286    case 13:    case 13:
1287  #line 182 "parse-gram.y"  #line 183 "parse-gram.y"
1288      { glr_parser = 1; }      { glr_parser = 1; }
1289      break;      break;
1290    
1291    case 14:    case 14:
1292  #line 183 "parse-gram.y"  #line 184 "parse-gram.y"
1293      { add_param ("lex_param", yyvsp[0].chars, yylsp[0]); }      { add_param ("lex_param", yyvsp[0].chars, yylsp[0]); }
1294      break;      break;
1295    
1296    case 15:    case 15:
1297  #line 184 "parse-gram.y"  #line 185 "parse-gram.y"
1298      { locations_flag = 1; }      { locations_flag = 1; }
1299      break;      break;
1300    
1301    case 16:    case 16:
1302  #line 185 "parse-gram.y"  #line 186 "parse-gram.y"
1303      { spec_name_prefix = yyvsp[0].chars; }      { spec_name_prefix = yyvsp[0].chars; }
1304      break;      break;
1305    
1306    case 17:    case 17:
1307  #line 186 "parse-gram.y"  #line 187 "parse-gram.y"
1308      { no_lines_flag = 1; }      { no_lines_flag = 1; }
1309      break;      break;
1310    
1311    case 18:    case 18:
1312  #line 187 "parse-gram.y"  #line 188 "parse-gram.y"
1313      { spec_outfile = yyvsp[0].chars; }      { spec_outfile = yyvsp[0].chars; }
1314      break;      break;
1315    
1316    case 19:    case 19:
1317  #line 188 "parse-gram.y"  #line 189 "parse-gram.y"
1318      { add_param ("parse_param", yyvsp[0].chars, yylsp[0]); }      { add_param ("parse_param", yyvsp[0].chars, yylsp[0]); }
1319      break;      break;
1320    
1321    case 20:    case 20:
1322  #line 189 "parse-gram.y"  #line 190 "parse-gram.y"
1323      { pure_parser = 1; }      { pure_parser = 1; }
1324      break;      break;
1325    
1326    case 21:    case 21:
1327  #line 190 "parse-gram.y"  #line 191 "parse-gram.y"
1328      { skeleton = yyvsp[0].chars; }      { skeleton = yyvsp[0].chars; }
1329      break;      break;
1330    
1331    case 22:    case 22:
1332  #line 191 "parse-gram.y"  #line 192 "parse-gram.y"
1333      { token_table_flag = 1; }      { token_table_flag = 1; }
1334      break;      break;
1335    
1336    case 23:    case 23:
1337  #line 192 "parse-gram.y"  #line 193 "parse-gram.y"
1338      { report_flag = report_states; }      { report_flag = report_states; }
1339      break;      break;
1340    
1341    case 24:    case 24:
1342  #line 193 "parse-gram.y"  #line 194 "parse-gram.y"
1343      { yacc_flag = 1; }      { yacc_flag = 1; }
1344      break;      break;
1345    
1346    case 28:    case 28:
1347  #line 201 "parse-gram.y"  #line 202 "parse-gram.y"
1348      {      {
1349        grammar_start_symbol_set (yyvsp[0].symbol, yylsp[0]);        grammar_start_symbol_set (yyvsp[0].symbol, yylsp[0]);
1350      }      }
1351      break;      break;
1352    
1353    case 29:    case 29:
1354  #line 205 "parse-gram.y"  #line 206 "parse-gram.y"
1355      {      {
1356        typed = 1;        typed = 1;
1357        MUSCLE_INSERT_INT ("stype_line", yylsp[0].start.line);        MUSCLE_INSERT_INT ("stype_line", yylsp[0].start.line);
# Line 1360  yyreduce: Line 1360  yyreduce:
1360      break;      break;
1361    
1362    case 30:    case 30:
1363  #line 211 "parse-gram.y"  #line 212 "parse-gram.y"
1364      {      {
1365        symbol_list *list;        symbol_list *list;
1366        for (list = yyvsp[0].list; list; list = list->next)        for (list = yyvsp[0].list; list; list = list->next)
# Line 1370  yyreduce: Line 1370  yyreduce:
1370      break;      break;
1371    
1372    case 31:    case 31:
1373  #line 218 "parse-gram.y"  #line 219 "parse-gram.y"
1374      {      {
1375        symbol_list *list;        symbol_list *list;
1376        for (list = yyvsp[0].list; list; list = list->next)        for (list = yyvsp[0].list; list; list = list->next)
# Line 1380  yyreduce: Line 1380  yyreduce:
1380      break;      break;
1381    
1382    case 32:    case 32:
1383  #line 227 "parse-gram.y"  #line 228 "parse-gram.y"
1384      { current_class = nterm_sym; }      { current_class = nterm_sym; }
1385      break;      break;
1386    
1387    case 33:    case 33:
1388  #line 228 "parse-gram.y"  #line 229 "parse-gram.y"
1389      {      {
1390        current_class = unknown_sym;        current_class = unknown_sym;
1391        current_type = NULL;        current_type = NULL;
# Line 1393  yyreduce: Line 1393  yyreduce:
1393      break;      break;
1394    
1395    case 34:    case 34:
1396  #line 232 "parse-gram.y"  #line 233 "parse-gram.y"
1397      { current_class = token_sym; }      { current_class = token_sym; }
1398      break;      break;
1399    
1400    case 35:    case 35:
1401  #line 233 "parse-gram.y"  #line 234 "parse-gram.y"
1402      {      {
1403        current_class = unknown_sym;        current_class = unknown_sym;
1404        current_type = NULL;        current_type = NULL;
# Line 1406  yyreduce: Line 1406  yyreduce:
1406      break;      break;
1407    
1408    case 36:    case 36:
1409  #line 238 "parse-gram.y"  #line 239 "parse-gram.y"
1410      {      {
1411        symbol_list *list;        symbol_list *list;
1412        for (list = yyvsp[0].list; list; list = list->next)        for (list = yyvsp[0].list; list; list = list->next)
# Line 1416  yyreduce: Line 1416  yyreduce:
1416      break;      break;
1417    
1418    case 37:    case 37:
1419  #line 248 "parse-gram.y"  #line 249 "parse-gram.y"
1420      {      {
1421        symbol_list *list;        symbol_list *list;
1422        ++current_prec;        ++current_prec;
# Line 1431  yyreduce: Line 1431  yyreduce:
1431      break;      break;
1432    
1433    case 38:    case 38:
1434  #line 262 "parse-gram.y"  #line 263 "parse-gram.y"
1435      { yyval.assoc = left_assoc; }      { yyval.assoc = left_assoc; }
1436      break;      break;
1437    
1438    case 39:    case 39:
1439  #line 263 "parse-gram.y"  #line 264 "parse-gram.y"
1440      { yyval.assoc = right_assoc; }      { yyval.assoc = right_assoc; }
1441      break;      break;
1442    
1443    case 40:    case 40:
1444  #line 264 "parse-gram.y"  #line 265 "parse-gram.y"
1445      { yyval.assoc = non_assoc; }      { yyval.assoc = non_assoc; }
1446      break;      break;
1447    
1448    case 41:    case 41:
1449  #line 268 "parse-gram.y"  #line 269 "parse-gram.y"
1450      { current_type = NULL; }      { current_type = NULL; }
1451      break;      break;
1452    
1453    case 42:    case 42:
1454  #line 269 "parse-gram.y"  #line 270 "parse-gram.y"
1455      { current_type = yyvsp[0].uniqstr; }      { current_type = yyvsp[0].uniqstr; }
1456      break;      break;
1457    
1458    case 43:    case 43:
1459  #line 275 "parse-gram.y"  #line 276 "parse-gram.y"
1460      { yyval.list = symbol_list_new (yyvsp[0].symbol, yylsp[0]); }      { yyval.list = symbol_list_new (yyvsp[0].symbol, yylsp[0]); }
1461      break;      break;
1462    
1463    case 44:    case 44:
1464  #line 276 "parse-gram.y"  #line 277 "parse-gram.y"
1465      { yyval.list = symbol_list_prepend (yyvsp[-1].list, yyvsp[0].symbol, yylsp[0]); }      { yyval.list = symbol_list_prepend (yyvsp[-1].list, yyvsp[0].symbol, yylsp[0]); }
1466      break;      break;
1467    
1468    case 45:    case 45:
1469  #line 282 "parse-gram.y"  #line 283 "parse-gram.y"
1470      {      {
1471         current_type = yyvsp[0].uniqstr;         current_type = yyvsp[0].uniqstr;
1472       }       }
1473      break;      break;
1474    
1475    case 46:    case 46:
1476  #line 286 "parse-gram.y"  #line 287 "parse-gram.y"
1477      {      {
1478         symbol_class_set (yyvsp[0].symbol, current_class, yylsp[0]);         symbol_class_set (yyvsp[0].symbol, current_class, yylsp[0]);
1479         symbol_type_set (yyvsp[0].symbol, current_type, yylsp[0]);         symbol_type_set (yyvsp[0].symbol, current_type, yylsp[0]);
# Line 1481  yyreduce: Line 1481  yyreduce:
1481      break;      break;
1482    
1483    case 47:    case 47:
1484  #line 291 "parse-gram.y"  #line 292 "parse-gram.y"
1485      {      {
1486        symbol_class_set (yyvsp[-1].symbol, current_class, yylsp[-1]);        symbol_class_set (yyvsp[-1].symbol, current_class, yylsp[-1]);
1487        symbol_type_set (yyvsp[-1].symbol, current_type, yylsp[-1]);        symbol_type_set (yyvsp[-1].symbol, current_type, yylsp[-1]);
# Line 1490  yyreduce: Line 1490  yyreduce:
1490      break;      break;
1491    
1492    case 48:    case 48:
1493  #line 297 "parse-gram.y"  #line 298 "parse-gram.y"
1494      {      {
1495        symbol_class_set (yyvsp[-1].symbol, current_class, yylsp[-1]);        symbol_class_set (yyvsp[-1].symbol, current_class, yylsp[-1]);
1496        symbol_type_set (yyvsp[-1].symbol, current_type, yylsp[-1]);        symbol_type_set (yyvsp[-1].symbol, current_type, yylsp[-1]);
# Line 1499  yyreduce: Line 1499  yyreduce:
1499      break;      break;
1500    
1501    case 49:    case 49:
1502  #line 303 "parse-gram.y"  #line 304 "parse-gram.y"
1503      {      {
1504        symbol_class_set (yyvsp[-2].symbol, current_class, yylsp[-2]);        symbol_class_set (yyvsp[-2].symbol, current_class, yylsp[-2]);
1505        symbol_type_set (yyvsp[-2].symbol, current_type, yylsp[-2]);        symbol_type_set (yyvsp[-2].symbol, current_type, yylsp[-2]);
# Line 1509  yyreduce: Line 1509  yyreduce:
1509      break;      break;
1510    
1511    case 55:    case 55:
1512  #line 332 "parse-gram.y"  #line 333 "parse-gram.y"
1513      {      {
1514        if (yacc_flag)        if (yacc_flag)
1515          complain_at (yyloc, _("POSIX forbids declarations in the grammar"));          complain_at (yyloc, _("POSIX forbids declarations in the grammar"));
# Line 1517  yyreduce: Line 1517  yyreduce:
1517      break;      break;
1518    
1519    case 56:    case 56:
1520  #line 337 "parse-gram.y"  #line 338 "parse-gram.y"
1521      {      {
1522        yyerrok;        yyerrok;
1523      }      }
1524      break;      break;
1525    
1526    case 58:    case 58:
1527  #line 344 "parse-gram.y"  #line 345 "parse-gram.y"
1528      { current_lhs = yyvsp[0].symbol; current_lhs_location = yylsp[0]; }      { current_lhs = yyvsp[0].symbol; current_lhs_location = yylsp[0]; }
1529      break;      break;
1530    
1531    case 60:    case 60:
1532  #line 348 "parse-gram.y"  #line 349 "parse-gram.y"
1533      { grammar_rule_end (yylsp[0]); }      { grammar_rule_end (yylsp[0]); }
1534      break;      break;
1535    
1536    case 61:    case 61:
1537  #line 349 "parse-gram.y"  #line 350 "parse-gram.y"
1538      { grammar_rule_end (yylsp[0]); }      { grammar_rule_end (yylsp[0]); }
1539      break;      break;
1540    
1541    case 62:    case 62:
1542  #line 354 "parse-gram.y"  #line 355 "parse-gram.y"
1543      { grammar_rule_begin (current_lhs, current_lhs_location); }      { grammar_rule_begin (current_lhs, current_lhs_location); }
1544      break;      break;
1545    
1546    case 63:    case 63:
1547  #line 356 "parse-gram.y"  #line 357 "parse-gram.y"
1548      { grammar_current_rule_symbol_append (yyvsp[0].symbol, yylsp[0]); }      { grammar_current_rule_symbol_append (yyvsp[0].symbol, yylsp[0]); }
1549      break;      break;
1550    
1551    case 64:    case 64:
1552  #line 358 "parse-gram.y"  #line 359 "parse-gram.y"
1553      { grammar_current_rule_action_append (yyvsp[0].chars, yylsp[0]); }      { grammar_current_rule_action_append (yyvsp[0].chars, yylsp[0]); }
1554      break;      break;
1555    
1556    case 65:    case 65:
1557  #line 360 "parse-gram.y"  #line 361 "parse-gram.y"
1558      { grammar_current_rule_prec_set (yyvsp[0].symbol, yylsp[0]); }      { grammar_current_rule_prec_set (yyvsp[0].symbol, yylsp[0]); }
1559      break;      break;
1560    
1561    case 66:    case 66:
1562  #line 362 "parse-gram.y"  #line 363 "parse-gram.y"
1563      { grammar_current_rule_dprec_set (yyvsp[0].integer, yylsp[0]); }      { grammar_current_rule_dprec_set (yyvsp[0].integer, yylsp[0]); }
1564      break;      break;
1565    
1566    case 67:    case 67:
1567  #line 364 "parse-gram.y"  #line 365 "parse-gram.y"
1568      { grammar_current_rule_merge_set (yyvsp[0].uniqstr, yylsp[0]); }      { grammar_current_rule_merge_set (yyvsp[0].uniqstr, yylsp[0]); }
1569      break;      break;
1570    
1571    case 68:    case 68:
1572  #line 368 "parse-gram.y"  #line 369 "parse-gram.y"
1573      { yyval.symbol = yyvsp[0].symbol; }      { yyval.symbol = yyvsp[0].symbol; }
1574      break;      break;
1575    
1576    case 69:    case 69:
1577  #line 369 "parse-gram.y"  #line 370 "parse-gram.y"
1578      { yyval.symbol = yyvsp[0].symbol; }      { yyval.symbol = yyvsp[0].symbol; }
1579      break;      break;
1580    
1581    case 70:    case 70:
1582  #line 374 "parse-gram.y"  #line 375 "parse-gram.y"
1583      { yyval.chars = yyvsp[0].chars; }      { yyval.chars = yyvsp[0].chars; }
1584      break;      break;
1585    
1586    case 71:    case 71:
1587  #line 380 "parse-gram.y"  #line 381 "parse-gram.y"
1588      {      {
1589        yyval.symbol = symbol_get (yyvsp[0].chars, yylsp[0]);        yyval.symbol = symbol_get (yyvsp[0].chars, yylsp[0]);
1590        symbol_class_set (yyval.symbol, token_sym, yylsp[0]);        symbol_class_set (yyval.symbol, token_sym, yylsp[0]);
# Line 1592  yyreduce: Line 1592  yyreduce:
1592      break;      break;
1593    
1594    case 72:    case 72:
1595  #line 389 "parse-gram.y"  #line 390 "parse-gram.y"
1596      {      {
1597        yyval.chars = yyvsp[0].chars + 1;        yyval.chars = yyvsp[0].chars + 1;
1598        yyval.chars[strlen (yyval.chars) - 1] = '\0';        yyval.chars[strlen (yyval.chars) - 1] = '\0';
# Line 1600  yyreduce: Line 1600  yyreduce:
1600      break;      break;
1601    
1602    case 74:    case 74:
1603  #line 398 "parse-gram.y"  #line 399 "parse-gram.y"
1604      {      {
1605        epilogue_augment (yyvsp[0].chars, yylsp[0]);        epilogue_augment (yyvsp[0].chars, yylsp[0]);
1606        scanner_last_string_free ();        scanner_last_string_free ();
# Line 1611  yyreduce: Line 1611  yyreduce:
1611      }      }
1612    
1613  /* Line 991 of yacc.c.  */  /* Line 991 of yacc.c.  */
1614  #line 1614 "parse-gram.c"  #line 1615 "parse-gram.c"
1615    
1616    yyvsp -= yylen;    yyvsp -= yylen;
1617    yyssp -= yylen;    yyssp -= yylen;
# Line 1734  yyerrlab: Line 1734  yyerrlab:
1734  yyerrlab1:  yyerrlab1:
1735    
1736    /* Suppress GCC warning that yyerrlab1 is unused when no action    /* Suppress GCC warning that yyerrlab1 is unused when no action
1737       invokes YYERROR.  */       invokes YYERROR.  MacOS 10.2.3's buggy "smart preprocessor"
1738         insists on the trailing semicolon.  */
1739  #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)  #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
1740    __attribute__ ((__unused__))    /* GNU C++ (as of version 3.2.1) does not allow attributes on labels.  */
1741    # ifndef __cplusplus
1742      __attribute__ ((__unused__));
1743    # endif
1744  #endif  #endif
1745    
1746    yylerrsp = yylsp;    yylerrsp = yylsp;
# Line 1822  yyreturn: Line 1826  yyreturn:
1826  }  }
1827    
1828    
1829  #line 404 "parse-gram.y"  #line 405 "parse-gram.y"
1830    
1831    
1832    
# Line 1835  static YYLTYPE Line 1839  static YYLTYPE
1839  lloc_default (YYLTYPE const *rhs, int n)  lloc_default (YYLTYPE const *rhs, int n)
1840  {  {
1841    int i;    int i;
1842    YYLTYPE r;    YYLTYPE loc;
1843    r.start = r.end = rhs[n].end;    loc.start = loc.end = rhs[n].end;
1844    
1845    /* Ignore empty nonterminals the start of the the right-hand side.    /* Ignore empty nonterminals the start of the the right-hand side.
1846       Do not bother to ignore them at the end of the right-hand side,       Do not bother to ignore them at the end of the right-hand side,
# Line 1844  lloc_default (YYLTYPE const *rhs, int n) Line 1848  lloc_default (YYLTYPE const *rhs, int n)
1848    for (i = 1; i <= n; i++)    for (i = 1; i <= n; i++)
1849      if (! equal_boundaries (rhs[i].start, rhs[i].end))      if (! equal_boundaries (rhs[i].start, rhs[i].end))
1850        {        {
1851          r.start = rhs[i].start;          loc.start = rhs[i].start;
1852          break;          break;
1853        }        }
1854    
1855    return r;    return loc;
1856  }  }
1857    
1858    

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26