aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorc+12023-05-05 16:37:57 -0400
committerc+12023-05-05 16:37:57 -0400
commit942bbf33dcce413aadc7cc51693b184d6172c302 (patch)
treedb115d23fec88938d2ac890f35c0843d70a67a90 /examples
parent89b5586c1a12ac47c47e609dc31aac597473812f (diff)
HEKLP IT WON"T TERMINATc
Diffstat (limited to 'examples')
-rw-r--r--examples/hello.halk32
1 files changed, 3 insertions, 29 deletions
diff --git a/examples/hello.halk b/examples/hello.halk
index 47c6979..8a441cc 100644
--- a/examples/hello.halk
+++ b/examples/hello.halk
@@ -1,29 +1,3 @@
-[comments are in square brackets]
-
-[begin list with /]
-[end list with \]
-[items in list separated by &]
-
-[lines terminated by ;]
-
-[arguments given as a list after the .]
-
-[USE brings a module into scope]
-USE./"base"&"io"\;
-
-[all variables are mutable at all times]
-message="Hello, World!";
-
-[new functions defined with = followed by a list of procedures, which are called procedurally when called]
-say.msg=/
-
-[functions/variables in a module are accessed through a ~ (analogous to dot notation)]
-msg=io~escape.msg&
-io~o.msg
-\;
-
-for_each./ build_list./5\ &
-
-say.message
-
-\
+[nice & simple]
+let it = "Hello, World!";
+say it;