When I run bison -d -p xpathyy XPathGrammar.y -o XPathGrammar.cpp in Source/WebCore/xml there's a number of differences. The AtomString changes are relatively straightforward to address, but I'm not sure how to make yynerrs not appear. There's also IGNORE_CLANG_WARNINGS_BEGIN/END I'm not sure what to do with and the file starts with /* This file is generated using the following command: bison -d -p xpathyy XPathGrammar.y -o XPathGrammar.cpp */ which is not generated either.
I included a partial fix in https://github.com/WebKit/WebKit/pull/14233.
<rdar://problem/109994057>