Lines Matching refs:symbol

23  * \brief Manipulating ::symbol.
52 typedef struct symbol symbol;
56 struct symbol
58 /** The key, name of the symbol. */
74 /** Any \c \%destructor declared specifically for this symbol.
76 Access this field only through <tt>symbol</tt>'s interface
77 functions. For example, if <tt>symbol::destructor = NULL</tt>, a
83 /** Any \c \%printer declared specifically for this symbol.
85 Access this field only through <tt>symbol</tt>'s interface functions.
86 \sa symbol::destructor */
95 /* Points to the other in the symbol-string pair for an alias.
96 Special value USER_NUMBER_HAS_STRING_ALIAS in the symbol half of the
97 symbol-string pair for an alias. */
98 symbol *alias;
106 /* `symbol->user_token_number == USER_NUMBER_HAS_STRING_ALIAS' means
107 this symbol has a literal string alias. For instance, `%token foo
115 /** Print a symbol (for debugging). */
116 void symbol_print (symbol *s, FILE *f);
118 /** Fetch (or create) the symbol associated to KEY. */
119 symbol *symbol_from_uniqstr (const uniqstr key, location loc);
121 /** Fetch (or create) the symbol associated to KEY. */
122 symbol *symbol_get (const char *key, location loc);
127 symbol *dummy_symbol_get (location loc);
130 bool symbol_is_dummy (const symbol *sym);
134 * symbol number, and type from \c sym to \c str.
136 void symbol_make_alias (symbol *sym, symbol *str, location loc);
141 void symbol_type_set (symbol *sym, uniqstr type_name, location loc);
144 void symbol_destructor_set (symbol *sym, code_props const *destructor);
148 code_props const *symbol_destructor_get (symbol const *sym);
151 void symbol_printer_set (symbol *sym, code_props const *printer);
155 code_props const *symbol_printer_get (symbol const *sym);
159 Ensure that \a symbol is a terminal.
161 void symbol_precedence_set (symbol *sym, int prec, assoc a, location loc);
164 void symbol_class_set (symbol *sym, symbol_class class, location loc,
168 void symbol_user_token_number_set (symbol *sym, int user_number, location loc);
172 extern symbol *errtoken;
174 extern symbol *undeftoken;
176 extern symbol *endtoken;
177 /** The genuine start symbol.
179 $accept: start-symbol $end */
180 extern symbol *accept;
182 /** The user start symbol. */
183 extern symbol *startsymbol;
195 this file. \sa symbol::destructor */
224 /** Create the symbol and semantic type tables. */
237 Perform various sanity checks, assign symbol numbers, and set up