From b8f7e7b6843c2bff778ce3c74e355a03e7565499 Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 3 Jun 2018 15:30:53 +0200 Subject: Functions tables + void functions working (need to work on returns and parameters cause all functions are void here) --- res/test_global.tpc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'res') diff --git a/res/test_global.tpc b/res/test_global.tpc index 789f290..731fffb 100644 --- a/res/test_global.tpc +++ b/res/test_global.tpc @@ -4,9 +4,16 @@ entier r1,b,s,c,r2 ; caractere letter, digit, punct; +void calcul(void) { + entier i; + i = 3; + r1=12; + r2=13; + b = r1 + r2 + i; + print(b); +} + + entier main(void) { - r1=12; - r2=13; - b = r1 + r2; - print(b); + calcul(); } -- cgit v1.2.3