Bug 257189 - XPathGrammar.y and XPathGrammar.cpp are out-of-sync
Summary: XPathGrammar.y and XPathGrammar.cpp are out-of-sync
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-05-23 01:07 PDT by Anne van Kesteren
Modified: 2023-05-30 01:08 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>