aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorc+12023-05-18 18:32:35 -0400
committerc+12023-05-18 18:32:35 -0400
commit45b152974bb6965209287945fd706d3b0c2df9ba (patch)
tree144c1669f126fa8b4de3e737d385fd6466753c2d
parentcaf7593edd2b94547444a831788bb377350b976b (diff)
updated simple.halk with new syntax
-rw-r--r--examples/simple.halk2
-rw-r--r--examples/v2.halk18
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;
-}