@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user