18 lines
495 B
C
18 lines
495 B
C
#include <stdio.h>
|
|
#include "table_symboles.h"
|
|
|
|
int main() {
|
|
|
|
Table_Symboles table;
|
|
initialise_table(&table);
|
|
|
|
add_symbole_top(&table, "var1" , TYPE_INT, INITIALISED);
|
|
add_symbole_top(&table, "var1" , TYPE_INT, INITIALISED);
|
|
|
|
add_symbole_top(&table, "var2" , TYPE_INT, INITIALISED);
|
|
add_symbole_bottom(&table, "varTemp1" , TYPE_CONST_INT, INITIALISED);
|
|
add_symbole_bottom(&table, "varTemp2" , TYPE_INT, NOT_INITIALISED);
|
|
|
|
print_table(&table);
|
|
return 0;
|
|
}
|