diff options
author | Adam NAILI | 2018-05-04 09:14:41 +0200 |
---|---|---|
committer | Adam NAILI | 2018-05-04 09:14:41 +0200 |
commit | 2ebd7d03e6d9ff5d8badc637ca4c6ab3c6db4e81 (patch) | |
tree | b50adeb1fc3189df196fef8c1dec40e32589a50d /res | |
parent | c9c4fbbde6e4f4f3942777cd9930cf40375e0ea9 (diff) | |
download | tpc-compiler-2ebd7d03e6d9ff5d8badc637ca4c6ab3c6db4e81.tar.gz |
DIVSTAR working : 'It's working ! It's working' said Anakin
Diffstat (limited to 'res')
-rw-r--r-- | res/test_add.tpc | 1 | ||||
-rw-r--r-- | res/test_mul.tpc | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/res/test_add.tpc b/res/test_add.tpc index 01e0403..2f6b9dd 100644 --- a/res/test_add.tpc +++ b/res/test_add.tpc | |||
@@ -1,6 +1,7 @@ | |||
1 | /* test-table-symboles.tpc */ | 1 | /* test-table-symboles.tpc */ |
2 | 2 | ||
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 | entier a; | ||
4 | 5 | ||
5 | entier main(void) { | 6 | entier main(void) { |
6 | entier a,b,res; | 7 | entier a,b,res; |
diff --git a/res/test_mul.tpc b/res/test_mul.tpc new file mode 100644 index 0000000..f3b6705 --- /dev/null +++ b/res/test_mul.tpc | |||
@@ -0,0 +1,12 @@ | |||
1 | /* test-table-symboles.tpc */ | ||
2 | |||
3 | /* Test file for simplified translator of a declaration of variables in C */ | ||
4 | entier a; | ||
5 | |||
6 | entier main(void) { | ||
7 | entier a,b,res; | ||
8 | a = 2; | ||
9 | b = 3; | ||
10 | res = a % b; | ||
11 | print(res); | ||
12 | } | ||