summaryrefslogtreecommitdiff
path: root/src/lib/prononciation.mly
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-08-28 20:01:54 +0200
committerSébastien Dailly <sebastien@chimrod.com>2021-08-28 20:01:54 +0200
commit3b8c136ebdba7f4b5b4d6baad08d0a75c3b2dc86 (patch)
tree62341b36574a0ded0d4fe38ea9ec16036f27dfd4 /src/lib/prononciation.mly
parent26faec7a69051f639b50c8e8741f0823c6be52a2 (diff)
Update
Diffstat (limited to 'src/lib/prononciation.mly')
-rw-r--r--src/lib/prononciation.mly22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/lib/prononciation.mly b/src/lib/prononciation.mly
index 5dbf153..6fe0d5f 100644
--- a/src/lib/prononciation.mly
+++ b/src/lib/prononciation.mly
@@ -13,20 +13,18 @@
%start<Tokens.token list> main
%%
-initial_voyel:
+voyel:
| A { A }
- | A U { O }
| E { E }
| I { I }
| O { O }
+ | A U { O }
+ | E A U { O }
| O U { OU }
| U { U }
| E_ACUTE { E_ACUTE }
| E_AGRAVE { E_AGRAVE }
-voyel:
- | initial_voyel { $1 }
-
letters:
| { [] }
@@ -35,23 +33,28 @@ letters:
| letters Sep { Sep :: $1 }
| letters B { B :: $1 }
- | letters C %prec Low { K :: $1 }
+ | letters C { K :: $1 }
| letters C H { X :: $1 }
| letters C I { I :: S :: $1 }
| letters C E { E :: S :: $1 }
| letters C U I { I :: K :: $1 }
| letters C U E { E :: K :: $1 }
| letters D { D :: $1 }
+ | letters D D { D :: $1 }
| letters F { F :: $1 }
- | letters G %prec Low { G :: $1 }
+ | letters G { G :: $1 }
| letters G I { I :: J :: $1 }
| letters G E { E :: J :: $1 }
| letters G U I { I :: G :: $1 }
| letters G U E { E :: G :: $1 }
+ | letters H { Sep :: $1 }
- | letters I L L { Y :: $1 }
| letters J { J :: $1 }
| letters K { K :: $1 }
+ | letters E L L { L :: E_AGRAVE :: $1 }
+ | letters E L { L :: E :: $1 }
+ | letters I L L { Y :: I :: $1 }
+ | letters I L { L :: I :: $1 }
| letters L { L :: $1 }
| letters M { M :: $1 }
| letters M M { M :: $1 }
@@ -68,6 +71,7 @@ letters:
| letters R { R :: $1 }
| letters S S { S :: $1 }
+ | letters S H { X :: $1 }
| letters S { SZ :: $1 }
| letters T { T :: $1 }
@@ -79,4 +83,4 @@ letters:
| letters Z { Z :: $1 }
main:
- letters EOL { EOL::$1 }
+ | letters EOL { EOL::$1 }