summaryrefslogtreecommitdiff
path: root/examples/test.gn
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2026-01-25 20:14:54 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2026-01-25 20:14:54 -0600
commit117be1e9f9c2e353694b40e0eb686b2621317063 (patch)
tree8381a11350285d682b1412d511721aeadd5135b9 /examples/test.gn
downloadgren-117be1e9f9c2e353694b40e0eb686b2621317063.tar.gz
Initial commit with tokenizerHEADmain
Diffstat (limited to 'examples/test.gn')
-rw-r--r--examples/test.gn11
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/test.gn b/examples/test.gn
new file mode 100644
index 0000000..99e7ef6
--- /dev/null
+++ b/examples/test.gn
@@ -0,0 +1,11 @@
+!use defaults -> io -> println.
+!use defaults -> effects.
+!use defaults -> math -> +.
+!use builtin -> block.
+!use builtin -> return.
+!entrypoint <- main.
+(main) -> Int ? (effects -> IO).
+main -> match (x <- println "Hello World") (
+ (x >= 0) -> 0,
+ (x < 0)-> 1,
+)