printing productions rules while reading tokens