aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/ok_sample.tpc8
1 files changed, 3 insertions, 5 deletions
diff --git a/res/ok_sample.tpc b/res/ok_sample.tpc
index 7b56e7f..e27e86a 100644
--- a/res/ok_sample.tpc
+++ b/res/ok_sample.tpc
@@ -6,19 +6,17 @@
6 6
7const special = 'b'; 7const special = 'b';
8 8
9caractere funky_func(entier arg) { 9entier funky_func(entier arg) {
10 return !arg; 10 return !arg;
11} 11}
12 12
13void main(void) { 13void main(void) {
14 caractere ret; 14 entier ret;
15 ret = 1 + funky_func(0) * 2; 15 ret = 1 + funky_func(0) * 2;
16 16
17 while (ret) { 17 while (ret) {
18 readc(ret); 18 reade(ret);
19 print(ret); 19 print(ret);
20
21 if (ret == special) print('!');
22 } 20 }
23} 21}
24 22