summaryrefslogtreecommitdiff
path: root/com.c
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-26 14:44:19 +0100
committerubq323 <ubq323@ubq323.website>2024-06-26 14:44:19 +0100
commita8519434f058d0ab60bf7f90acc61997cb982cfa (patch)
treee1858d42805e61afbd5c6c0b9d2f3b47bc8411ee /com.c
parent20584e520dfd44393aa66350b442e8a23e46c5a3 (diff)
add cfunc type and rudimentary stdlib
Diffstat (limited to 'com.c')
-rw-r--r--com.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/com.c b/com.c
index 73d7e46..fcb4fdf 100644
--- a/com.c
+++ b/com.c
@@ -8,6 +8,7 @@
#include "ast.h"
#include "util.h"
#include "prs.h"
+#include "lib.h"
#define BYTECODE(C) (C->ch->bc)
@@ -517,6 +518,8 @@ int main(int argc, char **argv) {
th.ch = &ch;
S->th = &th;
+ load_stdlib(S);
+
return runvm(S);
}
#undef CHECK