diff options
author | s-over-4 | 2023-06-13 17:14:56 -0400 |
---|---|---|
committer | s-over-4 | 2023-06-13 17:14:56 -0400 |
commit | a85c68d5fa2ff2a55fe648fe84f0d7833ee5d72b (patch) | |
tree | e29e75eca5897e6aca83363006346bb04f9b6ef3 /src/main.c | |
parent | cadd9f414fada14319a5950e67721724cfd5089d (diff) |
gecc
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -11,9 +11,9 @@ int main(int argc, char* argv[]) { long fsource_size; char *source; - fsource = fopen("examples/hello.halk", "rb"); + fsource = fopen("examples/simple.halk", "rb"); if (!fsource) { - die("source file not found: %s", "examples/hello.halk"); + die("source file not found"); }; fseek(fsource, 0L, SEEK_END); @@ -46,6 +46,7 @@ int main(int argc, char* argv[]) { while ((token = lexer_get_next_token(lexer)) != NULL) { log_inf("token type: [%d]\ttoken value: [%s]", token->type, token->value); + free(token); } fclose(fsource); |