-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtokenizertext.txt
More file actions
66 lines (63 loc) · 1.27 KB
/
tokenizertext.txt
File metadata and controls
66 lines (63 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
for i in [1,2,3] do
write i**3;
enddo;
write "Hello World";
// Grundrechenarten
write 1 + 2 - 5 * 7 / 9;
// Jetzt mit Listen
write [1,1,1] + 2 - [5,5,5] * 7 / 9;
// Entspricht SEQTO in Arden
write 100 ... 200;
// Ein paar Aggregationsoperatoren
write maximum [20,30,40,100,50];
write minimum [20,30,40,100,50];
write first [20,30,40,100,50];
write last [20,30,40,100,50];
write sum [20,30,40,100,50];
write last 4711;
write count [20,30,40,100,50];
// Boolesche Operatoren
write true and not false;
// Vergleichsoperatoren
write 1 < 2;
write 2 <= 2;
write 2 = 2;
write 5 > 0;
write 5 is within 3 to 8;
write 5 is within 3 to [8,9];
write [1,2,null,"Hallo", now] is number;
write [1,2,"Hallo", now] is list;
x := 1;
write x;
write 2022-12-06T12:00:00;
write now;
write currenttime;
x := 4711;
write time of x;
time of x := now;
write time of x;
y := 4712;
time of y := now;
z := x + y;
write z;
write time of z;
//IF
bmi := 38;
if bmi < 30 then
write "Normalgewicht";
elseif bmi < 35 then
write "Adipositas 1";
elseif bmi < 40 then
write "Adipositas 2";
else
write "Adipositas 3";
endif;
write -2**2;
// Zeitstempel müssen verschieden sein:
x := 2;
time of x := 2020-12-06T12:00:00;
// Kopie von x
y := x;
time of y := 2022-12-06T12:00:00;
write time of x;
write time of y;