/[bison]/bison/data/bison.simple
ViewVC logotype

Diff of /bison/data/bison.simple

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

revision 1.18 by akim, Thu May 2 15:06:46 2002 UTC revision 1.19 by akim, Thu May 2 16:40:54 2002 UTC
# Line 465  while (0) Line 465  while (0)
465  #define YYERRCODE       256  #define YYERRCODE       256
466    
467  /* YYLLOC_DEFAULT -- Compute the default location (before the actions  /* YYLLOC_DEFAULT -- Compute the default location (before the actions
468     are run).     are run).  */
   
    When YYLLOC_DEFAULT is run, CURRENT is set the location of the  
    first token.  By default, to implement support for ranges, extend  
    its range to the last symbol.  */  
469    
470  #ifndef YYLLOC_DEFAULT  #ifndef YYLLOC_DEFAULT
471  # define YYLLOC_DEFAULT(Current, Rhs, N)        \  # define YYLLOC_DEFAULT(Current, Rhs, N)           \
472     Current.last_line   = Rhs[[N]].last_line;    \    Current.first_line   = Rhs[[1]].first_line;      \
473     Current.last_column = Rhs[[N]].last_column;    Current.first_column = Rhs[[1]].first_column;    \
474      Current.last_line    = Rhs[[N]].last_line;       \
475      Current.last_column  = Rhs[[N]].last_column;
476  #endif  #endif
477    
478  /* YYLEX -- calling `yylex' with the right arguments.  */  /* YYLEX -- calling `yylex' with the right arguments.  */
# Line 956  yyreduce: Line 954  yyreduce:
954    yyval = yyvsp[1-yylen];    yyval = yyvsp[1-yylen];
955    
956  #if YYLSP_NEEDED  #if YYLSP_NEEDED
957    /* Similarly for the default location.  Let the user run additional    /* Default location. */
      commands if for instance locations are ranges.  */  
   yyloc = yylsp[1-yylen];  
958    YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);    YYLLOC_DEFAULT (yyloc, (yylsp - yylen), yylen);
959  #endif  #endif
960    

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

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