From c008d747534f4c8aa59b045efbca754618e14b41 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sat, 25 Apr 2026 17:18:00 +0200 Subject: style(eval): move in its own package --- src/paragraph.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/paragraph.zig') diff --git a/src/paragraph.zig b/src/paragraph.zig index 8edfa12..a76b98c 100644 --- a/src/paragraph.zig +++ b/src/paragraph.zig @@ -2,7 +2,8 @@ const std = @import("std"); const Allocator = std.mem.Allocator; const Token = @import("lexer/Token.zig"); const Lexer = @import("lexer/Lexer.zig"); -const Element = @import("Element.zig"); +const Element = @import("eval/Element.zig"); +const Paragraph = Element.Paragraph; const parser = @import("parser.zig"); const link = @import("link.zig"); const content = @import("content.zig"); @@ -13,7 +14,7 @@ const doTestError = testing.doError; pub const Error = content.Error || link.Error || Lexer.Error || Allocator.Error; pub fn parse(alloc: Allocator, l: *Lexer) Error!Element { - var el = try Element.Paragraph.init(alloc); + var el = try Paragraph.Block.init(alloc); errdefer el.deinit(alloc); while (l.peek()) |next| { switch (next.kind) { -- cgit v1.2.3