Printing

Every print verb, output style, field reads, stash/pile print, edge cases.

Print verbs and output styles

VerbsStyleOutput effect
bark, barks, say, says, mention, mentions, tell, tells, announce, announces, declare, declares, command, commands, pant, pantsBARKAs written
growl, growls, shout, shoutsGROWLUPPERCASE
woof, woofsWOOFUPPERCASE
howl, howlsHOWLFirst letter ×4 + rest ("hi"hhhhhi)
whimper, whimpers, whisper, whispersWHIMPERlowercase
whine, whinesWHINElowercase
yap, yaps, yapping, yapps, squeak, squeaksYAPPINGText repeated twice with space
whining, mutter, muttersWHININGLetters spaced ("hi"h i)

Bare verb with no value prints a default for that style (barkwoof, growlgrowl, howlhowl, …).

Trait and mood effects apply to dog-voiced prints. See Traits and Runtime semantics.

Simple values

LineParses asNeed to know
bark "hello"Print[BARK, StringLiteral("hello")]
barkPrint + empty valueDefault woof
bark 2 plus 3Print + Binary(PLUS, 2, 3)Math after verb
bark "a", memory, 5Print with 3 valuesComma-separated
they growl memory minus how many treats she has, "missing!"Print + math + stringMath first when minus/plus on line

Dog field reads (without how many)

LineParses asNeed to know
bark my labrador namePrint + Field(labrador, name)Any attribute word after breed/pronoun
she woof her namePrint + Field(her, name)Pronoun before verb sets dog speaker mood
he growls his agePrint + Field(his, age)
when she has 1 toy then he growls his nameinline IfChain + PrintField read in branch

Dog field counts (how many … has)

LineParses asNeed to know
bark how many toys she hasPrint + Field(she, items)
bark how many treats Bimba hasPrint + Field(Bimba, food)
bark how many toys the golden retriever hasPrint + Field(golden_retriever, items)Multi-word breed

Stash and pile in print

LineParses asNeed to know
bark how many items are in the cookie jarStashAccess(COUNT)Print only (not math)
bark how many items are in her cookie jarsameher is glue
bark how many toys the toy box hasStashAccess(toy_box, COUNT)Topic + collection
bark her cookie jarStashAccess(ALL)Comma-separated items
bark cookie_jarsameScript name
whimper the second item from the cookie jarStashAccess(ELEMENT, second)Ordinals (see stash section)
bark top of laundry_basket pilePileAccess(TOP)Top item
bark laundry_basket pilePileAccess(ALL)All items, bottom to top

Other print forms

LineParses asNeed to know
bark my labrador is loudPrint + HasTrait(labrador, loud)Prints true/false; does not set trait
bark bark barktriple paw printThree same print verbs
bark "woof" lettersLength(...)String length; also length, characters
bark add with 2, 3FunctionCall(add, 2, 3)Trick call
bark ballVariable(ball)Global object count

When when is not a branch

LineParses asNeed to know
bark "The pack heads home when the jar is empty."Print onlywhen inside quotes or after print verb

when only branches when it leads the line. See Writing stories.