diff --git a/lib/training_wheels.nom b/lib/training_wheels.nom index ad4e8df..d277925 100644 --- a/lib/training_wheels.nom +++ b/lib/training_wheels.nom @@ -4,6 +4,7 @@ use "lib/core.nom" +parse [%a = %b] as: %a <- %b parse [%a == %b] as: %a is %b parse [%a ~= %b, %a != %b, %a <> %b] as: %a is not %b parse [%a === %b] as: (%a's id) is (%b's id) @@ -19,8 +20,8 @@ parse [%a || %b] as: %a or %b parse [%a && %b] as: %a and %b parse [continue] as: do next parse [break] as: stop -parse [let %thing = %value in %action] as: with %thing = %value %action -parse [let %assignments in %action] as: with %assignemnts %action +parse [let %thing = %value in %action] as: with [%thing <- %value] %action +parse [print %] as: say % parse [error!, panic!, fail!, abort!] as: barf! parse [error %, panic %, fail %, abort %] as: barf % parse [assert %condition %message] as: assume %condition or barf %message