X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/9e41ba026ab2e6c7e3a56c4a092a48059be05bc4..4323e0dac386d777d070c68564f1c0041b06935d:/src/symtab.h
diff --git a/src/symtab.h b/src/symtab.h
index 93778008..49eebd4c 100644
--- a/src/symtab.h
+++ b/src/symtab.h
@@ -92,8 +92,14 @@ struct symbol
/** The location of its first occurrence. */
location location;
- /** Its \c \%type. */
+ /** Its \c \%type.
+
+ Beware that this is the type_name as was entered by the user,
+ including silly things such as "]" if she entered "%token <]> t".
+ Therefore, when outputting type_name to M4, be sure to escape it
+ into "@}". See quoted_output for instance. */
uniqstr type_name;
+
/** Its \c \%type's location. */
location type_location;
@@ -101,9 +107,9 @@ struct symbol
symbol.
Access this field only through symbol's interface functions. For
- Example, if symbol::destructor = NULL (resp. symbol::printer
+ example, if symbol::destructor = NULL (resp. symbol::printer
= NULL), a default \c \%destructor (resp. \%printer) or a per-type
- \c symbol_destructor_printer_get will compute the corect one. */
+ \c symbol_destructor_printer_get will compute the correct one. */
code_props props[CODE_PROPS_SIZE];
symbol_number number;