]> git.saurik.com Git - bison.git/blobdiff - src/gram.h
* src/gram.h (rule_t): Rename `number' as `user_number'.
[bison.git] / src / gram.h
index 087583ade78f0a759d2f53018812a39a98465f64..024501e3f07da7c41e7f01c5f2cdfd79ea8f5b85 100644 (file)
@@ -1,5 +1,5 @@
 /* Data definitions for internal representation of bison's input,
-   Copyright 1984, 1986, 1989, 1992, 2001, 2002
+   Copyright (C) 1984, 1986, 1989, 1992, 2001, 2002
    Free Software Foundation, Inc.
 
    This file is part of Bison, the GNU Compiler Compiler.
@@ -118,6 +118,10 @@ typedef struct rule_s
 {
   /* The number of the rule in the source.  It is usually the index in
      RULES too, except if there are useless rules.  */
+  short user_number;
+
+  /* The index in RULES.  Usually the rule number in the source,
+     except if some rules are useless.  */
   short number;
 
   bucket *lhs;