aboutsummaryrefslogtreecommitdiff
path: root/CStack.dcl
blob: 8aa6824ab08a7a9ddcb9b27207bd9d59edada3ef (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
definition module ABC.CStack

from ABC.Def import ::InstrId

:: CSrc    :== Int
:: CDst    :== Int
:: CStack (:== [InstrId])

cs_init :: CStack
cs_get  :: CSrc CStack -> InstrId
cs_popn :: CSrc CStack -> CStack
cs_push :: InstrId CStack -> CStack