/[bison]/bison/data/bison.c++
ViewVC logotype

Diff of /bison/data/bison.c++

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

revision 1.21 by akim, Mon Apr 8 12:31:15 2002 UTC revision 1.22 by akim, Tue Apr 9 19:19:59 2002 UTC
# Line 257  namespace yy Line 257  namespace yy
257      static const int errcode_;      static const int errcode_;
258      static const int ntokens_;      static const int ntokens_;
259      static const int initdepth_;      static const int initdepth_;
260      static const unsigned maxtok_;      static const unsigned user_token_number_max_;
261        static const TokenNumberType undef_token_;
262    
263      /* State.  */      /* State.  */
264      int n_;      int n_;
# Line 722  yy::b4_name::translate_ (int token) Line 723  yy::b4_name::translate_ (int token)
723    {    {
724      b4_translate      b4_translate
725    };    };
726    return (unsigned)(token) <= maxtok_ ? translate_[[token]] : nsym_;    if ((unsigned) token <= user_token_number_max_)
727        return translate_[[token]];
728      else
729        return undef_token_;
730  }  }
731    
732  const int yy::b4_name::eof_ = 0;  const int yy::b4_name::eof_ = 0;
# Line 737  const int yy::b4_name::errcode_ = 256; Line 741  const int yy::b4_name::errcode_ = 256;
741  const int yy::b4_name::ntokens_ = b4_ntokens;  const int yy::b4_name::ntokens_ = b4_ntokens;
742  const int yy::b4_name::initdepth_ = b4_initdepth;  const int yy::b4_name::initdepth_ = b4_initdepth;
743    
744  const unsigned yy::b4_name::maxtok_ = b4_maxtok;  const unsigned yy::b4_name::user_token_number_max_ = b4_user_token_number_max;
745    const yy::b4_name::TokenNumberType yy::b4_name::undef_token_ = b4_undef_token_number;
746    
747  b4_epilogue  b4_epilogue
748    

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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