diff options
author | Julien Dessaux | 2022-05-08 17:51:43 +0200 |
---|---|---|
committer | Julien Dessaux | 2022-05-08 17:51:43 +0200 |
commit | 55399a71ba085caadbe794b193fe2776840807d4 (patch) | |
tree | 4f954a98f0548a1a69aee818f59204d40c0cf48d /src/defaultIO.zig | |
parent | Reintroducing the empty field errors and fixed the bugs introduced in the las... (diff) | |
download | zigfunge98-55399a71ba085caadbe794b193fe2776840807d4.tar.gz zigfunge98-55399a71ba085caadbe794b193fe2776840807d4.tar.bz2 zigfunge98-55399a71ba085caadbe794b193fe2776840807d4.zip |
Implemented most of the funge pointer logic
Diffstat (limited to '')
-rw-r--r-- | src/defaultIO.zig | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/defaultIO.zig b/src/defaultIO.zig new file mode 100644 index 0000000..b87c2d6 --- /dev/null +++ b/src/defaultIO.zig @@ -0,0 +1,32 @@ +const std = @import("std"); + +pub const IOErrors = error{ + IOError, + NotImplemented, +}; + +pub fn characterInput() IOErrors!i64 { + // TODO + return error.NotImplemented; +} + +pub fn decimalInput() IOErrors!i64 { + // TODO + return error.NotImplemented; +} + +pub fn characterOutput(v: i64) IOErrors!void { + // TODO + _ = v; + return error.NotImplemented; +} + +pub fn decimalOutput(v: i64) IOErrors!void { + // TODO + _ = v; + return error.NotImplemented; +} + +test "all" { + std.testing.refAllDecls(@This()); +} |