From 7b544da27cf99dd1de9c25f59c76d924e1878e31 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Thu, 5 Jan 2023 19:42:29 -0800 Subject: silence warnings --- src/main.c | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 3dbbf86..2c192cb 100644 --- a/src/main.c +++ b/src/main.c @@ -21,28 +21,6 @@ int main(int argc, char **argv) { /* t = lexer_collect_next(lexer); */ /* } */ - /* TODO: TEST REPL POSSIBILITY */ - /* printf("Welcome to the NXS REPL.\n"); */ - - /* char *buf = malloc(2); */ - /* size_t size = 2; */ - /* lexer_t *lexer; */ - /* lexer = init_lexer("a"); */ - /* token_t *t; */ - /* while (true) { */ - /* printf("> "); */ - /* fflush(stdout); */ - /* getline(&buf, &size, stdin); */ - /* strcat(buf, "\0"); */ - /* lexer_reset(lexer, buf); */ - /* t = lexer_collect_next(lexer); */ - /* while (!lexer->finished) { */ - /* printf("%d\t%s\n", t->type, t->value); */ - /* t = lexer_collect_next(lexer); */ - /* printf("lmao\n"); */ - /* } */ - /* } */ - /* DONE: TEST PARSER, VISITOR, PRINTER (self evaluating types) */ /* lexer_t *lexer = init_lexer("\"hello world\""); */ /* parser_t *parser = init_parser(lexer); */ @@ -108,5 +86,19 @@ int main(int argc, char **argv) { ast_t *res = root->subnodes[0]; print(res); + /* TODO: TEST REPL POSSIBILITY */ + /* printf("Welcome to the NXS REPL.\n"); */ + + /* char *buf = malloc(2); */ + /* size_t size = 2; */ + /* lexer_t *lexer; */ + /* lexer = init_lexer("a"); */ + /* while (true) { */ + /* printf("> "); */ + /* fflush(stdout); */ + /* getline(&buf, &size, stdin); */ + /* lexer_reset(lexer, buf); */ + /* } */ + return 0; } -- cgit