Home | History | Annotate | Download | only in src

Lines Matching refs:symbol

34 /* Symbol classes.  */
38 token_sym, /* terminal symbol */
48 typedef struct symbol symbol;
52 struct symbol
54 /* The key, name of the symbol. */
77 /* Points to the other in the identifier-symbol pair for an alias.
79 identifier-symbol pair for an alias. */
80 symbol *alias;
88 /* `symbol->user_token_number == USER_NUMBER_ALIAS' means this symbol
97 /* Print a symbol (for debugging). */
98 void symbol_print (symbol *s, FILE *f);
100 /* Fetch (or create) the symbol associated to KEY. */
101 symbol *symbol_get (const char *key, location loc);
105 symbol *dummy_symbol_get (location loc);
107 /* Declare the new symbol SYM. Make it an alias of SYMVAL. */
108 void symbol_make_alias (symbol *sym, symbol *symval, location loc);
112 void symbol_type_set (symbol *sym, uniqstr type_name, location loc);
115 void symbol_destructor_set (symbol *sym, const char *destructor, location loc);
118 void symbol_printer_set (symbol *sym, const char *printer, location loc);
120 /* Set the PRECEDENCE associated with SYM. Ensure that SYMBOL is a
122 void symbol_precedence_set (symbol *sym, int prec, assoc a, location loc);
125 void symbol_class_set (symbol *sym, symbol_class class, location loc,
129 void symbol_user_token_number_set (symbol *sym, int user_number, location loc);
132 /* Distinguished symbols. AXIOM is the real start symbol, that used
135 extern symbol *errtoken;
136 extern symbol *undeftoken;
137 extern symbol *endtoken;
138 extern symbol *accept;
139 extern symbol *startsymbol;
144 | Symbol table. |
148 /* Create the symbol table. */
158 /* Perform various sanity checks, assign symbol numbers, and set up