Mercurial > hg > Papers > 2018 > ryokka-thesis
comparison final_pre/src/CodeSegments.agda @ 7:28f900230c26
add final_pre
author | ryokka |
---|---|
date | Mon, 19 Feb 2018 23:32:24 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
6:d927f6b3d2b3 | 7:28f900230c26 |
---|---|
1 cs2 : CodeSegment ds1 ds1 | |
2 cs2 = cs id | |
3 | |
4 cs1 : CodeSegment ds1 ds1 | |
5 cs1 = cs (\d -> goto cs2 d) | |
6 | |
7 cs0 : CodeSegment ds0 ds1 | |
8 cs0 = cs (\d -> goto cs1 (record {c = (ds0.a d) + (ds0.b d)})) | |
9 | |
10 main : ds1 | |
11 main = goto cs0 (record {a = 100 ; b = 50}) | |
12 |