diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2026-01-25 20:14:54 -0600 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2026-01-25 20:14:54 -0600 |
| commit | 117be1e9f9c2e353694b40e0eb686b2621317063 (patch) | |
| tree | 8381a11350285d682b1412d511721aeadd5135b9 /examples/test.gn | |
| download | gren-117be1e9f9c2e353694b40e0eb686b2621317063.tar.gz | |
Diffstat (limited to 'examples/test.gn')
| -rw-r--r-- | examples/test.gn | 11 |
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, +) |
