initial commit

This commit is contained in:
2026-04-12 19:22:07 +02:00
commit 65521e4df1
10 changed files with 457 additions and 0 deletions

24
src/main.c Normal file
View File

@@ -0,0 +1,24 @@
#include <stdio.h> // for now
#include "lexer.h"
int main(int argc, char** argv) {
// uhh uhhh uhhhhh
const char* code = "local a = 5;";
noom_uint_t pos = 0;
noomL_Token token;
while (1) {
noomL_lex(code, pos, &token);
printf("%d ", token.type);
for (noom_uint_t i = 0; i < token.length; i++) putchar((code + token.offset)[i]);
putchar('\n');
pos += token.length;
if (token.type == NOOML_TOKEN_EOF) break;
}
return 0;
}