refactor-generic-array #9

Merged
laentropia merged 7 commits from refactor-generic-array into main 2026-04-30 10:05:21 -06:00
Showing only changes of commit 855d683005 - Show all commits

View File

@@ -53,6 +53,29 @@ typedef struct ASTNode {
} data; } data;
} ASTNode; } ASTNode;
typedef struct {
bool is_valid;
union {
LexerErr err;
ArrayList *arr;
};
} TokenizeResult;
typedef struct {
bool is_valid;
union {
LexerErr err;
ASTNode node;
};
} ASTNodeResult;
typedef struct {
bool is_valid;
union {
LexerErr err;
int64_t number;
};
} I64Result;
// I prefer ot have a dynamic array for storing the "tokens" // I prefer ot have a dynamic array for storing the "tokens"
typedef struct { typedef struct {
size_t len; size_t len;