Create translator stub

This commit is contained in:
Sasha Koshka 2022-10-12 00:58:58 -04:00
parent 291aad8aad
commit 3a9855fe88

11
translator/translator.go Normal file
View File

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