Skip to content
Snippets Groups Projects
Commit 2c7379f1 authored by Sivert2101's avatar Sivert2101
Browse files

update of the automatic file

parent b7e97f70
No related branches found
No related tags found
No related merge requests found
......@@ -38,8 +38,6 @@ func main() {
fmt.Println(promptList[i])
userPrompt = promptList[i]
for {
//if userPrompt == "exit" {
// fmt.Println("Exiting the program.")
// break
......@@ -75,12 +73,12 @@ func main() {
output, err := compiler.CompileStringToGo(generatedCode)
if err != nil {
fmt.Println("There were an error in the code that was compiled")
userPrompt = output + "\nFollowing are the errors, please fix the code. Write it again, and write only source code along with same test cases with no further explanation. The format should be ```rust <yourcode + testcases> ```"
} else {
fmt.Println("Compiled successfully. Here is the output: %v", output)
userPrompt = "exit"
//userPrompt = "exit"
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment