diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 15:50:46 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2018-11-11 15:50:46 -0800 |
| commit | 4efe44ed271aeed8e25e909344788d92a0d9f82b (patch) | |
| tree | 73766440b53031d4fc8210dbe3b0aece47e6b852 /lib/training_wheels.nom | |
| parent | ba03cb67c3c8ba53451eba25dd2186f095cd1db2 (diff) | |
Fully upgraded to 4.10.12.7, including deprecating the old list/dict
comprehension methods, in favor of the new native support.
Diffstat (limited to 'lib/training_wheels.nom')
| -rw-r--r-- | lib/training_wheels.nom | 11 |
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 %) |
