aquan.matzo 429 B

1234567891011121314
  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 (6 @ syll); *)
  11. puts syll syll syll syll;