From baa37871d9b71d3f94cc8acca8d375ee1232d7f0 Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 14 Jul 2026 22:18:38 -0500 Subject: chapter 01 --- main.odin | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 main.odin (limited to 'main.odin') diff --git a/main.odin b/main.odin new file mode 100644 index 0000000..8a4e1cb --- /dev/null +++ b/main.odin @@ -0,0 +1,17 @@ +package main + +import "core:fmt" +import "core:os" +import "repl" + +main :: proc() { + user, ok := os.lookup_env_alloc("USER", context.allocator) + if !ok { + fmt.eprintln("Could not determine username") + return + } + + fmt.printf("Hello %s! This is the Monkey programming language!\n", user) + fmt.println("Feel free to type in commands") + repl.start(os.to_stream(os.stdin), os.to_stream(os.stdout)) +} -- cgit v1.2.3