summaryrefslogtreecommitdiff
path: root/examples/lrec-tutorial/ZeroGer.gf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/lrec-tutorial/ZeroGer.gf')
-rw-r--r--examples/lrec-tutorial/ZeroGer.gf19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/lrec-tutorial/ZeroGer.gf b/examples/lrec-tutorial/ZeroGer.gf
new file mode 100644
index 000000000..ab12ddf99
--- /dev/null
+++ b/examples/lrec-tutorial/ZeroGer.gf
@@ -0,0 +1,19 @@
+concrete ZeroGer 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 = "Johann" ;
+ Mary = "Maria" ;
+ Love = {v = "hat" ; p = "lieb"} ;
+}
+
+--.
+
+-- illustrates: discontinuous constituents
+-- contrived, since we also have "liebt"
+--
+-- > p -lang=ZeroEng "John loves Mary" | aw -view=open -format=png
+