mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
[WIP] Add Dec/Decimal builtin types
This commit is contained in:
parent
07dea4ee04
commit
4d6e5a1a4f
15 changed files with 160 additions and 16 deletions
|
@ -5,6 +5,10 @@ const testing = std.testing;
|
|||
// Dec Module
|
||||
const dec = @import("dec.zig");
|
||||
|
||||
comptime {
|
||||
// exportDecFn(dec.fromStrC, "from_str");
|
||||
}
|
||||
|
||||
// List Module
|
||||
const list = @import("list.zig");
|
||||
|
||||
|
@ -101,10 +105,12 @@ fn exportStrFn(comptime func: anytype, comptime func_name: []const u8) void {
|
|||
fn exportDictFn(comptime func: anytype, comptime func_name: []const u8) void {
|
||||
exportBuiltinFn(func, "dict." ++ func_name);
|
||||
}
|
||||
|
||||
fn exportListFn(comptime func: anytype, comptime func_name: []const u8) void {
|
||||
exportBuiltinFn(func, "list." ++ func_name);
|
||||
}
|
||||
fn exportDecFn(comptime func: anytype, comptime func_name: []const u8) void {
|
||||
exportBuiltinFn(func, "dec." ++ func_name);
|
||||
}
|
||||
|
||||
// Run all tests in imported modules
|
||||
// https://github.com/ziglang/zig/blob/master/lib/std/std.zig#L94
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue