rename types.zig to analysis.zig

This commit is contained in:
Luna 2019-09-27 00:00:06 -03:00
parent 2cb328c3f9
commit c3d3486163
3 changed files with 3 additions and 3 deletions

View file

@ -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 "";

View file

@ -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");