From 4efe44ed271aeed8e25e909344788d92a0d9f82b Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 11 Nov 2018 15:50:46 -0800 Subject: Fully upgraded to 4.10.12.7, including deprecating the old list/dict comprehension methods, in favor of the new native support. --- lib/training_wheels.nom | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/training_wheels.nom') 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 %) -- cgit v1.2.3