first commit
Build and test / build (push) Failing after 16s

This commit is contained in:
2025-01-18 23:15:47 +01:00
commit 8df331445b
34 changed files with 5255073 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
#ifndef UTILS_H
#define UTILS_H
#include "parser.h"
size_t get_line_count(char *filepath) {
char *content = read_file_contents(filepath);
lexer_t *lexer = lexer_new();
lexer = lexer_parse(lexer, content);
size_t result = lexer->lines;
lexer_delete(lexer);
free(content);
return result;
}
#endif