repo.or.cz
/
prop.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
initial
[prop.git]
/
prop-src
/
T5.pcc
blob
5435d289efa0c826c3ce5003479e375e323b9df9
1
datatype T = f(T,T) | g(T,T) | a | b | c;
2
3
T foo(T e)
4
{
5
rewrite (e) type (T)
6
{
7
topdown:
8
f(a,b): b
9
| f(a,c): c
10
| g(X,Y): f(X,Y)
11
}
12
}