Implementando a symbol_table
[toypasc.git] / symbol_table.c
blobc697495f062d00f3c09ec928b8123f01c514a40a
1 #include <string.h>
2 #include "symbol_table.h"
4 void
5 symbol_table_destroy(Symbol * table)
7 Symbol * temp;
9 while(table->next != NULL){
11 table
17 char *
18 symbol_table_dump(void)
25 Symbol *
26 symbol_insert(Symbol * table, char const * name, int type)
29 Symbol * symbol = (Symbol *) malloc (sizeof(Symbol));
30 symbol->next = table;
31 strcpy (symbol->name,name);
32 symbol->type = type;
33 return symbol;
37 Symbol *
38 symbol_lookup(char const * name)
45 int
46 symbol_exists(char const * name)