/[bison]/bison/src/reader.c
ViewVC logotype

Diff of /bison/src/reader.c

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

revision 1.178 by flo, Tue May 14 00:25:23 2002 UTC revision 1.179 by akim, Sun May 26 18:39:05 2002 UTC
# Line 1693  token_translations_init (void) Line 1693  token_translations_init (void)
1693          max_user_token_number = this->user_token_number;          max_user_token_number = this->user_token_number;
1694      }      }
1695    
1696    token_translations = XCALLOC (token_number_t, max_user_token_number + 1);    token_translations = XCALLOC (symbol_number_t, max_user_token_number + 1);
1697    
1698    /* Initialize all entries for literal tokens to 2, the internal    /* Initialize all entries for literal tokens to 2, the internal
1699       token number for $undefined., which represents all invalid       token number for $undefined., which represents all invalid
# Line 1762  packgram (void) Line 1762  packgram (void)
1762        p = p->next;        p = p->next;
1763        while (p && p->sym)        while (p && p->sym)
1764          {          {
1765            /* item_number_t = token_number_t.            /* item_number_t = symbol_number_t.
1766               But the former needs to contain more: negative rule numbers. */               But the former needs to contain more: negative rule numbers. */
1767            ritem[itemno++] = token_number_as_item_number (p->sym->number);            ritem[itemno++] = symbol_number_as_item_number (p->sym->number);
1768            /* A rule gets by default the precedence and associativity            /* A rule gets by default the precedence and associativity
1769               of the last token in it.  */               of the last token in it.  */
1770            if (p->sym->class == token_sym)            if (p->sym->class == token_sym)

Legend:
Removed from v.1.178  
changed lines
  Added in v.1.179

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