s/TypeSolver/Analyzer

This commit is contained in:
Luna 2019-10-05 10:27:38 -03:00
parent 5c58ac0238
commit 881833b187
2 changed files with 4 additions and 4 deletions

View file

@ -8,7 +8,7 @@ const Token = @import("tokens.zig").Token;
const SymbolUnderlyingType = comp.SymbolUnderlyingType;
pub const TypeSolver = struct {
pub const Analyzer = struct {
allocator: *std.mem.Allocator,
// error handling
@ -18,8 +18,8 @@ pub const TypeSolver = struct {
err_ctx_buffer: []u8,
pub fn init(allocator: *std.mem.Allocator) !TypeSolver {
return TypeSolver{
pub fn init(allocator: *std.mem.Allocator) !Analyzer {
return Analyzer{
.allocator = allocator,
.err_ctx_buffer = try allocator.alloc(u8, 512),
};

View file

@ -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 = try analysis.TypeSolver.init(allocator);
var solver = try analysis.Analyzer.init(allocator);
var ctx = try solver.pass(root);
std.debug.warn("symbol table\n");