Bug 257189

Summary: XPathGrammar.y and XPathGrammar.cpp are out-of-sync
Product: WebKit Reporter: Anne van Kesteren <annevk>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, cdumez, don.olmstead, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Anne van Kesteren 2023-05-23 01:07:57 PDT
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.
Comment 1 Anne van Kesteren 2023-05-23 01:29:14 PDT
I included a partial fix in https://github.com/WebKit/WebKit/pull/14233.
Comment 2 Radar WebKit Bug Importer 2023-05-30 01:08:16 PDT
<rdar://problem/109994057>