aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/cc/cc.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-21 18:53:23 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-21 18:53:23 -0700
commit7d2a1280cd4321d2a3b2fff0b2413085347a7b4d (patch)
tree994c9ebac9c29ff2e5b833ce514d014ca9cdb8b7 /sys/cmd/cc/cc.c
parenta9e3c42ac5696c56adaffbb4007e9d969563337b (diff)
feat: prototype of ast stmt and decl implementations
Diffstat (limited to 'sys/cmd/cc/cc.c')
-rw-r--r--sys/cmd/cc/cc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/cmd/cc/cc.c b/sys/cmd/cc/cc.c
index fcb9217..cf479f8 100644
--- a/sys/cmd/cc/cc.c
+++ b/sys/cmd/cc/cc.c
@@ -297,9 +297,7 @@ compile(byte *path)
.col = 1,
};
- while (tok = lex(&C.lxr), tok.kind > Aeof) {
- // puttok(tok);
- }
+ parse(&C.psr, &C.lxr);
return tok.kind != Anil;
}
@@ -350,3 +348,4 @@ main(int argc, byte *argv[])
exit(0);
}
+