diff options
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 }, |