Enabling YYDEBUG and jsyydebug for debugging during parsing causes a compile error. Change the two defines in Grammar.y: #define YYDEBUG 1 // Set to 1 to debug a parse error. #define jscyydebug 1 // Set to 1 to debug a parse error. rebuild: generated/release/Grammar.tab.c:2427: error: expected unqualified-id before numeric constant Tested on todays nightly, r50918 and an older version I had laying around (r43808), same errors. Also tested with gcc 4.4.1 and 4.3.2.
Why is this a WebKit bug? We don't have YYDEBUG enabled, so this doesn't affect anyone. I think that we would accept a patch that adds support for building with YYDEBUG enabled, if you intend to submit one as an enhancement.
(In reply to comment #1) > Why is this a WebKit bug? We don't have YYDEBUG enabled, so this doesn't affect > anyone. I was under the impression that being able to debug JS parsing would be desired just as much as compiling a debug version of webkit. If it's not, that's fine too.
Might have been a good idea, but we now no longer use a yacc based grammar. :-)