Fixed printf

This commit is contained in:
Elies Tali 2021-05-10 12:41:51 +02:00
parent f4356f9d58
commit 75e9a6a8f3
2 changed files with 3 additions and 1 deletions

View file

@ -7,4 +7,6 @@ int main(){
int a; int a;
int c = fonction(3); int c = fonction(3);
stop(3); stop(3);
printf(c);
printf(c);
} }

View file

@ -104,7 +104,7 @@ else{
$$ = push("0_TEMPORARY_RETURN", 0, fonc.return_type); $$ = 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 : {$$ = 0; printf("Sans Params\n"); } ;
Params : Param SuiteParams {$$ = $2 + 1;}; Params : Param SuiteParams {$$ = $2 + 1;};