/[bison]/bison/data/lalr1.cc
ViewVC logotype

Diff of /bison/data/lalr1.cc

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

revision 1.33 by eggert, Mon Jun 2 08:19:08 2003 UTC revision 1.34 by eggert, Wed Jun 4 05:53:10 2003 UTC
# Line 544  b4_syncline([@oline@], [@ofile@])[ Line 544  b4_syncline([@oline@], [@ofile@])[
544              if (count < 5)              if (count < 5)
545                {                {
546                  count = 0;                  count = 0;
547                  for (int x = xbegin; x < xend; ++x)                  for (int x1 = xbegin; x1 < xend; ++x1)
548                    if (check_[x + n_] == x && x != terror_)                    if (check_[x1 + n_] == x1 && x1 != terror_)
549                      {                      {
550                        message += (!count++) ? ", expecting " : " or ";                        message += (!count++) ? ", expecting " : " or ";
551                        message += name_[x];                        message += name_[x1];
552                      }                      }
553                }                }
554            }            }
# Line 792  yy::]b4_parser_class_name[::translate_ ( Line 792  yy::]b4_parser_class_name[::translate_ (
792  {  {
793    static    static
794    const TokenNumberType    const TokenNumberType
795    translate_[] =    translate_table[] =
796    {    {
797      ]b4_translate[      ]b4_translate[
798    };    };
799    if ((unsigned) token <= user_token_number_max_)    if ((unsigned) token <= user_token_number_max_)
800      return translate_[token];      return translate_table[token];
801    else    else
802      return undef_token_;      return undef_token_;
803  }  }
# Line 844  namespace yy Line 844  namespace yy
844    
845      inline      inline
846      T&      T&
847      operator [] (unsigned index)      operator [] (unsigned i)
848      {      {
849        return seq_[index];        return seq_[i];
850      }      }
851    
852      inline      inline
853      const T&      const T&
854      operator [] (unsigned index) const      operator [] (unsigned i) const
855      {      {
856        return seq_[index];        return seq_[i];
857      }      }
858    
859      inline      inline
# Line 899  namespace yy Line 899  namespace yy
899    
900      inline      inline
901      const T&      const T&
902      operator [] (unsigned index) const      operator [] (unsigned i) const
903      {      {
904        return stack_[range_ - index];        return stack_[range_ - i];
905      }      }
906    
907    private:    private:

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

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