summary refs log tree commit diff
path: root/src/main.zig
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-23 23:30:54 +0100
committerBaitinq <manuelpalenzuelamerino@gmail.com>2025-01-23 23:30:54 +0100
commit401272bbd08063273d86931040ec2a3545bef877 (patch)
tree4b990cfad3a9687f30cf252879133067ee4d76be /src/main.zig
parentMisc: Add llvm zig bindings and dependency (diff)
downloadinterpreter-401272bbd08063273d86931040ec2a3545bef877.tar.gz
interpreter-401272bbd08063273d86931040ec2a3545bef877.tar.bz2
interpreter-401272bbd08063273d86931040ec2a3545bef877.zip
Misc: Add example llvm code
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.zig b/src/main.zig
index 94105b0..713f6b8 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -2,6 +2,7 @@ const std = @import("std");
 const tokenizer = @import("tokenizer.zig");
 const parser = @import("parser.zig");
 const evaluator = @import("evaluator.zig");
+const codegen = @import("codegen.zig");
 
 pub fn main() !void {
     const stdout = std.io.getStdOut().writer();
@@ -22,6 +23,8 @@ pub fn main() !void {
 
     const source_evaluator = try evaluator.Evaluator.init(arena.allocator());
 
+    codegen.CodeGen.generate();
+
     if (std.mem.eql(u8, path, "-i")) {
         while (true) {
             try stdout.print("> ", .{});