/* PURPOSE: * SYMTAB.C: The Symbol Table. * HISTORY: * Ian D. Allen idallen@freenet.carleton.ca */ #include #include "mem.h" //FIXME-- your #include statements go here #define SYM_INIT 1 /* initial size of symbol table */ #define SYM_INCR 1 /* amount by which to grow table */ /* Static information about the symbol table. * - count of items in the table * - current maximum size of the table * - the table itself */ //FIXME-- your static declarations for the above go here /* FUNCTION: sym_init * PURPOSE: */ void sym_init(void){ //FIXME-- your code goes here } /* FUNCTION: sym_term * PURPOSE: */ void sym_term(void){ //FIXME-- your code goes here } /* FUNCTION: sym_lookup * PURPOSE: */ Symtab * sym_lookup( char *string /*IN: name of symbol to look up */ ){ //FIXME-- your code goes here } /* FUNCTION: sym_insert * PURPOSE: */ Symtab * sym_insert( char *string /*IN: name of symbol to insert */ ){ //FIXME-- your code goes here } /* FUNCTION: sym_update * PURPOSE: */ Symtab * sym_update( Symtab *symp, /*IN: location of symtab element to update */ Item *itemp /*IN: new contents */ ){ //FIXME-- your code goes here } /* FUNCTION: sym_value * PURPOSE: */ Item * sym_value( Symtab *symp /*IN: location of symtab element */ ){ //FIXME-- your code goes here } /* FUNCTION: sym_free * PURPOSE: */ void sym_free( Symtab *symp /*IN: location of symtab element */ ){ //FIXME-- your code goes here } /* FUNCTION: sym_dump * PURPOSE: */ void sym_dump( FILE *fd, /*IN: stream to dump to */ Symtab *ptr /*IN: location of symbol to dump */ ){ //FIXME-- your code goes here }