diff options
| author | bringert <bringert@cs.chalmers.se> | 2006-03-13 10:53:44 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2006-03-13 10:53:44 +0000 |
| commit | 941a9f35baa4a67c1ee5df89f1ae0f40677a214d (patch) | |
| tree | 272eda2074806b4aefa52f815838c8653ac70604 /transfer/examples/reflexive/tree.tra | |
| parent | c5eea4b375a67de8e2d74229d178cdb52cbde4df (diff) | |
Added transfer example: constructing reflexives.
Diffstat (limited to 'transfer/examples/reflexive/tree.tra')
| -rw-r--r-- | transfer/examples/reflexive/tree.tra | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/transfer/examples/reflexive/tree.tra b/transfer/examples/reflexive/tree.tra new file mode 100644 index 000000000..7bef5e019 --- /dev/null +++ b/transfer/examples/reflexive/tree.tra @@ -0,0 +1,21 @@ +import prelude ; +data Cat : Type where { + Conj : Cat ; + NP : Cat ; + S : Cat ; + V2 : Cat +} ; +data Tree : Cat -> Type where { + And : Tree Conj ; + Bill : Tree NP ; + ConjNP : Tree Conj -> Tree NP -> Tree NP -> Tree NP ; + John : Tree NP ; + Mary : Tree NP ; + Or : Tree Conj ; + PredV2 : Tree V2 -> Tree NP -> Tree NP -> Tree S ; + ReflV2 : Tree V2 -> Tree NP -> Tree S ; + See : Tree V2 ; + Whip : Tree V2 +} ; +derive Eq Tree ; +derive Compos Tree ; |
