aboutsummaryrefslogtreecommitdiff
path: root/lib/training_wheels.nom
diff options
context:
space:
mode:
Diffstat (limited to 'lib/training_wheels.nom')
-rw-r--r--lib/training_wheels.nom11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/training_wheels.nom b/lib/training_wheels.nom
index f16b700..00ad64b 100644
--- a/lib/training_wheels.nom
+++ b/lib/training_wheels.nom
@@ -1,13 +1,12 @@
-#!/usr/bin/env nomsu -V4.8.10
+#!/usr/bin/env nomsu -V4.10.12.7
#
This file contains a set of definitions that bring some familiar language features
from other languages into nomsu (e.g. "||" and "continue")
-
-(%a === %b) parses as ((%a 's id) is (%b 's id))
-(%a !== %b) parses as ((%a 's id) is not (%b 's id))
+
+(%a === %b) parses as ((%a's id) is (%b's id))
+(%a !== %b) parses as ((%a's id) is not (%b's id))
[function %names %body, def %names %body] all parse as (..)
externally %names means %body
-
(switch %branch_value %body) parses as (if %branch_value is %body)
[None, Null] all parse as (nil)
[True, true] all parse as (yes)
@@ -17,7 +16,7 @@
(%a && %b) parses as (%a and %b)
(continue) parses as (do next)
(break) parses as (stop)
-(let %thing = %value in %action) parses as (with local {%thing:%value})
+(let %thing = %value in %action) parses as (with local {%thing: %value})
[print %, println %] all parse as (say %)
[error!, panic!, fail!, abort!] all parse as (barf!)
[error %, panic %, fail %, abort %] all parse as (barf %)