summaryrefslogtreecommitdiff
path: root/com.c
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-06-22 11:51:59 +0100
committerubq323 <ubq323@ubq323.website>2024-06-22 11:51:59 +0100
commitba0eb2042cefce45efa5c1ad294f05d0122815ee (patch)
tree1bd6f747538b315e5091eea6a773b7401db16929 /com.c
parent24f5d4f4456fce3a9e8cd5a7c1225facd60ae979 (diff)
fix circular dependencies
Diffstat (limited to 'com.c')
-rw-r--r--com.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/com.c b/com.c
index 3e97c55..4f377ce 100644
--- a/com.c
+++ b/com.c
@@ -3,6 +3,10 @@
#include <stdio.h>
#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 },