comparison src/CodeSegments.agda @ 1:73127e0ab57c

(none)
author soto@cr.ie.u-ryukyu.ac.jp
date Tue, 08 Sep 2020 18:38:08 +0900
parents
children
comparison
equal deleted inserted replaced
0:b919985837a3 1:73127e0ab57c
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