mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-21 17:12:50 -06:00
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