From 351a51f956bf3de06799428ba139ce1c701cb95a Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 6 May 2018 19:03:46 +0200 Subject: Lazy evaluation, Bool logic, IF and IFELSE structures implemented. Formatted a bit --- res/test_if.tpc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'res/test_if.tpc') 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 @@ /* Test file for simplified translator of a declaration of variables in C */ entier main(void) { - entier bool; - bool = 1; - if(bool){ - if(bool){ - print (bool); - } + entier bool1,bool2; + bool1 = 0; + bool2 = 0; + if(bool1 == bool2){ + print(0); } } -- cgit v1.2.3