slowly writing a lexer, literally not functional lmao
This commit is contained in:
10
src/sylt/main.c
Normal file
10
src/sylt/main.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user