Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Stack/Sather/stack-2.sa
Normal file
14
Task/Stack/Sather/stack-2.sa
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
class MAIN is
|
||||
main is
|
||||
s ::= #STACK{INT};
|
||||
#OUT + "push values...\n";
|
||||
s.push(3);
|
||||
s.push(2);
|
||||
s.push(1);
|
||||
s.push(0);
|
||||
#OUT + "retrieving them...\n";
|
||||
loop
|
||||
#OUT + s.pop + "\n";
|
||||
until!(s.is_empty); end;
|
||||
end;
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue