Stashes and piles
List grammar, stack grammar, ordinals, null-clear words, take from stash.
Stashes (lists)
Registry: stashes.txt. Story cookie jar → cookie_jar. Full name list: Registries.
Initialize (replace all)
| Line | Parses as | Need to know |
|---|---|---|
her cookie jar holds "a", "b", "c" | StashInit | holds, hold, keeps, keep, stores, store, contains, hoards, guards, stockpiles |
cookie_jar holds 1, 2, 3 | StashInit | Numbers and strings allowed |
Append one item
| Line | Parses as | Need to know |
|---|---|---|
cookie_jar stows "biscuit" | StashAppend | stow, stows, snag, snags, get, gets, collect, collects |
her cookie jar snag "treat" | same | Must not also have from (take phrase) |
Set / remove / clear slot
| Line | Parses as | Need to know |
|---|---|---|
cookie_jar first is "y" | StashSet[first, "y"] | Needs is glue; value can be expression |
cookie_jar first is 5 | StashSet[first, 5] | Numeric slot values |
cookie_jar second is count of the items in the cookie jar | StashSet + expression | |
her cookie jar drops first | StashRemove[first] | drops, drop, loses, lose, misplaces, tosses, abandons, removes, forgets |
her cookie jar is empty | StashClear | Any null-clear word (below) |
Stash slots (ordinals)
Slot words: first, second, third, … word ordinals up to nineteenth, twentieth, twenty-first, compounds with hundred/thousand, numeric 1/2/3, and last.
Used in: drops, is set, take-from-stash, print second item from the cookie jar.
Null-clear words (empty stash or disable trait)
null, nothing, notreat, emptybowl, no-bone-here, nobodyhome, hungry, starving, empty, barebowl, emptykennel, allgone, vanished, missing, nowhere, treatless, boneless, squeakless, nofetch
Also used to disable traits: husky is loud empty → trait off.
Piles (stacks)
Registry: piles.txt.
| Line | Parses as | Need to know |
|---|---|---|
laundry_basket holds "a", "b" | PileInit | Replaces pile |
the laundry basket is empty | PileClear | Null-clear words |
she puts "c" into the laundry basket | PilePush | put, puts, toss, tosses, drop, drops, throw, throws, plop, plops, store, stores + in/into |
she takes the top item from the laundry basket | PilePop | take, takes, grab, grabs, snatch, snatches, pull, pulls + top/peak/summit + from |
Print: bark top of laundry_basket pile, bark how many items are in the laundry basket (count), bark laundry_basket pile (all items).
Take from stash
Take words: wants, want, takes, take, gets, get (with from + stash).
| Line | Parses as | Need to know |
|---|---|---|
she wants the first biscuit from her cookie jar | TakeFromStash | Item → +1 treat for that dog |
she takes the first biscuit from her cookie jar | same | Without whimper |
she whimpers as she wants the first biscuit from her cookie jar | LineGroup[Print, Take] | Print mood + take on one line |
Slot/item before from: ordinal (first, second, last, …), quoted string, or number.
Stash vs pile vs inventory vs object
| Feature | What it is |
|---|---|
| Dog inventory | Text list on a breed |
| Stash | Named ordered list (cookie_jar) |
| Pile | Named stack (laundry_basket) |
| Object counter | Global number for ball, bone, etc. |
Print grammar for each: Printing.
