forked from GitHub/gf-core
Add support for pre
This commit is contained in:
15
testsuite/lpgf/PreCnc.gf
Normal file
15
testsuite/lpgf/PreCnc.gf
Normal file
@@ -0,0 +1,15 @@
|
||||
concrete PreCnc of Pre = {
|
||||
lincat
|
||||
S = { s : Str } ;
|
||||
N = { s : Str } ;
|
||||
Det = { s : Str } ;
|
||||
lin
|
||||
ant = { s = "ant" } ;
|
||||
dog = { s = "dog" } ;
|
||||
a = { s = pre {
|
||||
"a"|"e"|"i"|"o"|"u" => "an" ;
|
||||
_ => "a"
|
||||
} } ;
|
||||
the = { s = "the" } ;
|
||||
mkS det n = { s = det.s ++ n.s } ;
|
||||
}
|
||||
Reference in New Issue
Block a user