summaryrefslogtreecommitdiff
path: root/src/lib/prononciation.mly
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-09-05 19:41:40 +0200
committerSébastien Dailly <sebastien@chimrod.com>2021-09-05 19:41:40 +0200
commit6a34154b77ac80f89df816ba0062f382d915fb22 (patch)
tree5dab18f15fe8555d5369a9c492228f6aa4d23001 /src/lib/prononciation.mly
parent853e281a6719125866f8b948540944c571b091c6 (diff)
Updated tests
Diffstat (limited to 'src/lib/prononciation.mly')
-rw-r--r--src/lib/prononciation.mly10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/prononciation.mly b/src/lib/prononciation.mly
index 65e203c..d367170 100644
--- a/src/lib/prononciation.mly
+++ b/src/lib/prononciation.mly
@@ -58,20 +58,23 @@
%start<Tokens.token list> main
%%
-
-voyel
+voyel_without_i
: A { A }
| E { letter_e $1 }
- | I { I }
| O { O }
| A U { O }
| E A U { O }
| O U { OU }
| U { U }
+voyel
+ : I { I }
+ | voyel_without_i { $1 }
+
letters
: voyel { $1 :: [] }
+ | voyel_without_i I { $1 :: I :: []}
| Space { Space :: [] }
| Sep { Sep :: [] }
@@ -101,6 +104,7 @@ letters
| L L { Nothing :: L :: [] }
| I L { I :: L :: [] }
| I L L { I :: Y :: [] }
+ | voyel_without_i I L L { $1 :: Y :: [] }
| L { L :: [] }
| M { M :: [] }
| M M { M :: [] }