From 3b830165a6b933efa758ccd17031ef50832365cc Mon Sep 17 00:00:00 2001
From: ammar68 <ammaa@stud.ntnu.no>
Date: Thu, 10 Oct 2024 00:43:32 +0200
Subject: [PATCH] create compiler stub

---
 llama/compiler/compiler.go | 10 ++++++++++
 1 file changed, 10 insertions(+)
 create mode 100644 llama/compiler/compiler.go

diff --git a/llama/compiler/compiler.go b/llama/compiler/compiler.go
new file mode 100644
index 0000000..41da418
--- /dev/null
+++ b/llama/compiler/compiler.go
@@ -0,0 +1,10 @@
+package compiler
+
+// CompileStringToGo tries to compile a string of go code to a go executable, and returns the compiler output and an error.
+// The function does not produce any executables, since they are deleted after the function ends.
+func CompileStringToGo(code string) (string, error) {
+
+	var output string = ""
+	// SetupEnvironment
+	return output, nil
+}
-- 
GitLab