exprs.matzo 363 B

123456789101112131415161718192021222324252627
  1. (* catenation *)
  2. puts This That The-Other;
  3. (* choice *)
  4. puts This | That | The-Other;
  5. (* weighted choice *)
  6. puts 5: This | That;
  7. (* application *)
  8. puts foo.bar.baz;
  9. (* tuples *)
  10. puts <>;
  11. puts <1>;
  12. puts <1,2>;
  13. puts <1,2,3>;
  14. (* ranges *)
  15. puts 0..20;
  16. puts x..y;
  17. (* application *)
  18. puts f.x;
  19. (* lambdas *)
  20. puts { x => x };
  21. puts { True => "yes" ; False => "no" };