mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-19 17:59:32 -06:00
new pre syntax (as alternative): pre {"o" | "i" => "an" ; _ => "a"}
This commit is contained in:
@@ -178,6 +178,10 @@ resource ResEng = ParamX ** open Prelude in {
|
||||
"a" ;
|
||||
"an" / strs {"a" ; "e" ; "i" ; "o" ; "A" ; "E" ; "I" ; "O" }
|
||||
} ;
|
||||
--- artIndef = pre {
|
||||
--- "a" | "e" | "i" | "o" | "A" | "E" | "I" | "O" => "an" ;
|
||||
--- _ => "a"
|
||||
--- } ;
|
||||
|
||||
artDef = "the" ;
|
||||
|
||||
|
||||
@@ -16,5 +16,6 @@ oper
|
||||
|
||||
elision : (_,_,_ : Str) -> Str = \il, l', lo ->
|
||||
pre {il ; l' / vocale ; lo / sImpuro} ;
|
||||
--- pre {vocale => l' ; sImpuro => lo ; _ => il} ;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user