compiler-in-go/cmd/repl/main.go
jmug 9c32fe1d31 Rename module to "compiler-in-go"
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-13 19:56:56 -08:00

19 lines
334 B
Go

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