aquan.matzo 401 B

12345678910111213
  1. (* Below is a literal assignment, which is
  2. * identical to cons := "p"| "t" | "k" | "w" | "h" | "n"; *)
  3. cons ::= p t k w h n;
  4. (* And this could also be done with two rules and a literal
  5. * assignment *)
  6. vowel := ("a" | "e" | "i" | "o" | "u") (4: "" | "'");
  7. (* Here is a weighted disjunction *)
  8. syll := 4: cons vowel | vowel;
  9. (* And finally, here's an output statement *)
  10. puts syll rep[1..6, syll];