forked from GitHub/gf-core
Add Phrasebook to testsuite. Move grammars into subfolders. Add run-bench script.
This commit is contained in:
16
testsuite/lpgf/unittests/PreCnc.gf
Normal file
16
testsuite/lpgf/unittests/PreCnc.gf
Normal file
@@ -0,0 +1,16 @@
|
||||
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 } ;
|
||||
detS det = { s = det.s } ;
|
||||
}
|
||||
Reference in New Issue
Block a user