aboutsummaryrefslogtreecommitdiffstats
path: root/clox/src/compiler.h
diff options
context:
space:
mode:
authorGravatar Tom Willemse2021-08-16 22:17:40 -0700
committerGravatar Tom Willemse2021-08-16 22:17:40 -0700
commit0b89bd5de09c6a93d25768b54efb426732c8797d (patch)
treeabc3ee5dbe15ff4dad11592c1f9ebc273aac7687 /clox/src/compiler.h
parent350a5cc4e3e6c19c2e01d9150b147b696dd13aea (diff)
downloadcrafting-interpreters-0b89bd5de09c6a93d25768b54efb426732c8797d.tar.gz
crafting-interpreters-0b89bd5de09c6a93d25768b54efb426732c8797d.zip
Chapter 17.1 - 17.4
Diffstat (limited to 'clox/src/compiler.h')
-rw-r--r--clox/src/compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/clox/src/compiler.h b/clox/src/compiler.h
index 49a45b0..c4376a5 100644
--- a/clox/src/compiler.h
+++ b/clox/src/compiler.h
@@ -1,6 +1,8 @@
#ifndef COMPILER_H
#define COMPILER_H
-void compile(const char *source);
+#include "vm.h"
+
+bool compile(const char *source, Chunk *chunk);
#endif