wip: working on extern

- Ref: move extern header into common scope
- Feat: add extern symbols descriptors
- Feat: add `is_out` flag in declaration node
This commit is contained in:
samsonium
2026-11-02 19:24:09 +03:00
parent 8975d2fece
commit 6a035a71eb
3 changed files with 74 additions and 16 deletions
+2
View File
@@ -3,6 +3,7 @@
#include <compiler/fzl_reader.h>
#include <compiler/fzl_token.h>
#include <stdbool.h>
#include <stddef.h>
// AST node type
@@ -106,6 +107,7 @@ typedef struct fzl_node
{
fzl_token_t *type;
struct fzl_node *identifier;
bool is_out;
} var;
// Conditional blocks
-16
View File
@@ -1,16 +0,0 @@
#ifndef FZL_EXTERN_H
#define FZL_EXTERN_H
// Library symbol descriptor
typedef struct
{
//
} fzl_extern_item_t;
// External library descriptor
typedef struct
{
//
} fzl_extern_lib_t;
#endif // FZL_EXTERN_H