summaryrefslogtreecommitdiff
path: root/examples/helloWorld.nya
diff options
context:
space:
mode:
Diffstat (limited to 'examples/helloWorld.nya')
-rw-r--r--examples/helloWorld.nya6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/helloWorld.nya b/examples/helloWorld.nya
new file mode 100644
index 0000000..0b8c59b
--- /dev/null
+++ b/examples/helloWorld.nya
@@ -0,0 +1,6 @@
+import fn puts(str: [u8]) -> i32;
+
+fn main(argc: i32) -> i32 {
+ puts("Hello World!");
+ return 0;
+}