From ba0eb2042cefce45efa5c1ad294f05d0122815ee Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 22 Jun 2024 11:51:59 +0100 Subject: fix circular dependencies --- com.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'com.c') diff --git a/com.c b/com.c index 3e97c55..4f377ce 100644 --- a/com.c +++ b/com.c @@ -3,6 +3,10 @@ #include #include "com.h" +#include "mem.h" +#include "chunk.h" +#include "ast.h" +#include "read.h" #define BYTECODE(C) (C->ch->bc) @@ -146,6 +150,10 @@ void arith_form(Compiler *C, AstVec l, Op op) { chunk_wbc(C, op); } +// void fn_form(Compiler *C, AstVec l, Op op) { +// Compiler subcompiler = compiler_new(C); + + static BuiltinForm builtin_forms[] = { { "puts", 1, false, single_form, OP_PUTS }, { "print", 1, false, single_form, OP_PRINT }, -- cgit v1.2.3