Skip to content

Latest commit

 

History

History
40 lines (31 loc) · 1.08 KB

woodslist.md

File metadata and controls

40 lines (31 loc) · 1.08 KB

Woodslist

Woodslist is a serialization format similar to s-expressions.

(agent
  (name "Mitch Henderson")
  (role "hotdog seller")
  (inventory
    "hotdog cart"
    tongs
    (hat
      (attribute striped)))
  (description "this hotdog seller wants to sell you a hotdog")
)

(agent
  (name Johnson)
  (role "newspaper reader")
  (inventory newspaper)
  (description "Johnson is sitting on a bench, reading a newspaper")
)

(agent (name Crouo) (role Pigeon) (inventory feathers straw) (description "Just a darn pigeon\n..."))

(agent
  (name Wuo) (role Pigeon) (inventory dominance (gut (contents crumbs poop))) (description "
A more prominent pigeon
Wuo is bobbing flamboyantly next to the females, and no one is stopping him.
Wuo isn't taking any guff from anyone.
Except for the seagulls,
who are big and mean.")
)

Woodslist is a Wood language, meaning it parses into Wood and can be worked with using the same APIs as other wood formats.

It is formally defined here.