monna/main.go
tijani 7a74beea8a Todos
git-svn-id: https://svn.tlawal.org/svn/monkey@6 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-19 00:25:09 +00:00

28 lines
479 B
Go

/* TODO(tijani):
- add quit command to the repl.
- remove semicolons from the language to mark the end of a statement.
- add line and position reporting in the lexer when a lexing or parsing error occurs.
*/
package main
import (
"fmt"
"os"
"os/user"
"monkey/repl"
)
func main() {
user, err := user.Current()
if err != nil {
panic(err)
}
fmt.Printf("Hello %s! Welcome to the Monkey programming language!\n", user.Username)
repl.Start(os.Stdin, os.Stdout)
}