diff options
author | ubq323 <ubq323@ubq323.website> | 2024-06-22 11:51:59 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2024-06-22 11:51:59 +0100 |
commit | ba0eb2042cefce45efa5c1ad294f05d0122815ee (patch) | |
tree | 1bd6f747538b315e5091eea6a773b7401db16929 /com.c | |
parent | 24f5d4f4456fce3a9e8cd5a7c1225facd60ae979 (diff) |
fix circular dependencies
Diffstat (limited to 'com.c')
-rw-r--r-- | com.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 }, |