Skip to content

Commit d2f595b

Browse files
marcomarquesdcBeyondMagic
authored andcommitted
Update symbol_table.h
tabela de símbolos precisa saber qual nó da AST criou aquele símbolo.
1 parent a8d108c commit d2f595b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/symbol_table.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ typedef struct
1010
int is_array;
1111
size_t array_size;
1212
TypeKind element_type;
13+
struct AstStmt *stmt_ref;
1314
} Symbol;
14-
15+
int symbol_table_add(SymbolTable *table, const char *name, TypeKind type, int is_array, size_t array_size, TypeKind element_type, struct AstStmt *stmt_ref);
1516
typedef struct
1617
{
1718
Symbol *items;

0 commit comments

Comments
 (0)