aboutsummaryrefslogtreecommitdiff
path: root/res/test_mul.tpc
diff options
context:
space:
mode:
authorAdam NAILI2018-06-06 03:06:34 +0200
committerAdam NAILI2018-06-06 03:06:34 +0200
commit38771494bada2b71a5e3a320938e6a259c1e208c (patch)
treec8c14d57d981a67802d75f966267e0fd64563605 /res/test_mul.tpc
parent7ab0b07d8224280330320238c45889c460cd0bda (diff)
downloadtpc-compiler-38771494bada2b71a5e3a320938e6a259c1e208c.tar.gz
Fixing chain declarator and array conflict
Diffstat (limited to 'res/test_mul.tpc')
-rw-r--r--res/test_mul.tpc7
1 files changed, 4 insertions, 3 deletions
diff --git a/res/test_mul.tpc b/res/test_mul.tpc
index f3b6705..62a8080 100644
--- a/res/test_mul.tpc
+++ b/res/test_mul.tpc
@@ -1,12 +1,13 @@
1/* test-table-symboles.tpc */
2
3/* Test file for simplified translator of a declaration of variables in C */
4entier a; 1entier a;
5 2
6entier main(void) { 3entier main(void) {
7 entier a,b,res; 4 entier a,b,res;
8 a = 2; 5 a = 2;
9 b = 3; 6 b = 3;
7 res = a * b;
8 print(res);
9 res = a / b;
10 print(res);
10 res = a % b; 11 res = a % b;
11 print(res); 12 print(res);
12} 13}