Add public imports

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-25 15:28:33 +02:00
parent 63dd5fa5c9
commit a6bdadac0c
3 changed files with 37 additions and 1 deletions
+5 -1
View File
@@ -4,11 +4,15 @@
#ifndef AST_H
#define AST_H
#include <stdbool.h>
#include <stddef.h>
typedef struct {
/// @brief The name of the module being imported.
char* module_name;
/// @brief Whether the import is public or not.
bool is_public;
} ImportDeclaration;
/**
@@ -21,7 +25,7 @@ typedef struct {
/// @brief The list of imports in the module.
ImportDeclaration* imports;
/// @brief The number of imports in the module.
size_t import_count;
} Module;