From 55399a71ba085caadbe794b193fe2776840807d4 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sun, 8 May 2022 17:51:43 +0200 Subject: Implemented most of the funge pointer logic --- src/defaultIO.zig | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/defaultIO.zig (limited to 'src/defaultIO.zig') 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()); +} -- cgit v1.2.3