From a85c68d5fa2ff2a55fe648fe84f0d7833ee5d72b Mon Sep 17 00:00:00 2001 From: s-over-4 Date: Tue, 13 Jun 2023 17:14:56 -0400 Subject: gecc --- src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 3b346de..37f37bf 100644 --- a/src/main.c +++ b/src/main.c @@ -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); -- cgit v1.2.3