This commit is contained in:
unintendedfraud
2024-03-17 23:09:12 +01:00
commit b073f8f039
7 changed files with 411 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package main
import (
"fmt"
"gointerpreter/repl"
"os"
"os/user"
)
func main() {
user, err := user.Current()
if err != nil {
panic(err)
}
fmt.Printf("Hello %s! This is the gointerpreter programming language!\n", user.Username)
fmt.Printf("Type in commands\n")
repl.Start(os.Stdin, os.Stdout)
}