comparison final_main/src/CodeSegments.agda @ 0:83f997abf3b5

first commit
author e155702
date Thu, 14 Feb 2019 16:51:50 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:83f997abf3b5
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