Lines Matching refs:symbol
0 /* Symbol table manager for Bison.
35 static symbol **symbols_sorted = NULL;
41 symbol *errtoken = NULL;
42 symbol *undeftoken = NULL;
43 symbol *endtoken = NULL;
44 symbol *accept = NULL;
45 symbol *startsymbol = NULL;
58 | Create a new symbol, named TAG. |
61 static symbol *
64 symbol *res = xmalloc (sizeof *res);
71 yacc_at (loc, _("POSIX Yacc forbids dashes in symbol names: %s"),
116 | Print a symbol. |
128 symbol_print (symbol *s, FILE *f)
150 symbol_redeclaration (symbol *s, const char *what, location first,
177 symbol_type_set (symbol *sym, uniqstr type_name, location loc)
194 symbol_destructor_set (symbol *sym, code_props const *destructor)
222 symbol_destructor_get (symbol const *sym)
224 /* Per-symbol %destructor. */
251 symbol_printer_set (symbol *sym, code_props const *printer)
277 symbol_printer_get (symbol const *sym)
279 /* Per-symbol %printer. */
306 symbol_precedence_set (symbol *sym, int prec, assoc a, location loc)
328 symbol_class_set (symbol *sym, symbol_class class, location loc, bool declaring)
332 complain_at (loc, _("symbol %s redefined"), sym->tag);
346 warn_at (loc, _("symbol %s redeclared"), sym->tag);
357 symbol_user_token_number_set (symbol *sym, int user_token_number, location loc)
389 symbol_check_defined (symbol *sym)
395 _("symbol %s is used, but is not defined as a token and has no rules"),
412 symbol_make_alias (symbol *sym, symbol *str, location loc)
415 warn_at (loc, _("symbol %s used more than once as a literal string"),
418 warn_at (loc, _("symbol %s given more than one literal string"),
439 symbol_check_alias_consistency (symbol *this)
441 symbol *sym = this;
442 symbol *str = this->alias;
444 /* Check only the symbol in the symbol-string pair. */
495 | Assign a symbol number, and write the definition of the token name |
500 symbol_pack (symbol *this)
520 user_token_number_redeclaration (int num, symbol *first, symbol *second)
524 second step, via a traversal of the symbol table sorted on tag.
530 symbol* tmp = first;
548 symbol_translation (symbol *this)
575 | Symbol and semantic type hash tables. |
578 /* Initial capacity of symbol and semantic type hash table. */
585 hash_compare_symbol (const symbol *m1, const symbol *m2)
611 hash_symbol (const symbol *m, size_t tablesize)
637 | Create the symbol hash table. |
657 | Find the symbol named KEY, and return it. If it does not exist |
661 symbol *
664 symbol probe;
665 symbol *entry;
708 | Find the symbol named KEY, and return it. If it does not exist |
712 symbol *
736 symbol *
739 /* Incremented for each generated symbol. */
743 symbol *sym;
753 symbol_is_dummy (const symbol *sym)
778 symbols_cmp (symbol const *a, symbol const *b)
786 return symbols_cmp (*(symbol * const *)a, *(symbol * const *)b);
834 symbol *this = symbols[i];
855 symbol *this = symbols[i];
875 | Assign symbol numbers, and write definition of token names into |
915 _("the start symbol %s is undefined"),
919 _("the start symbol %s is a token"),