mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-09 19:22:50 -06:00
Finish type passing in val2lin, generalise projection case and pass FoodsFre testsuite.
This commit is contained in:
20
testsuite/lpgf/ProjectionCnc.gf
Normal file
20
testsuite/lpgf/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