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.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