summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-05 19:42:29 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-05 19:42:29 -0800
commit7b544da27cf99dd1de9c25f59c76d924e1878e31 (patch)
tree9ab3c2b4274fd2ed11701c2cd7309b7e1150f1f0 /src/main.c
parent75bffac83e8e8a30ae7643a5d830e580d1ffee65 (diff)
silence warnings
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c36
1 files changed, 14 insertions, 22 deletions
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;
}