Enable auto-genreating for .re and .y

as the title described.

thanks