aboutsummaryrefslogtreecommitdiff
path: root/src/defaultIO.zig
diff options
context:
space:
mode:
authorJulien Dessaux2022-05-08 17:51:43 +0200
committerJulien Dessaux2022-05-08 17:51:43 +0200
commit55399a71ba085caadbe794b193fe2776840807d4 (patch)
tree4f954a98f0548a1a69aee818f59204d40c0cf48d /src/defaultIO.zig
parentReintroducing the empty field errors and fixed the bugs introduced in the las... (diff)
downloadzigfunge98-55399a71ba085caadbe794b193fe2776840807d4.tar.gz
zigfunge98-55399a71ba085caadbe794b193fe2776840807d4.tar.bz2
zigfunge98-55399a71ba085caadbe794b193fe2776840807d4.zip
Implemented most of the funge pointer logic
Diffstat (limited to 'src/defaultIO.zig')
-rw-r--r--src/defaultIO.zig32
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());
+}