2025-01-13 19:51:49 -08:00
|
|
|
package main
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
"os"
|
|
|
|
|
"os/user"
|
|
|
|
|
|
2025-01-13 19:56:56 -08:00
|
|
|
"code.jmug.me/jmug/compiler-in-go/pkg/repl"
|
2025-01-13 19:51:49 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
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.Println("Go ahead, type something :)")
|
|
|
|
|
repl.Start(os.Stdin, os.Stdout)
|
|
|
|
|
}
|