Printing
Every print verb, output style, field reads, stash/pile print, edge cases.
Print verbs and output styles
| Verbs | Style | Output effect |
|---|---|---|
bark, barks, say, says, mention, mentions, tell, tells, announce, announces, declare, declares, command, commands, pant, pants | BARK | As written |
growl, growls, shout, shouts | GROWL | UPPERCASE |
woof, woofs | WOOF | UPPERCASE |
howl, howls | HOWL | First letter ×4 + rest ("hi" → hhhhhi) |
whimper, whimpers, whisper, whispers | WHIMPER | lowercase |
whine, whines | WHINE | lowercase |
yap, yaps, yapping, yapps, squeak, squeaks | YAPPING | Text repeated twice with space |
whining, mutter, mutters | WHINING | Letters spaced ("hi" → h i) |
Bare verb with no value prints a default for that style (bark → woof, growl → growl, howl → howl, …).
Trait and mood effects apply to dog-voiced prints. See Traits and Runtime semantics.
Simple values
| Line | Parses as | Need to know |
|---|---|---|
bark "hello" | Print[BARK, StringLiteral("hello")] | |
bark | Print + empty value | Default woof |
bark 2 plus 3 | Print + Binary(PLUS, 2, 3) | Math after verb |
bark "a", memory, 5 | Print with 3 values | Comma-separated |
they growl memory minus how many treats she has, "missing!" | Print + math + string | Math first when minus/plus on line |
Dog field reads (without how many)
| Line | Parses as | Need to know |
|---|---|---|
bark my labrador name | Print + Field(labrador, name) | Any attribute word after breed/pronoun |
she woof her name | Print + Field(her, name) | Pronoun before verb sets dog speaker mood |
he growls his age | Print + Field(his, age) | |
when she has 1 toy then he growls his name | inline IfChain + Print | Field read in branch |
Dog field counts (how many … has)
| Line | Parses as | Need to know |
|---|---|---|
bark how many toys she has | Print + Field(she, items) | |
bark how many treats Bimba has | Print + Field(Bimba, food) | |
bark how many toys the golden retriever has | Print + Field(golden_retriever, items) | Multi-word breed |
Stash and pile in print
| Line | Parses as | Need to know |
|---|---|---|
bark how many items are in the cookie jar | StashAccess(COUNT) | Print only (not math) |
bark how many items are in her cookie jar | same | her is glue |
bark how many toys the toy box has | StashAccess(toy_box, COUNT) | Topic + collection |
bark her cookie jar | StashAccess(ALL) | Comma-separated items |
bark cookie_jar | same | Script name |
whimper the second item from the cookie jar | StashAccess(ELEMENT, second) | Ordinals (see stash section) |
bark top of laundry_basket pile | PileAccess(TOP) | Top item |
bark laundry_basket pile | PileAccess(ALL) | All items, bottom to top |
Other print forms
| Line | Parses as | Need to know |
|---|---|---|
bark my labrador is loud | Print + HasTrait(labrador, loud) | Prints true/false; does not set trait |
bark bark bark | triple paw print | Three same print verbs |
bark "woof" letters | Length(...) | String length; also length, characters |
bark add with 2, 3 | FunctionCall(add, 2, 3) | Trick call |
bark ball | Variable(ball) | Global object count |
When when is not a branch
| Line | Parses as | Need to know |
|---|---|---|
bark "The pack heads home when the jar is empty." | Print only | when inside quotes or after print verb |
when only branches when it leads the line. See Writing stories.
