aquan.matzo 477 B

123456789101112131415
  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. cons := 'p'| 't' | 'k' | 'w' | 'h' | 'n';
  5. (* And this could also be done with two rules and a literal
  6. * assignment *)
  7. vowel := ('a' | 'e' | 'i' | 'o' | 'u') (4: '' | '\'');
  8. (* Here is a weighted disjunction *)
  9. syll := 4: cons vowel | vowel;
  10. (* And finally, here's an output statement *)
  11. (* puts syll (6 @ syll); *)
  12. puts syll syll syll syll;