raz / conform / run / mods / Stack.raz

16 lines · 253 B · raw · history · last change 264716cb

1module Stack;
2import Ints := Pile(I64);
3import SYSTEM;
4
5var
6 s: Ints.Pile;
7 p*: ^Ints.Pile; (* s, which only this module could change by its name *)
8
9proc top*(): I64;
10begin
11 return Ints.top(p);
12end;
13
14begin
15 p := SYSTEM.ADR(s);
16end Stack.