Mercurial > hg > Papers > 2023 > soto-master
view Paper/src/CodeSegments.agda @ 32:4915eaa51ee0 default tip
Add front
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 23 Feb 2023 18:39:56 +0900 |
parents | a72446879486 |
children |
line wrap: on
line source
cs2 : CodeSegment ds1 ds1 cs2 = cs id cs1 : CodeSegment ds1 ds1 cs1 = cs (\d -> goto cs2 d) cs0 : CodeSegment ds0 ds1 cs0 = cs (\d -> goto cs1 (record {c = (ds0.a d) + (ds0.b d)})) main : ds1 main = goto cs0 (record {a = 100 ; b = 50})