From 38771494bada2b71a5e3a320938e6a259c1e208c Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Wed, 6 Jun 2018 03:06:34 +0200 Subject: Fixing chain declarator and array conflict --- res/test_global.tpc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'res/test_global.tpc') 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 @@ -/* test-table-symboles.tpc */ - -/* Test file for simplified translator of a declaration of variables in C */ entier r1,b,s,c,r2 ; caractere letter, digit, punct; +entier i; + void calcul(void) { - entier i; - i = 3; r1=12; r2=13; - b = r1 + r2 + i; + s = 3; + + b = r1 + r2 + s; print(b); } -- cgit v1.2.3