forked from GitHub/gf-core
lrec tutorial examples
This commit is contained in:
18
examples/lrec-tutorial/ZeroDut.gf
Normal file
18
examples/lrec-tutorial/ZeroDut.gf
Normal file
@@ -0,0 +1,18 @@
|
||||
concrete ZeroDut of Zero = {
|
||||
lincat
|
||||
S, NP, VP = Str ;
|
||||
V2 = {v,p : Str} ;
|
||||
lin
|
||||
Pred np vp = np ++ vp ;
|
||||
Compl v2 np = v2.v ++ np ++ v2.p ;
|
||||
John = "Jan" ;
|
||||
Mary = "Marie" ;
|
||||
Love = {v = "heeft" ; p = "lief"} ;
|
||||
}
|
||||
|
||||
--.
|
||||
|
||||
-- illustrates: discontinuous constituents
|
||||
--
|
||||
-- > p -lang=ZeroEng "John loves Mary" | aw -view=open -format=png
|
||||
|
||||
Reference in New Issue
Block a user