aboutsummaryrefslogtreecommitdiff
path: root/res/test_global.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_global.tpc
parent7ab0b07d8224280330320238c45889c460cd0bda (diff)
downloadtpc-compiler-38771494bada2b71a5e3a320938e6a259c1e208c.tar.gz
Fixing chain declarator and array conflict
Diffstat (limited to 'res/test_global.tpc')
-rw-r--r--res/test_global.tpc11
1 files changed, 5 insertions, 6 deletions
diff --git a/res/test_global.tpc b/res/test_global.tpc
index 731fffb..8fda248 100644
--- a/res/test_global.tpc
+++ b/res/test_global.tpc
@@ -1,15 +1,14 @@
1/* test-table-symboles.tpc */
2
3/* Test file for simplified translator of a declaration of variables in C */
4entier r1,b,s,c,r2 ; 1entier r1,b,s,c,r2 ;
5caractere letter, digit, punct; 2caractere letter, digit, punct;
3entier i;
4
6 5
7void calcul(void) { 6void calcul(void) {
8 entier i;
9 i = 3;
10 r1=12; 7 r1=12;
11 r2=13; 8 r2=13;
12 b = r1 + r2 + i; 9 s = 3;
10
11 b = r1 + r2 + s;
13 print(b); 12 print(b);
14} 13}
15 14