diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-24 03:00:18 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-24 03:00:31 -0800 |
| commit | 566b7d09c860bb719e69c54ea0618da7c90c2dff (patch) | |
| tree | c4d5fc659e1b551a5289f5d510d4b59d8d9764f6 /lib | |
| parent | 42d950f7b4e41da496c0c28b4fee6c82c4db2d3b (diff) | |
Updated training wheels with new syntax and print().
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/training_wheels.nom | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
