diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-01-29 04:25:43 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-01-29 04:25:43 +0330 |
commit | f8019d33f61807de5369d78de6216427c56500dd (patch) | |
tree | ec19302852093979f8ef72394ec575fd6877443c | |
parent | f090d484ab9425be9d7e4e3f42ba4224dde35c2d (diff) |
make a todo to remember
-rw-r--r-- | src/compiler/ast-tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/ast-tree.c b/src/compiler/ast-tree.c index 2c034d1..34147b1 100644 --- a/src/compiler/ast-tree.c +++ b/src/compiler/ast-tree.c @@ -297,6 +297,8 @@ AstTreeRoot *makeAstTree(ParserNode *parsedRoot) { variable->name_begin = node_metadata->name->str_begin; variable->name_end = node_metadata->name->str_end; + // TODO: set type some how + if (!pushVariable(&root->variables, variable)) { astTreeVariableDelete(variable); goto RETURN_ERROR; |