new pre syntax (as alternative): pre {"o" | "i" => "an" ; _ => "a"}

This commit is contained in:
aarne
2009-05-15 16:45:16 +00:00
parent 27c602b14f
commit dde36ed01c
4 changed files with 3473 additions and 3405 deletions

View File

@@ -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" ;

View File

@@ -16,5 +16,6 @@ oper
elision : (_,_,_ : Str) -> Str = \il, l', lo ->
pre {il ; l' / vocale ; lo / sImpuro} ;
--- pre {vocale => l' ; sImpuro => lo ; _ => il} ;
}