Stashes and piles

List grammar, stack grammar, ordinals, null-clear words, take from stash.

Stashes (lists)

Registry: stashes.txt. Story cookie jarcookie_jar. Full name list: Registries.

Initialize (replace all)

LineParses asNeed to know
her cookie jar holds "a", "b", "c"StashInitholds, hold, keeps, keep, stores, store, contains, hoards, guards, stockpiles
cookie_jar holds 1, 2, 3StashInitNumbers and strings allowed

Append one item

LineParses asNeed to know
cookie_jar stows "biscuit"StashAppendstow, stows, snag, snags, get, gets, collect, collects
her cookie jar snag "treat"sameMust not also have from (take phrase)

Set / remove / clear slot

LineParses asNeed to know
cookie_jar first is "y"StashSet[first, "y"]Needs is glue; value can be expression
cookie_jar first is 5StashSet[first, 5]Numeric slot values
cookie_jar second is count of the items in the cookie jarStashSet + expression
her cookie jar drops firstStashRemove[first]drops, drop, loses, lose, misplaces, tosses, abandons, removes, forgets
her cookie jar is emptyStashClearAny 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.

LineParses asNeed to know
laundry_basket holds "a", "b"PileInitReplaces pile
the laundry basket is emptyPileClearNull-clear words
she puts "c" into the laundry basketPilePushput, puts, toss, tosses, drop, drops, throw, throws, plop, plops, store, stores + in/into
she takes the top item from the laundry basketPilePoptake, 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).

LineParses asNeed to know
she wants the first biscuit from her cookie jarTakeFromStashItem → +1 treat for that dog
she takes the first biscuit from her cookie jarsameWithout whimper
she whimpers as she wants the first biscuit from her cookie jarLineGroup[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

FeatureWhat it is
Dog inventoryText list on a breed
StashNamed ordered list (cookie_jar)
PileNamed stack (laundry_basket)
Object counterGlobal number for ball, bone, etc.

Print grammar for each: Printing.