replace barely initiated parser with c grammar generated from yacc