From 6a34154b77ac80f89df816ba0062f382d915fb22 Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Sun, 5 Sep 2021 19:41:40 +0200 Subject: Updated tests --- src/lib/prononciation.mly | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/lib/prononciation.mly') 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 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 :: [] } -- cgit v1.2.3