aboutsummaryrefslogtreecommitdiff
path: root/res/test_if.tpc
diff options
context:
space:
mode:
authorAdam NAILI2018-05-06 19:03:46 +0200
committerAdam NAILI2018-05-06 19:03:46 +0200
commit351a51f956bf3de06799428ba139ce1c701cb95a (patch)
treec881c62c0406b1b2d1890468bb4103057a23d2d6 /res/test_if.tpc
parent13e036c9ffcf670869b4682f8f6993cc6667ab07 (diff)
downloadtpc-compiler-351a51f956bf3de06799428ba139ce1c701cb95a.tar.gz
Lazy evaluation, Bool logic, IF and IFELSE structures implemented. Formatted a bit
Diffstat (limited to 'res/test_if.tpc')
-rw-r--r--res/test_if.tpc11
1 files changed, 5 insertions, 6 deletions
diff --git a/res/test_if.tpc b/res/test_if.tpc
index 04f7505..adb097a 100644
--- a/res/test_if.tpc
+++ b/res/test_if.tpc
@@ -3,11 +3,10 @@
3/* Test file for simplified translator of a declaration of variables in C */ 3/* Test file for simplified translator of a declaration of variables in C */
4 4
5entier main(void) { 5entier main(void) {
6 entier bool; 6 entier bool1,bool2;
7 bool = 1; 7 bool1 = 0;
8 if(bool){ 8 bool2 = 0;
9 if(bool){ 9 if(bool1 == bool2){
10 print (bool); 10 print(0);
11 }
12 } 11 }
13} 12}