/[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.32 by akim, Tue Nov 12 08:05:59 2002 UTC revision 1.33 by akim, Tue Nov 12 08:26:38 2002 UTC
# Line 458  static const yysigned_char yyrhs[] = Line 458  static const yysigned_char yyrhs[] =
458  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */  /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
459  static const unsigned short yyrline[] =  static const unsigned short yyrline[] =
460  {  {
461         0,   169,   169,   182,   184,   187,   189,   190,   191,   192,         0,   170,   170,   182,   184,   187,   189,   190,   191,   192,
462       193,   194,   195,   196,   197,   199,   200,   201,   202,   203,       193,   194,   195,   196,   197,   199,   200,   201,   202,   203,
463       205,   206,   207,   208,   209,   212,   214,   215,   219,   226,       205,   206,   207,   208,   209,   212,   214,   215,   219,   226,
464       225,   236,   235,   248,   247,   253,   253,   258,   267,   282,       225,   236,   235,   248,   247,   253,   253,   258,   267,   282,
465       284,   285,   288,   290,   295,   297,   301,   306,   311,   317,       284,   285,   288,   290,   295,   297,   301,   306,   311,   317,
466       323,   333,   336,   345,   347,   353,   355,   360,   367,   366,       323,   333,   336,   345,   347,   353,   355,   360,   367,   366,
467       371,   373,   376,   379,   381,   383,   385,   387,   391,   393,       371,   373,   376,   379,   381,   383,   385,   387,   391,   393,
468       396,   402,   411,   419,   424,   430,   432       396,   402,   411,   419,   421,   428,   430
469  };  };
470  #endif  #endif
471    
# Line 1216  yyreduce: Line 1216  yyreduce:
1216    switch (yyn)    switch (yyn)
1217      {      {
1218          case 2:          case 2:
1219  #line 171 "parse-gram.y"  #line 172 "parse-gram.y"
1220      {      {
1221        yycontrol->errcode = 0;        yycontrol->errcode = 0;
       epilogue_set (yyvsp[0].string, yylsp[0]);  
1222      }      }
1223      break;      break;
1224    
# Line 1601  yyreduce: Line 1600  yyreduce:
1600      }      }
1601      break;      break;
1602    
   case 73:  
 #line 421 "parse-gram.y"  
     {  
       yyval.string = xstrdup ("");  
     }  
     break;  
   
1603    case 74:    case 74:
1604  #line 425 "parse-gram.y"  #line 422 "parse-gram.y"
1605      {      {
1606        yyval.string = yyvsp[0].string;        epilogue_augment (yyvsp[0].string, yylsp[0]);
1607          scanner_last_string_free ();
1608      }      }
1609      break;      break;
1610    
# Line 1619  yyreduce: Line 1612  yyreduce:
1612      }      }
1613    
1614  /* Line 1056 of /usr/local/share/bison/yacc.c.  */  /* Line 1056 of /usr/local/share/bison/yacc.c.  */
1615  #line 1623 "parse-gram.c"  #line 1616 "parse-gram.c"
1616    
1617    yyvsp -= yylen;    yyvsp -= yylen;
1618    yyssp -= yylen;    yyssp -= yylen;
# Line 1838  yyreturn: Line 1831  yyreturn:
1831  }  }
1832    
1833    
1834  #line 434 "parse-gram.y"  #line 432 "parse-gram.y"
1835    
1836  /*------------------------------------------------------------------.  /*------------------------------------------------------------------.
1837  | When debugging the parser, display tokens' locations and values.  |  | When debugging the parser, display tokens' locations and values.  |
# Line 1872  yyprint (FILE *file, Line 1865  yyprint (FILE *file,
1865      case EPILOGUE:      case EPILOGUE:
1866        fprintf (file, " = {{ %s }}", value->string);        fprintf (file, " = {{ %s }}", value->string);
1867        break;        break;
1868    
1869        default:
1870          fprintf (file, "unknown token type");
1871          break;
1872      }      }
1873  }  }
1874    

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33

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