summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-06 18:53:42 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-06 18:53:42 -0800
commit0771dd0e1a143c17920d65d5de8d010aa433ce1c (patch)
tree1e6ea87bf5b2673bf810db502050e55d66a95f97 /src/main.c
parentf32cb9a129ebf1755ea300cf311f487c5b9f0f04 (diff)
add comments
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8db3f77..bbe725c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);