We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1213b0a commit c3700deCopy full SHA for c3700de
1 file changed
src/main.c
@@ -100,6 +100,8 @@ static void repl() {
100
}
101
102
// --- Pipeline: AST -> Bytecode -> VM ---
103
+ optimizeAST(statements);
104
+
105
ObjFunction* function = newFunction();
106
push(&vm, OBJ_VAL(function));
107
@@ -150,6 +152,7 @@ static char *readFile(const char *path) {
150
152
151
153
154
#include "type_checker.h"
155
+#include "optimizer.h"
156
157
static void runFile(const char *path) {
158
char *source = readFile(path);
@@ -208,7 +211,10 @@ static void runFile(const char *path) {
208
211
exit(65);
209
212
210
213
- // --- Pipeline Step 2: Type Checking ---
214
+ // --- Pipeline Step 2: Optimization ---
215
216
217
+ // --- Pipeline Step 3: Type Checking ---
218
TypeChecker checker;
219
initTypeChecker(&checker);
220
0 commit comments