vexed.matzo 843 B

12345678910111213141516
  1. (*
  2. An example from the Tracery tutorial:
  3. {"name": ["Arjun","Yuuma","Darcy","Mia","Chiaki","Izzi","Azra","Lina"]
  4. ,"animal": ["unicorn","raven","sparrow","scorpion","coyote","eagle","owl","lizard","zebra","duck","kitten"]
  5. ,"mood": ["vexed","indignant","impassioned","wistful","astute","courteous"]
  6. ,"story": ["#hero# traveled with her pet #heroPet#. #hero# was never #mood#, for the #heroPet# was always too #mood#."]
  7. ,"origin": ["#[hero:#name#][heroPet:#animal#]story#"]
  8. }
  9. *)
  10. fix name := "Arjun" | "Yuuma" | "Darcy" | "Mia" | "Chiaki" | "Izzi" | "Azra" | "Lina";
  11. fix pet ::= unicorn raven sparrow scorpion coyote eagle owl lizard zebra duck kitten;
  12. mood ::= vexed indignant impassioned wistful astute corteous;
  13. puts name " traveled with her pet " pet ". "
  14. name " was never " mood " for the " pet " was always too " mood ".";