Tabela de simbolos... Construção das funções.
[toypasc.git] / symbol_table.h
blobf7cc7db4cc019dd40dc2163bf9c14f59f72ff4fb
1 #ifndef SYMBOL_TABLE_H
2 #define SYMBOL_TABLE_H
4 typedef struct _symbol {
5 char *name;
6 int type;
8 union {
9 int integer;
10 int boolean;
11 char character;
12 } value;
14 struct _symbol *next;
15 } Symbol;
17 Symbol *symbol_insert(Symbol *table, char const *name, int type);
18 Symbol *symbol_lookup(Symbol *table, char const *name);
19 void symbol_table_destroy(Symbol *table);
20 void symbol_print(Symbol *symbol);
21 void symbol_table_dump(Symbol *table);
23 #endif // SYMBOL_TABLE_H