First working solution of new task
This commit is contained in:
12
Project-02-03-04-05/triplaprograms/dataflow.tripla
Normal file
12
Project-02-03-04-05/triplaprograms/dataflow.tripla
Normal file
@@ -0,0 +1,12 @@
|
||||
s = 33;
|
||||
i = 0;
|
||||
j = 0;
|
||||
t = i + j;
|
||||
f = 6;
|
||||
while (s < 42) do {
|
||||
a = s - 1;
|
||||
c = (i + j) * (f + 1);
|
||||
if (c > 0) then j = j / c else i = j * c;
|
||||
i = (j * 2) / f;
|
||||
s = s + 1
|
||||
}
|
||||
9
Project-02-03-04-05/triplaprograms/reached.tripla
Normal file
9
Project-02-03-04-05/triplaprograms/reached.tripla
Normal file
@@ -0,0 +1,9 @@
|
||||
let f(x,y,z) {
|
||||
y = 2;
|
||||
z = 3;
|
||||
let g(x) {
|
||||
x = 7;
|
||||
if (y > 0) then g(y) else x = 8;
|
||||
x
|
||||
} in g(x) + x
|
||||
} in f(2,3)
|
||||
Reference in New Issue
Block a user