Precedence tests for parser