diff options
-rw-r--r-- | examples/simple.halk | 2 | ||||
-rw-r--r-- | examples/v2.halk | 18 |
2 files changed, 1 insertions, 19 deletions
diff --git a/examples/simple.halk b/examples/simple.halk index a46b51f..e88416b 100644 --- a/examples/simple.halk +++ b/examples/simple.halk @@ -1 +1 @@ -let.variable -> "Hi"; +str:variable = "Hi."; 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; -} |