mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 03:09:33 -06:00
Transfer: Changed transfer program file extension from .tr to .tra to avoid collision with Troff file extension.
This commit is contained in:
23
transfer/examples/aggregation/tree.tra
Normal file
23
transfer/examples/aggregation/tree.tra
Normal file
@@ -0,0 +1,23 @@
|
||||
import prelude ;
|
||||
data Cat : Type where {
|
||||
Conj : Cat ;
|
||||
NP : Cat ;
|
||||
S : Cat ;
|
||||
VP : Cat
|
||||
} ;
|
||||
data Tree : Cat -> Type where {
|
||||
And : Tree Conj ;
|
||||
Bill : Tree NP ;
|
||||
ConjNP : Tree Conj -> Tree NP -> Tree NP -> Tree NP ;
|
||||
ConjS : Tree Conj -> Tree S -> Tree S -> Tree S ;
|
||||
ConjVP : Tree Conj -> Tree VP -> Tree VP -> Tree VP ;
|
||||
John : Tree NP ;
|
||||
Mary : Tree NP ;
|
||||
Or : Tree Conj ;
|
||||
Pred : Tree NP -> Tree VP -> Tree S ;
|
||||
Run : Tree VP ;
|
||||
Swim : Tree VP ;
|
||||
Walk : Tree VP
|
||||
} ;
|
||||
derive Eq Tree ;
|
||||
derive Compos Tree ;
|
||||
Reference in New Issue
Block a user