fix compilation error & improve debug in yacc