bug fixes in precedence.hpp and parser.hpp