rename types.zig to analysis.zig
This commit is contained in:
parent
2cb328c3f9
commit
c3d3486163
3 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ const std = @import("std");
|
|||
const ast = @import("ast.zig");
|
||||
const llvm = @import("llvm.zig");
|
||||
const comp = @import("comp_ctx.zig");
|
||||
const types = @import("types.zig");
|
||||
// const analysis = @import("analysis.zig");
|
||||
|
||||
fn sliceify(non_slice: ?[*]const u8) []const u8 {
|
||||
if (non_slice == null) return "";
|
||||
|
|
|
@ -4,7 +4,7 @@ const scanners = @import("scanners.zig");
|
|||
const parsers = @import("parsers.zig");
|
||||
const printer = @import("ast_printer.zig");
|
||||
const codegen = @import("codegen.zig");
|
||||
const types = @import("types.zig");
|
||||
const analysis = @import("analysis.zig");
|
||||
|
||||
pub const Result = enum {
|
||||
Ok,
|
||||
|
@ -50,7 +50,7 @@ pub fn run(allocator: *std.mem.Allocator, slice: []const u8) !Result {
|
|||
std.debug.warn("parse tree\n");
|
||||
printer.printNode(root, 0);
|
||||
|
||||
var solver = types.TypeSolver.init(allocator);
|
||||
var solver = analysis.TypeSolver.init(allocator);
|
||||
var ctx = try solver.pass(root);
|
||||
|
||||
std.debug.warn("symbol table\n");
|
||||
|
|
Loading…
Reference in a new issue