Bison grammar partially working with test file