diff options
| author | bringert <bringert@cs.chalmers.se> | 2005-12-05 16:45:11 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2005-12-05 16:45:11 +0000 |
| commit | 7c24fcb38faeaada097d2797e9cb0f305dbc637e (patch) | |
| tree | 5bee5bf8b09793d72ba4b8c60d90f3a72f6f7bec /transfer/examples/aggregation/tree.tr | |
| parent | 747271941a9e4f698e985d6cb58efe2994e60d61 (diff) | |
Added aggregation example.
Diffstat (limited to 'transfer/examples/aggregation/tree.tr')
| -rw-r--r-- | transfer/examples/aggregation/tree.tr | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/transfer/examples/aggregation/tree.tr b/transfer/examples/aggregation/tree.tr new file mode 100644 index 000000000..2e9ead648 --- /dev/null +++ b/transfer/examples/aggregation/tree.tr @@ -0,0 +1,20 @@ +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 +} |
