Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Generic-swap/Sather/generic-swap-1.sa
Normal file
7
Task/Generic-swap/Sather/generic-swap-1.sa
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class SWAP{T} is
|
||||
swap(inout a, inout b:T) is
|
||||
t ::= a;
|
||||
a := b;
|
||||
b := t;
|
||||
end;
|
||||
end;
|
||||
8
Task/Generic-swap/Sather/generic-swap-2.sa
Normal file
8
Task/Generic-swap/Sather/generic-swap-2.sa
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class MAIN is
|
||||
main is
|
||||
x ::= 10;
|
||||
y ::= 20;
|
||||
SWAP{INT}::swap(inout x, inout y);
|
||||
#OUT + x + ", " + y + "\n";
|
||||
end;
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue