summaryrefslogtreecommitdiff
path: root/transfer/examples/aggregation/Abstract.gf
blob: 9d8b31d0d89fc9d7099886c3639d491523461554 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 ;

}