forked from GitHub/gf-core
Add Phrasebook to testsuite. Move grammars into subfolders. Add run-bench script.
This commit is contained in:
20
testsuite/lpgf/unittests/ProjectionCnc.gf
Normal file
20
testsuite/lpgf/unittests/ProjectionCnc.gf
Normal file
@@ -0,0 +1,20 @@
|
||||
concrete ProjectionCnc of Projection = {
|
||||
-- param Case = Nom | Acc ;
|
||||
|
||||
lincat
|
||||
Comment = {s : Str} ;
|
||||
Item = {
|
||||
-- s : Case => {comp : Str} ;
|
||||
nom : {comp: Str}
|
||||
} ;
|
||||
lin
|
||||
Wine = {
|
||||
-- s = table {
|
||||
-- Nom => {comp = "ce" ++ "vin"} ;
|
||||
-- Acc => {comp = "ce" ++ "vin"}
|
||||
-- } ;
|
||||
nom = {comp = "ce" ++ "vin"} ;
|
||||
} ;
|
||||
-- Pred item = { s = ((item.s)!Nom).comp } ;
|
||||
Pred item = { s = (item.nom).comp } ;
|
||||
}
|
||||
Reference in New Issue
Block a user