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