forked from GitHub/gf-core
gf-book web page index and toc
This commit is contained in:
22
gf-book/examples/chapter6/VerbsEng.gf
Normal file
22
gf-book/examples/chapter6/VerbsEng.gf
Normal file
@@ -0,0 +1,22 @@
|
||||
concrete VerbsEng of Verbs = {
|
||||
|
||||
lincat
|
||||
S, NP, Subcat, V = Str ; Args = Str * Str ;
|
||||
|
||||
lin
|
||||
cIntr = [] ;
|
||||
cTr = [] ;
|
||||
cS = [] ;
|
||||
|
||||
aIntr su = <su,[]> ;
|
||||
aTr su ob = <su,ob> ;
|
||||
aS su s = <su,"that" ++ s> ;
|
||||
|
||||
pred _ v xs = xs.p1 ++ v ++ xs.p2 ;
|
||||
|
||||
john = "John" ; mary = "Mary" ;
|
||||
walk = "walks" ;
|
||||
love = "loves" ;
|
||||
know = "knows" ;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user