7c7e0c3272
Co-authored-by: Copilot <copilot@github.com>
30 lines
497 B
C
30 lines
497 B
C
/**
|
|
* Holds the AST model
|
|
*/
|
|
#ifndef AST_H
|
|
#define AST_H
|
|
|
|
#include <stddef.h>
|
|
|
|
typedef struct {
|
|
/// @brief The name of the module being imported.
|
|
char* module_name;
|
|
} ImportDeclaration;
|
|
|
|
/**
|
|
* The top-level model.
|
|
* Every file matches an entire Module.
|
|
*/
|
|
typedef struct {
|
|
/// @brief The name of the module.
|
|
char* name;
|
|
|
|
/// @brief The list of imports in the module.
|
|
ImportDeclaration* imports;
|
|
|
|
/// @brief The number of imports in the module.
|
|
size_t import_count;
|
|
} Module;
|
|
|
|
#endif
|