diff options
author | Adam NAILI | 2018-06-06 01:29:17 +0200 |
---|---|---|
committer | Adam NAILI | 2018-06-06 01:29:17 +0200 |
commit | d4b6619f654906b83c1fb09e2afc564975abef46 (patch) | |
tree | 149ec7c92f2982b6d5d25f232d429f715c58fd69 /res | |
parent | 8b58c6409f4217ceaf64d6195b383f03b8acf584 (diff) | |
download | tpc-compiler-d4b6619f654906b83c1fb09e2afc564975abef46.tar.gz |
Ok sample correction
Diffstat (limited to 'res')
-rw-r--r-- | res/ok_sample.tpc | 8 |
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 | ||
7 | const special = 'b'; | 7 | const special = 'b'; |
8 | 8 | ||
9 | caractere funky_func(entier arg) { | 9 | entier funky_func(entier arg) { |
10 | return !arg; | 10 | return !arg; |
11 | } | 11 | } |
12 | 12 | ||
13 | void main(void) { | 13 | void 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 | ||