1
0
forked from GitHub/gf-core

experiment with dep resource

This commit is contained in:
aarne
2005-08-31 20:43:38 +00:00
parent 62804db4fb
commit 78a8b4b2ce
4 changed files with 90 additions and 0 deletions

26
grammars/dep/DepEng.gf Normal file
View File

@@ -0,0 +1,26 @@
-- to test:
-- p -cat=SG -tr "who walks" | pt -transform=typecheck -tr | l
concrete DepEng of Dep = {
lincat
NType, VType = {s : Str} ;
SG = {s : Str} ;
NG = {s : Str} ;
VG = {s : Str} ;
CG = {s : Str} ;
lin
NtS, NtQ = {s = []} ;
Vt1, Vt2, VtS = {s = []} ;
MkSG n v ng vg cg = {s = n.s ++ v.s ++ ng.s ++ vg.s ++ cg.s} ;
CG1 = {s = []} ;
CG2 ng = ng ;
John = {s = "John"} ;
Who = {s = "who"} ;
Walk = {s = "walks"} ;
Love = {s = "loves"} ;
}