I have a grammar like this :
S : value1 ':' value2 ';' {printf("%s %s",$1,$3);};
input : Hello : World ;
output : Hello Hello
value1 and value2 are both Strings.
The probleme is that $3 is returning the same value as $1 and I can't find the reason.
I found the solution i just forgot to update the yylval in value2.