From a8519434f058d0ab60bf7f90acc61997cb982cfa Mon Sep 17 00:00:00 2001 From: ubq323 Date: Wed, 26 Jun 2024 14:44:19 +0100 Subject: add cfunc type and rudimentary stdlib --- com.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'com.c') 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 -- cgit v1.2.3