{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

stackadt.md - PROCEDURE stackfull(s stack BOOLEAN PROCEDURE...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
DEFINITION MODULE stackadt; FROM elements IMPORT elementtype; TYPE stack = RECORD storage : ARRAY [1..10] OF elementtype; top: [0..10] END; PROCEDURE define (VAR s : stack); PROCEDURE makempty (VAR s : stack); PROCEDURE empty (s : stack): BOOLEAN;
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: PROCEDURE stackfull (s : stack): BOOLEAN; PROCEDURE push (VAR s : stack; item: elementtype); PROCEDURE pop (VAR s : stack; VAR item: elementtype); PROCEDURE topstack (s : stack): elementtype; END stackadt....
View Full Document

{[ snackBarMessage ]}