monna/main.go
tijani e456189c86 ExpressionStatement in the AST to represent the typse of expressions that is supported in monkey.
Hand written test in the AST to test the String() function for accuracy



git-svn-id: https://svn.tlawal.org/svn/monkey@22 f6afcba9-9ef1-4bdd-9b72-7484f5705bac
2022-05-30 05:51:27 +00:00

26 lines
448 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"
"monkey/repl"
)
func main() {
// user, err := user.Current()
// if err != nil {
// panic(err)
// }
fmt.Printf("Welcome to the Monk programming language!\n")
repl.Start(os.Stdin, os.Stdout)
}