|
Berkeley YACC
1993-03-03
Berkeley's version of Yet Another Compiler Compiler
|
#include "defs.h"
Include dependency graph for symtab.c:Go to the source code of this file.
Macros | |
| #define | TABLE_SIZE 1024 |
Functions | |
| int | hash (char *name) |
| bucket * | make_bucket (char *name) |
| bucket * | lookup (char *name) |
| create_symbol_table () | |
| free_symbol_table () | |
| free_symbols () | |
Variables | |
| bucket ** | symbol_table |
| bucket * | first_symbol |
| bucket * | last_symbol |
| #define TABLE_SIZE 1024 |
Definition at line 7 of file symtab.c.
Referenced by create_symbol_table(), and hash().
| create_symbol_table | ( | ) |
Definition at line 83 of file symtab.c.
References bucket::class, hash(), bucket::index, make_bucket(), MALLOC, no_space(), TABLE_SIZE, and TERM.
Referenced by reader().
Here is the call graph for this function:
Here is the caller graph for this function:| free_symbol_table | ( | ) |
| free_symbols | ( | ) |
Definition at line 110 of file symtab.c.
References FREE, and bucket::next.
Referenced by reader().
Here is the caller graph for this function:| int hash | ( | char * | name | ) |
Definition at line 16 of file symtab.c.
References TABLE_SIZE.
Referenced by create_symbol_table(), and lookup().
Here is the caller graph for this function:| bucket* lookup | ( | char * | name | ) |
Definition at line 60 of file symtab.c.
References hash(), bucket::link, make_bucket(), bucket::name, and bucket::next.
Here is the call graph for this function:| bucket* make_bucket | ( | char * | name | ) |
Definition at line 33 of file symtab.c.
References bucket::assoc, bucket::index, bucket::link, MALLOC, bucket::name, bucket::next, no_space(), bucket::prec, strcpy(), bucket::tag, TOKEN, UNDEFINED, UNKNOWN, and bucket::value.
Referenced by create_symbol_table(), and lookup().
Here is the call graph for this function:
Here is the caller graph for this function:| bucket* first_symbol |
Definition at line 11 of file symtab.c.
Referenced by check_symbols(), pack_names(), and pack_symbols().
| bucket* last_symbol |
Definition at line 12 of file symtab.c.
Referenced by insert_empty_rule().