aboutsummaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorAdam NAILI2018-06-06 01:29:17 +0200
committerAdam NAILI2018-06-06 01:29:17 +0200
commitd4b6619f654906b83c1fb09e2afc564975abef46 (patch)
tree149ec7c92f2982b6d5d25f232d429f715c58fd69 /res
parent8b58c6409f4217ceaf64d6195b383f03b8acf584 (diff)
downloadtpc-compiler-d4b6619f654906b83c1fb09e2afc564975abef46.tar.gz
Ok sample correction
Diffstat (limited to 'res')
-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