diff options
Diffstat (limited to 'examples/v2.halk')
-rw-r--r-- | examples/v2.halk | 18 |
1 files changed, 0 insertions, 18 deletions
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:?<some type>:<some name> = <some value>; ` - -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; -} |