diff options
author | c+1 | 2023-05-18 18:32:35 -0400 |
---|---|---|
committer | c+1 | 2023-05-18 18:32:35 -0400 |
commit | 45b152974bb6965209287945fd706d3b0c2df9ba (patch) | |
tree | 144c1669f126fa8b4de3e737d385fd6466753c2d /examples/v2.halk | |
parent | caf7593edd2b94547444a831788bb377350b976b (diff) |
updated simple.halk with new syntax
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; -} |