Update ast interface

This commit is contained in:
2026-04-29 11:24:42 +02:00
parent 9035cc639c
commit e09bd72441
3 changed files with 29 additions and 15 deletions
+3 -3
View File
@@ -11,7 +11,7 @@
typedef struct {
/** @brief The name of the module being imported. */
Token module_name;
const char* module_name;
/** @brief Whether the import is public or not. */
bool is_public;
@@ -53,7 +53,7 @@ struct TypeExpression{
*/
typedef struct {
/** @brief The name of the alias. */
Token name;
const char* name;
/** @brief The value of the alias. */
TypeExpression value;
@@ -65,7 +65,7 @@ typedef struct {
*/
typedef struct {
/** @brief The name of the module. */
Token name;
const char* name;
/** @brief The list of imports in the module. */
ImportDeclaration* imports;