1
Fork 0

bring back hello world

This commit is contained in:
Jan-Erik Rediger 2024-05-16 23:03:29 +02:00
parent 5bcb10eff4
commit 03864d7a94
2 changed files with 14 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,2 @@
hello*
tmp
result*

14
hello-world.ha Normal file
View file

@ -0,0 +1,14 @@
use fmt;
export fn main() void = {
const greetings = [
"Hello, world!",
"¡Hola Mundo!",
"Γειά σου Κόσμε!",
"Привіт, світ!",
"こんにちは世界!",
];
for (let greeting .. greetings) {
fmt::println(greeting)!;
};
};