]> git.saurik.com Git - bison.git/blobdiff - src/symtab.h
Change @dircategory from "GNU programming tools" to "Software development".
[bison.git] / src / symtab.h
index 42c8ffb82a212619cfb08d52852ac16ac253dcdd..6433efcd527a7058df7910e5e1b18cd0c1018b69 100644 (file)
@@ -41,11 +41,14 @@ typedef enum
 
 
 /* Internal token numbers. */
-typedef short int symbol_number;
-#define SYMBOL_NUMBER_MAXIMUM SHRT_MAX
+typedef int symbol_number;
+#define SYMBOL_NUMBER_MAXIMUM INT_MAX
 
 
 typedef struct symbol symbol;
+
+/* When extending this structure, be sure to complete
+   symbol_check_alias_consistency.  */
 struct symbol
 {
   /* The key, name of the symbol.  */
@@ -55,13 +58,17 @@ struct symbol
 
   /* Its %type and associated printer and destructor.  */
   uniqstr type_name;
+  location type_location;
+
   char *destructor;
   location destructor_location;
+
   char *printer;
   location printer_location;
 
   symbol_number number;
-  short int prec;
+  location prec_location;
+  int prec;
   assoc assoc;
   int user_token_number;