summaryrefslogtreecommitdiff
path: root/examples/tutorial/syntax/Syntax.gf
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2007-10-04 13:43:29 +0000
committeraarne <aarne@cs.chalmers.se>2007-10-04 13:43:29 +0000
commitafbab92605017007ce6fed3922bc4956c2edbfbe (patch)
tree0a9676528388e4a488136332a00755253bb584b0 /examples/tutorial/syntax/Syntax.gf
parent61dfd0326ca88385e207338f3fff1c0bcf368279 (diff)
resource application example in tutorial/syntax
Diffstat (limited to 'examples/tutorial/syntax/Syntax.gf')
-rw-r--r--examples/tutorial/syntax/Syntax.gf17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/tutorial/syntax/Syntax.gf b/examples/tutorial/syntax/Syntax.gf
index e75f7dd0c..3c7b0b7c0 100644
--- a/examples/tutorial/syntax/Syntax.gf
+++ b/examples/tutorial/syntax/Syntax.gf
@@ -23,4 +23,21 @@ oper
= \np,ap -> PredVP PPos np (ComplAP ap) ;
} ;
+ mkNP : Det -> CN -> NP
+ = DetCN ;
+
+ mkCN = overload {
+ mkCN : AP -> CN -> CN
+ = ModCN ;
+ mkCN : N -> CN
+ = UseN ;
+ } ;
+
+ mkAP = overload {
+ mkAP : AdA -> AP -> AP
+ = AdAP ;
+ mkAP : A -> AP
+ = UseA ;
+ } ;
+
} \ No newline at end of file