scl/src/main.c

18 lines
328 B
C
Raw Normal View History

2024-09-28 09:31:23 -04:00
#include <stdio.h>
#include "include/token.h"
#include "include/util.h"
2024-10-07 11:48:53 -04:00
#include "include/lexer.h"
2024-09-28 09:31:23 -04:00
int main(int argc, char** argv) {
2024-10-07 11:48:53 -04:00
char* text = malloc(5);
text = "aa11";
2024-10-07 11:48:53 -04:00
Lexer* lexer = lexer_init(text);
lexer_lex(lexer);
printf("%s\n", token_to_str(lexer->tokens[0], 0));
lexer_destroy(lexer);
2024-09-28 09:31:23 -04:00
}