-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexemplu_corect.txt
More file actions
110 lines (89 loc) · 1.7 KB
/
exemplu_corect.txt
File metadata and controls
110 lines (89 loc) · 1.7 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
HOUSE A {
FIELD x : int;
FIELD y : int;
CHARM A() : A {
x <~ 19;
y <~ 90;
}
CHARM g(z : int) : int {
ACCIO z + 100;
}
}
SPELL f(z : int) : int {
PARCHMENT {
x : int;
b : int;
flag : bool;
}
x <~ 5;
b <~ 10;
PROPHECY (flag == true) {
ACCIO x + b;
}
ACCIO z * 10;
}
//comentariu
HOUSE B {
FIELD b : int;
FIELD bb : int;
CHARM B() : int {
b <~ 5;
bb <~ 10;
}
CHARM g( z : int ) : int {
PARCHMENT {
a : A;
x : int;
}
a <~ SUMMON A();
a ** A();
x <~ 100;
ACCIO x + a ** x + z;
}
CHARM f(z : int) : int {
ACCIO 200 * z;
}
}
SPELL bfunc(b : bool, s : string) : string {
PROPHECY (b == true) {
ACCIO s;
} else {
ACCIO "bau";
}
}
fx : float;
s : string;
ix : int;
b1 : bool;
b2 : bool;
obb : B;
oba : A;
DUEL {
fx <~ 65.0;
fx <~ fx + 10.0 * fx - 65.0;
Print(fx);
s <~ "test";
Print(s);
s <~ "otherstr";
Print(s);
oba <~ SUMMON A();
oba ** A();
obb <~ SUMMON B();
obb ** B();
ix <~ 10;
ix <~ ix + (ix + f(ix * 4)) * 2 + oba ** x * oba ** y + oba ** g(10) + obb ** b * obb ** bb;
Print(ix);
oba ** x <~ f(1000);
oba ** y <~ f(100);
b2 <~ true;
b1 <~ b2 || !b2;
Print(bfunc(b1, "s"));
Print(f(ix) + 5 > 5 + obb ** b);
Print(ix + 5 > ix + 6);
Print(b1 == false);
Print(oba ** x == oba ** y);
Print(ix + 5 > ix + 6 || (b1 == false && f(ix) + 5 > 5 + obb ** b) || oba ** x == oba ** y);
PROPHECY (ix + 2 > ix + 5 && ix + 3 > f(45 * 3) - 10) {
ix <~ 100;
}
}