Archived
1
0
Fork 0
This repository has been archived on 2023-11-10. You can view files and clone it, but cannot push or open issues or pull requests.
SLOTH/examples/acid.sl

38 lines
832 B
Text

% a test of most of the features of the langauge the program itself
% is totally meaningless, but should print out "42.000000" at the end.
% if you get 42, there's a good chance you did everything right!
real_87_varNAME := 2.0 * (12.0 - 6.0) + 4.5;
X2222 := (real_87_varNAME - 1/2) / 4.0;
if 3 < 4 && 5 != 6 then
_a := 5;
else
_a := 17;
if 3 >= 3.01 || 5 == 7 then
X2222 := X2222 + 10;
if _a > X2222 then NUM := X2222 * _a;
i := 70;
while i > 0 do begin
NUM := NUM + 1;
i := i - 7;
end
if !!!(i != 0) then NUM := NUM + 2;
while NUM < 10 do NUM := NUM + 1;
if NUM > 20 then
if NUM > 30 then
if NUM > 40 then
NUM := NUM - 10;
else
NUM := NUM + 5;
else begin
NUM := real_87_varNAME - NUM;
end
NUM := NUM - .5;
begin
a := 0-2;
a := a + 3;
NUM := NUM + a;
end
print NUM + (6 - 1 - 1) + .5;