diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-25 17:18:00 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-25 17:18:00 +0200 |
| commit | c008d747534f4c8aa59b045efbca754618e14b41 (patch) | |
| tree | 68c094fed420230985724c300195c0389d2339e8 /src/paragraph.zig | |
| parent | a3e7c462dadadc6986d93f6f0203ca7a02863ef8 (diff) | |
style(eval): move in its own package
Diffstat (limited to 'src/paragraph.zig')
| -rw-r--r-- | src/paragraph.zig | 5 |
1 files changed, 3 insertions, 2 deletions
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) { |
