L'évaluation des expressions est désormais correcte
This commit is contained in:
parent
b49738e244
commit
80b4e20831
Binary file not shown.
|
@ -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); }
|
||||||
|
|
Loading…
Reference in New Issue