summaryrefslogtreecommitdiff
path: root/com.c
diff options
context:
space:
mode:
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 },