Changed size_t to unsigned int

This commit is contained in:
2024-10-02 03:39:38 +10:00
parent 7b453bc35f
commit 71c065a6c4
19 changed files with 93 additions and 90 deletions

View File

@@ -5,17 +5,17 @@
//lexers are bound to a string of code
typedef struct {
size_t start; //start of the current token
size_t current; //current position of the lexer
size_t line; //track this for error handling
unsigned int start; //start of the current token
unsigned int current; //current position of the lexer
unsigned int line; //track this for error handling
const char* source;
} Toy_Lexer;
//tokens are intermediaries between lexers and parsers
typedef struct {
Toy_TokenType type;
size_t length;
size_t line;
unsigned int length;
unsigned int line;
const char* lexeme;
} Toy_Token;