2021-11-30 19:02:01 +00:00
|
|
|
package main
|
2021-11-30 21:21:32 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"os"
|
|
|
|
"os/user"
|
|
|
|
|
|
|
|
"gitlab.com/Tyrel/monkey/repl"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
user, err := user.Current()
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
fmt.Printf("Hello %s! This is the Monkey programming language!\n", user.Username)
|
|
|
|
fmt.Printf("Feel free to type in commands\n")
|
|
|
|
repl.Start(os.Stdin, os.Stdout)
|
|
|
|
}
|