fridge.nv
· 743 B · Text
原始文件
Playground
||:@include: lib/rpn.nv
|:groceries: $item|
:: put $item in the fridge
|:: put $item in the fridge :fridge: $item $quantity?|
:: put $item in its bin
:: close all the bins
|:: put $item in the fridge? :fridge: $other $quantity|
:checked bins: $other $quantity
|:: put $item in the fridge|
:: make a bin for $item
:: close all the bins
|:: make a bin for $item|
:fridge: $item 1
|:: put $item in its bin :@rpn data: $quantity|
:fridge: $item $quantity
|:: put $item in its bin? :fridge: $item $quantity|
:@rpn: ($quantity 1 +)
|:: close all the bins? :checked bins: $item $quantity|
:fridge: $item $quantity
|:: close all the bins|
||:groceries: (apples apples oranges grapes apples mangos oranges)
| 1 | ||:@include: lib/rpn.nv |
| 2 | |
| 3 | |:groceries: $item| |
| 4 | :: put $item in the fridge |
| 5 | |
| 6 | |:: put $item in the fridge :fridge: $item $quantity?| |
| 7 | :: put $item in its bin |
| 8 | :: close all the bins |
| 9 | |:: put $item in the fridge? :fridge: $other $quantity| |
| 10 | :checked bins: $other $quantity |
| 11 | |:: put $item in the fridge| |
| 12 | :: make a bin for $item |
| 13 | :: close all the bins |
| 14 | |
| 15 | |:: make a bin for $item| |
| 16 | :fridge: $item 1 |
| 17 | |
| 18 | |:: put $item in its bin :@rpn data: $quantity| |
| 19 | :fridge: $item $quantity |
| 20 | |:: put $item in its bin? :fridge: $item $quantity| |
| 21 | :@rpn: ($quantity 1 +) |
| 22 | |
| 23 | |:: close all the bins? :checked bins: $item $quantity| |
| 24 | :fridge: $item $quantity |
| 25 | |:: close all the bins| |
| 26 | |
| 27 | ||:groceries: (apples apples oranges grapes apples mangos oranges) |