Is there a way to have Yacc/Bison print out all the reductions it does to the input it processes? This would be a great debugging aid. I already tried
| Item1 { printf("Item1: %s\n", yytext); }
which only prints the last character and
| Item1 { printf("Item1: %s\n", $$); }
which results in a format argument is not a pointer warning from the compiler. Am I doing it wrong?