From 3a9855fe88b4aecce3827254d27f81910033fc47 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 12 Oct 2022 00:58:58 -0400 Subject: [PATCH] Create translator stub --- translator/translator.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 translator/translator.go diff --git a/translator/translator.go b/translator/translator.go new file mode 100644 index 0000000..eec3811 --- /dev/null +++ b/translator/translator.go @@ -0,0 +1,11 @@ +package translator + +import "git.tebibyte.media/arf/arf/analyzer" + +// Translate takes in a path to a module and an io.Writer, and outputs the +// corresponding C through the writer. The C code will import nothing and +// function as a standalone translation unit. +func Translate (modulePath string, output io.Writer) (err error) { + // TODO + return +}