[WIP] Add Dec/Decimal builtin types

This commit is contained in:
Jared Ramirez 2021-06-23 19:30:16 -07:00
parent 07dea4ee04
commit 4d6e5a1a4f
15 changed files with 160 additions and 16 deletions

View file

@ -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