From cf80bb7f1b6fb4ee1d08d3d6850966b4951274b5 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Mon, 12 Aug 2024 00:44:26 -0500 Subject: Calling functions and Function args now works. You can also import functions now. --- examples/test.nya | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/test.nya') diff --git a/examples/test.nya b/examples/test.nya index 3088546..0b8c59b 100644 --- a/examples/test.nya +++ b/examples/test.nya @@ -1,6 +1,6 @@ -fn main() -> i32 { - const testval = 6; - var testvar = testval; - testvar = 5; - return testvar; +import fn puts(str: [u8]) -> i32; + +fn main(argc: i32) -> i32 { + puts("Hello World!"); + return 0; } -- cgit v1.2.3