From 806dd4ff649a1fb9a28dc469cc17d7dd5dbc1da5 Mon Sep 17 00:00:00 2001 From: pacien Date: Fri, 23 Feb 2018 01:11:34 +0100 Subject: Adapt for new grammar --- res/ko_sample.tpc | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 res/ko_sample.tpc (limited to 'res/ko_sample.tpc') diff --git a/res/ko_sample.tpc b/res/ko_sample.tpc new file mode 100644 index 0000000..f3a4c7a --- /dev/null +++ b/res/ko_sample.tpc @@ -0,0 +1,24 @@ +/** + * UPEM / Compilation / Projet TPC + * Exemple de fichier source TPC invalide + * Pacien TRAN-GIRARD, Adam NAILI + */ + +const special = 'b'; + +char funky_func(int arg) { + return !arg; +} + +void main(void) { + void ret; + ret = 1 + funky_func(0) * 2; + + while (ret) { + readc(ret); + print(ret); + + if (ret == special) print('!'); + } +} + -- cgit v1.2.3