L'évaluation des expressions est désormais correcte

This commit is contained in:
Yohann D'ANELLO 2020-05-16 02:10:26 +02:00
parent b49738e244
commit 80b4e20831
2 changed files with 3 additions and 0 deletions

BIN
syntaxique/expr Executable file

Binary file not shown.

View File

@ -18,6 +18,9 @@ void yyerror(char *s)
%token <i> INT %token <i> INT
%type <i> E %type <i> E
%left '+'
%left '*'
%% %%
S : E { printf("result=%d\n",$1); } S : E { printf("result=%d\n",$1); }