diff options
author | Preston Pan <preston@nullring.xyz> | 2023-01-06 18:53:42 -0800 |
---|---|---|
committer | Preston Pan <preston@nullring.xyz> | 2023-01-06 18:53:42 -0800 |
commit | 0771dd0e1a143c17920d65d5de8d010aa433ce1c (patch) | |
tree | 1e6ea87bf5b2673bf810db502050e55d66a95f97 /src/main.c | |
parent | f32cb9a129ebf1755ea300cf311f487c5b9f0f04 (diff) |
add comments
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -131,6 +131,7 @@ int main(int argc, char **argv) { printf("TOO FEW ARGUMENTS.\n"); exit(1); } + char *filename = argv[1]; char *buffer = 0; long length; @@ -148,6 +149,12 @@ int main(int argc, char **argv) { } if (buffer) { + /* lexer_t *lexer = init_lexer(buffer); */ + /* token_t *t = lexer_collect_next(lexer); */ + /* while (t != NULL) { */ + /* printf("%d: %s\n", t->type, t->value); */ + /* t = lexer_collect_next(lexer); */ + /* } */ /* printf("%s", buffer); */ lexer_t *lexer = init_lexer(buffer); parser_t *parser = init_parser(lexer); |