update yacc sample