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/link.zig | |
| parent | a3e7c462dadadc6986d93f6f0203ca7a02863ef8 (diff) | |
style(eval): move in its own package
Diffstat (limited to 'src/link.zig')
| -rw-r--r-- | src/link.zig | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/link.zig b/src/link.zig index 85156dc..e214b4b 100644 --- a/src/link.zig +++ b/src/link.zig @@ -3,7 +3,8 @@ const Allocator = std.mem.Allocator; const eql = std.mem.eql; const Token = @import("lexer/Token.zig"); const Lexer = @import("lexer/Lexer.zig"); -const Element = @import("Element.zig"); +const Element = @import("eval/Element.zig"); +const Link = Element.Paragraph.Link; const content = @import("content.zig"); const testing = @import("testing.zig"); const doTest = testing.do; @@ -16,7 +17,7 @@ pub fn parse(alloc: Allocator, l: *Lexer) Error!Element { const second = data.second orelse return data.first.?; var in = if (data.first) |first| first else (try Element.Literal.init(alloc, second)).element(); errdefer in.deinit(alloc); - return (try Element.Link.init(alloc, in, data.second.?)).element(); + return (try Link.init(alloc, in, data.second.?)).element(); } pub const Data = struct { |
