From cdfc214a9f961ac9a9a6ed8c419bd2b4d7edc9bc Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 22 Sep 2024 20:20:49 +0200 Subject: interpreting!! --- test/hello-world.hnshn | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 test/hello-world.hnshn (limited to 'test/hello-world.hnshn') 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($); -} -- cgit v1.2.3