From 6af889039d232381b13f1f07a694abcfaff2535e Mon Sep 17 00:00:00 2001 From: Sébastien Dailly Date: Thu, 2 Sep 2021 18:32:06 +0200 Subject: Added some tests --- src/lib/prononciation.mly | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/lib/prononciation.mly') diff --git a/src/lib/prononciation.mly b/src/lib/prononciation.mly index c6c828e..be153cb 100644 --- a/src/lib/prononciation.mly +++ b/src/lib/prononciation.mly @@ -27,8 +27,6 @@ %token C %token D %token E -%token E_ACUTE -%token E_AGRAVE %token F %token G %token H @@ -61,8 +59,8 @@ %% -voyel: - | A { A } +voyel + : A { A } | E { letter_e $1 } | I { I } | O { O } @@ -72,8 +70,8 @@ voyel: | U { U } -letters: - | voyel { $1 :: [] } +letters + : voyel { $1 :: [] } | Space { Space :: [] } | Sep { Sep :: [] } @@ -91,6 +89,7 @@ letters: | G { G :: [] } | G I { J :: I :: [] } | G E { J :: letter_e $2 :: [] } + | G E voyel { J :: $3 :: [] } | G U { G :: U :: [] } | G U I { G :: I :: [] } | G U E { G :: letter_e $3 :: [] } @@ -112,7 +111,6 @@ letters: | O I N { W :: I :: N :: [] } | P { P :: [] } - | P H { F :: [] } | Q { K :: [] } | Q U { K :: [] } -- cgit v1.2.3