slowly writing a lexer, literally not functional lmao

This commit is contained in:
SpookyDervish
2025-12-26 12:28:45 +11:00
parent 897cee96b3
commit d4ac0be316
7 changed files with 156 additions and 0 deletions

10
src/sylt/main.c Normal file
View File

@@ -0,0 +1,10 @@
#include "lexer.h"
#include <stdio.h>
#include "../file_utils.h"
int main() {
Lexer lexer = initLexer("const x, y = 1, 3\n");
printf(nextToken(&lexer).literal);
return 0;
}