jorts/src/compiler.zig

16 lines
380 B
Zig

const std = @import("std");
const scanner = @import("new_scanner.zig");
const Allocator = std.mem.Allocator;
pub const Compiler = struct {
src: []const u8,
allocator: *Allocator,
pub fn init(allocator: *Allocator, source: []const u8) Compiler {
return Compiler{ .src = source, .allocator = allocator };
}
pub fn compile(self: *Compiler) void {}
};