tp-langages-formels/syntaxique/test.my

41 lines
409 B
Plaintext
Raw Normal View History

2020-05-16 00:49:34 +00:00
bool x,y,z;
x := true;
y := true;
2020-05-16 00:59:03 +00:00
if x <=> y then
z := x && y;
print x,y,z
else
print y,x,z
fi;
2020-05-16 00:49:34 +00:00
x := true;
y := false;
z := x <=> y;
2020-05-16 00:59:03 +00:00
if x <=> y then
z := x && y;
print x,y,z
else
print y,x,z
fi;
2020-05-16 00:49:34 +00:00
x := false;
y := true;
z := x <=> y;
2020-05-16 00:59:03 +00:00
if x <=> y then
z := x && y;
print x,y,z
else
print y,x,z
fi;
2020-05-16 00:49:34 +00:00
x := false;
y := false;
z := x <=> y;
2020-05-16 00:59:03 +00:00
if x <=> y then
z := x && y;
print x,y,z
else
print y,x,z
fi