Mercurial > hg > Papers > 2020 > soto-midterm
annotate src/AgdaStackDS.agda @ 1:73127e0ab57c
(none)
author | soto@cr.ie.u-ryukyu.ac.jp |
---|---|
date | Tue, 08 Sep 2020 18:38:08 +0900 |
parents | |
children |
rev | line source |
---|---|
1 | 1 record Context : Set where |
2 field | |
3 -- fields for stack | |
4 element : Maybe A | |
5 | |
6 | |
7 open import subtype Context as N | |
8 | |
9 record Meta : Set₁ where | |
10 field | |
11 -- context as set of data segments | |
12 context : Context | |
13 stack : SingleLinkedStack A | |
14 nextCS : N.CodeSegment Context Context | |
15 | |
16 open import subtype Meta as M | |
17 |