summaryrefslogtreecommitdiff
path: root/test/hello-world.hnshn
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2024-09-22 20:20:49 +0200
committerDaniel Weipert <git@mail.dweipert.de>2024-09-22 20:20:49 +0200
commitcdfc214a9f961ac9a9a6ed8c419bd2b4d7edc9bc (patch)
treee6f3bf2372044b3dc6720fb0cb814d1bebaca3f2 /test/hello-world.hnshn
parent3b1ba73ad56bdcfb1ffa39ed4c8f1dddeb607adf (diff)
interpreting!!
Diffstat (limited to 'test/hello-world.hnshn')
-rw-r--r--test/hello-world.hnshn28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/hello-world.hnshn b/test/hello-world.hnshn
deleted file mode 100644
index 4d4af3d..0000000
--- a/test/hello-world.hnshn
+++ /dev/null
@@ -1,28 +0,0 @@
-const std = import('@std');
-
-function main(): void {
- const integer: integer32 = 123;
- const string: string = '123';
- const array: [integer32][3] = [1, 2, 3];
- const map: [string][string|integer32] = [
- 'first': 1,
- 'second': 'two',
- 'third': 3,
- ];
-
- for (array) |index, value| {
- // cool
- }
-
- for (map) |key, value| {
- // also cool
- }
-
- for (string) |index, char| {
- // cool?
- const char2 = std.str.get_char_at_index(string, index);
- }
-
- std.str.format('cool %s', string)
- |> print($);
-}