diff options
author | Adam NAILI | 2018-05-06 19:03:46 +0200 |
---|---|---|
committer | Adam NAILI | 2018-05-06 19:03:46 +0200 |
commit | 351a51f956bf3de06799428ba139ce1c701cb95a (patch) | |
tree | c881c62c0406b1b2d1890468bb4103057a23d2d6 /res | |
parent | 13e036c9ffcf670869b4682f8f6993cc6667ab07 (diff) | |
download | tpc-compiler-351a51f956bf3de06799428ba139ce1c701cb95a.tar.gz |
Lazy evaluation, Bool logic, IF and IFELSE structures implemented. Formatted a bit
Diffstat (limited to 'res')
-rw-r--r-- | res/test_if.tpc | 11 |
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 | ||
5 | entier main(void) { | 5 | entier 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 | } |