diff options
author | pacien | 2018-06-06 14:14:55 +0200 |
---|---|---|
committer | pacien | 2018-06-06 14:14:55 +0200 |
commit | 01406ad25ff49d5c5f722f34187d2063cefea5ed (patch) | |
tree | 4d96a701aa1986abe79f2469ffd641c4123749bb /res/ko_sample.tpc | |
parent | 64d73526bf9d39ad9d3f04509f6656abde2240fd (diff) | |
download | tpc-compiler-01406ad25ff49d5c5f722f34187d2063cefea5ed.tar.gz |
require main func and rename tests
Diffstat (limited to 'res/ko_sample.tpc')
-rw-r--r-- | res/ko_sample.tpc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/res/ko_sample.tpc b/res/ko_sample.tpc deleted file mode 100644 index 9dc344f..0000000 --- a/res/ko_sample.tpc +++ /dev/null | |||
@@ -1,24 +0,0 @@ | |||
1 | /** | ||
2 | * UPEM / Compilation / Projet TPC | ||
3 | * Exemple de fichier source TPC invalide | ||
4 | * Pacien TRAN-GIRARD, Adam NAILI | ||
5 | */ | ||
6 | |||
7 | const special = 'b'; | ||
8 | |||
9 | caractere funky_func(entier arg) { | ||
10 | return !arg; | ||
11 | } | ||
12 | |||
13 | void main(void) { | ||
14 | void ret; | ||
15 | ret = 1 + funky_func(0) * 2; | ||
16 | |||
17 | while (ret) { | ||
18 | readc(ret); | ||
19 | print(ret); | ||
20 | |||
21 | if (ret == special) print('!'); | ||
22 | } | ||
23 | } | ||
24 | |||