From 45b152974bb6965209287945fd706d3b0c2df9ba Mon Sep 17 00:00:00 2001 From: c+1 Date: Thu, 18 May 2023 18:32:35 -0400 Subject: updated simple.halk with new syntax --- examples/v2.halk | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 examples/v2.halk (limited to 'examples/v2.halk') diff --git a/examples/v2.halk b/examples/v2.halk deleted file mode 100644 index 1d35efd..0000000 --- a/examples/v2.halk +++ /dev/null @@ -1,18 +0,0 @@ -` new syntax ` - -#include."IO.halk"; ` preprocessor directives start with '#' and end with ';' ` -#macro."PI","3.14159"; ` replace every instance of PI with 3.14159 ` - - -` mut:?: = ; ` - -str:hello = "Hello"; ` by default, variables are immutable ` -mut:str:world = "world" ` one can create an immutable variable with mut: ` - -void:say_hello.str:to = { ` functions need no special keyword ` - io.stdout.to; -} - -int:main.str[]:args = { ` start executing here ` - return.0; -} -- cgit v1.2.3