add if statements

This commit is contained in:
2025-06-03 13:24:12 +01:00
parent ef61c391a1
commit 18993a5d7e
16 changed files with 148 additions and 26 deletions

View File

@@ -1,9 +1,10 @@
#include "token.h"
#include "../string/string.h"
#include <stdlib.h>
#include "../memory.h"
Token *create_token(TokenType type, int line, int column, char *value) {
Token *token = malloc(sizeof(Token));
Token *token = checked_malloc(sizeof(Token));
token->type = type;
token->line = line;
token->column = column;