From 75e9a6a8f3d73bcc8bc6450f5557499822b7bf12 Mon Sep 17 00:00:00 2001 From: tali Date: Mon, 10 May 2021 12:41:51 +0200 Subject: [PATCH] Fixed printf --- Fichiers_Tests/progC | 2 ++ Lex_Yacc/as.y | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Fichiers_Tests/progC b/Fichiers_Tests/progC index 32d6456..877fc12 100644 --- a/Fichiers_Tests/progC +++ b/Fichiers_Tests/progC @@ -7,4 +7,6 @@ int main(){ int a; int c = fonction(3); stop(3); + printf(c); + printf(c); } diff --git a/Lex_Yacc/as.y b/Lex_Yacc/as.y index 5977a02..5b2e13e 100644 --- a/Lex_Yacc/as.y +++ b/Lex_Yacc/as.y @@ -104,7 +104,7 @@ else{ $$ = push("0_TEMPORARY_RETURN", 0, fonc.return_type); }}; -Invocation : tPRINTF tOBRACE E tCBRACE{add_operation(PRI,$3,0,0); pop();}; +Invocation : tPRINTF tOBRACE E tCBRACE{add_operation(PRI,$3,0,0);}; Params : {$$ = 0; printf("Sans Params\n"); } ; Params : Param SuiteParams {$$ = $2 + 1;};