about summary refs log tree commit diff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 36cdf5b..0d69855 100644
--- a/src/main.c
+++ b/src/main.c
@@ -7,6 +7,9 @@
 #include <stdlib.h>
 #include <stdnoreturn.h>
 
+#include "cccl.h"
+#include "platform/getch.h"
+
 
 const s8 *program_name;
 
@@ -35,6 +38,7 @@ noreturn void usage(bool full)
 int main(i32 argc, s8 **argv)
 {
     program_name = argv[0];
+    getch_init();
 
     i32 ch;
     while ((ch = getopt_long(argc, argv, "h", long_options, NULL)) != EOF)
@@ -52,5 +56,10 @@ int main(i32 argc, s8 **argv)
     if (argv[optind] == NULL)
         usage(false);
 
+    cccl_init(argv[optind]);
+        cccl_read();
+        cccl_run();
+    cccl_free();
+
     return 0;
 }