Implement String structure and update Location/Token to use it

This commit is contained in:
2026-04-25 14:17:17 +02:00
parent 902e2f0325
commit 116bdecafe
9 changed files with 73 additions and 35 deletions
+1 -5
View File
@@ -41,11 +41,7 @@ typedef struct {
TokenType token;
/// @brief The textual representation of a token.
/// Note that this is not necessarily null-terminated.
char* text;
/// @brief The length of the `text` string.
size_t text_length;
String text;
/// @brief The location of the token.
Location location;