all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 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