Browse Source

add more examples

Getty Ritter 2 years ago
parent
commit
251946a70f
2 changed files with 20 additions and 0 deletions
  1. 8 0
      examples/auran.matzo
  2. 12 0
      examples/goblin.matzo

+ 8 - 0
examples/auran.matzo

@@ -0,0 +1,8 @@
+word := start (rep.4.syll) end;
+syll := vowel cons;
+start := 3: cons | 2: '';
+end := 3: vowel | vowel 's'| vowel 'n';
+cons ::= p b m m f v t t t d n n s s s z l k g g gg sh j l r th th th;
+vowel ::= a a e e i i i o u eu au ae ai oi;
+
+puts word;

+ 12 - 0
examples/goblin.matzo

@@ -0,0 +1,12 @@
+word := init ending | init syll ending | init syll syll ending;
+
+init := initcons vowel | vowel | vowel cons vowel;
+syll := cons vowel;
+ending := cons | cons vowel;
+
+cons := 10: basecons | 'l' initcons | 'r' initcons;
+basecons ::= b d f g j k l m n ñ p r s t x z tx dd ll rr ts tt tz sk;
+initcons ::= b d f g j k l m n n ñ p r s t t x z;
+vowel    ::= a a i u e e o o;
+
+puts word;