From 03864d7a94a7a24d85af221a6728ea303401d1d2 Mon Sep 17 00:00:00 2001 From: Jan-Erik Rediger Date: Thu, 16 May 2024 23:03:29 +0200 Subject: [PATCH] bring back hello world --- .gitignore | 1 - hello-world.ha | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 hello-world.ha diff --git a/.gitignore b/.gitignore index 850b1be..51fd687 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ -hello* tmp result* diff --git a/hello-world.ha b/hello-world.ha new file mode 100644 index 0000000..fc79d44 --- /dev/null +++ b/hello-world.ha @@ -0,0 +1,14 @@ +use fmt; + +export fn main() void = { + const greetings = [ + "Hello, world!", + "¡Hola Mundo!", + "Γειά σου Κόσμε!", + "Привіт, світ!", + "こんにちは世界!", + ]; + for (let greeting .. greetings) { + fmt::println(greeting)!; + }; +}; \ No newline at end of file