On Thu, 13 Jan 2011, Angelo Borsotti wrote: > I was having a look to the Bison sources, in particular to gram.h, where the > internal > representation of the grammar is described. This file tells that the array > RULES > holds one element for each rule, starting at index 1, which is that of an > enclosing > rule added automatically by Bison. Index 0 is unused. > However, in file gram.c, grammar_dump visits that array from index 0 > (included). > Is this an error?
No. That documentation means to describe rule numbers when stored as item numbers. It does not mean to describe indices of the rules array.
