aboutsummaryrefslogtreecommitdiff
path: root/lib/training_wheels.nom
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-01-11 18:51:21 -0800
committerBruce Hill <bitbucket@bruce-hill.com>2018-01-11 18:51:21 -0800
commite09f05a50cdb699029e8a4d5bafcfaade34157fd (patch)
treef216e71f7d7797706145f12349b48cd29d7c45ba /lib/training_wheels.nom
parent06bf76f818382cdd33816073866f3cfd41609597 (diff)
Reshuffled all the library code into files that make more sense and
cleaned up some of the library code.
Diffstat (limited to 'lib/training_wheels.nom')
-rw-r--r--lib/training_wheels.nom5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/training_wheels.nom b/lib/training_wheels.nom
index e5fec96..ad4e8df 100644
--- a/lib/training_wheels.nom
+++ b/lib/training_wheels.nom
@@ -1,3 +1,7 @@
+#..
+ This file contains a set of definitions that bring some familiar language features
+ from other languages into nomsu (e.g. "==" and "continue")
+
use "lib/core.nom"
parse [%a == %b] as: %a is %b
@@ -20,3 +24,4 @@ parse [let %assignments in %action] as: with %assignemnts %action
parse [error!, panic!, fail!, abort!] as: barf!
parse [error %, panic %, fail %, abort %] as: barf %
parse [assert %condition %message] as: assume %condition or barf %message
+parse [%cond ? %if_true %if_false] as: %if_true if %cond else %if_false