Browse Source

Fixed printf

Elies Tali 2 years ago
parent
commit
75e9a6a8f3
2 changed files with 3 additions and 1 deletions
  1. 2
    0
      Fichiers_Tests/progC
  2. 1
    1
      Lex_Yacc/as.y

+ 2
- 0
Fichiers_Tests/progC View File

7
 	int a;
7
 	int a;
8
 	int c = fonction(3);
8
 	int c = fonction(3);
9
 	stop(3);
9
 	stop(3);
10
+	printf(c);
11
+	printf(c);
10
 }
12
 }

+ 1
- 1
Lex_Yacc/as.y View File

104
 $$ = push("0_TEMPORARY_RETURN", 0, fonc.return_type); 
104
 $$ = push("0_TEMPORARY_RETURN", 0, fonc.return_type); 
105
 }};
105
 }};
106
 
106
 
107
-Invocation : tPRINTF tOBRACE E tCBRACE{add_operation(PRI,$3,0,0); pop();};
107
+Invocation : tPRINTF tOBRACE E tCBRACE{add_operation(PRI,$3,0,0);};
108
 
108
 
109
 Params : {$$ = 0; printf("Sans Params\n"); } ;
109
 Params : {$$ = 0; printf("Sans Params\n"); } ;
110
 Params : Param SuiteParams {$$ = $2 + 1;};
110
 Params : Param SuiteParams {$$ = $2 + 1;};

Loading…
Cancel
Save