summaryrefslogtreecommitdiff
path: root/transfer/examples/aggregation/Abstract.gf
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2005-12-05 16:45:11 +0000
committerbringert <bringert@cs.chalmers.se>2005-12-05 16:45:11 +0000
commit7c24fcb38faeaada097d2797e9cb0f305dbc637e (patch)
tree5bee5bf8b09793d72ba4b8c60d90f3a72f6f7bec /transfer/examples/aggregation/Abstract.gf
parent747271941a9e4f698e985d6cb58efe2994e60d61 (diff)
Added aggregation example.
Diffstat (limited to 'transfer/examples/aggregation/Abstract.gf')
-rw-r--r--transfer/examples/aggregation/Abstract.gf24
1 files changed, 24 insertions, 0 deletions
diff --git a/transfer/examples/aggregation/Abstract.gf b/transfer/examples/aggregation/Abstract.gf
new file mode 100644
index 000000000..9d8b31d0d
--- /dev/null
+++ b/transfer/examples/aggregation/Abstract.gf
@@ -0,0 +1,24 @@
+-- testing transfer: aggregation by def definitions. AR 12/4/2003 -- 9/10
+
+-- p "Mary runs or John runs and John walks" | l -transfer=Aggregation
+-- Mary runs or John runs and walks
+-- Mary or John runs and John walks
+
+-- The two results are due to ambiguity in parsing. Thus it is not spurious!
+
+abstract Abstract = {
+
+cat
+ S ; NP ; VP ; Conj ;
+
+fun
+ Pred : NP -> VP -> S ;
+ ConjS : Conj -> S -> S -> S ;
+ ConjVP : Conj -> VP -> VP -> VP ;
+ ConjNP : Conj -> NP -> NP -> NP ;
+
+ John, Mary, Bill : NP ;
+ Walk, Run, Swim : VP ;
+ And, Or : Conj ;
+
+}