projet-traduction-langage/fichiersRat/src-rat-tds-test/test.rat

18 lines
247 B
Plaintext
Raw Normal View History

2021-11-24 13:13:45 +00:00
int add (int a int b){
int c = 0;
c = (0 + a);
return (a+(b+c));}
test{
int x = 3;
x = 4;
const y = 5;
int z = (x+y);
if(x<0){
bool x1 = true;
x1 = false;
}else{
rat x2 = [4/3];
int e = call add (num x2 y);
}
}