aboutsummaryrefslogtreecommitdiff
path: root/lib/training_wheels.nom
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-11-19 17:21:08 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-11-19 17:21:17 -0800
commitacd1191fb06a51f70f553c1dc8b47cf245a1c913 (patch)
tree993bb69cc050426644b98d10fb1a3133b3623be6 /lib/training_wheels.nom
parent7f47d4204039258cec78c767f489b7809b4257ff (diff)
Tweaks and API cleanup.
Diffstat (limited to 'lib/training_wheels.nom')
-rw-r--r--lib/training_wheels.nom27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/training_wheels.nom b/lib/training_wheels.nom
deleted file mode 100644
index 00ad64b..0000000
--- a/lib/training_wheels.nom
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/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))
-[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)
-[False, false] all parse as (no)
-(pass) parses as (do nothing)
-(%a || %b) parses as (%a or %b)
-(%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})
-[print %, println %] all parse as (say %)
-[error!, panic!, fail!, abort!] all parse as (barf!)
-[error %, panic %, fail %, abort %] all parse as (barf %)
-(assert %condition) parses as (assume %condition)
-(assert %condition %message) parses as (assume %condition or barf %message)
-(%cond ? %if_true %if_false) parses as (%if_true if %cond else %if_false)
-(lambda %args %body) parses as (%args -> %body)
-(function %name %args %body) parses as (%name = (%args -> %body))