Bug 148754 - Migrate from flex/bison -> boost::spirit or similar
Summary: Migrate from flex/bison -> boost::spirit or similar
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-03 15:30 PDT by Brent Fulgham
Modified: 2015-09-08 14:43 PDT (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2015-09-03 15:30:29 PDT
The Flex and Bison parser generators are becoming an every increasing maintenance burden:

1. More recent versions of this software have undesirable GPL v3 licensing.
2. Different platforms have access to different versions of the software (e.g., Mac is limited to Bison 2.3)
3. Flex and Bison are difficult to obtain and use on Windows.

Instead, it would be nice to move towards a more modern parser generator approach, possibly using something like Boost::spirit.
Comment 1 Brent Fulgham 2015-09-03 15:31:35 PDT
The first question I have is whether the parsers produced by Boost::Spirit are known to have comparable performance to Flex/Bison?
Comment 2 Alex Christensen 2015-09-08 14:22:55 PDT
I also wonder if we'd have to include a copy of all of boost to be able to use spirit.
Comment 3 Brent Fulgham 2015-09-08 14:43:15 PDT
(In reply to comment #2)
> I also wonder if we'd have to include a copy of all of boost to be able to
> use spirit.

Either that, or add it to the build requirements. Either way, it seems like a similar burden to getting a usable Flex/Bison setup. So perhaps this project is a waste of time.

If Visual Studio or Xcode shipped with some version of boost, we could perhaps use it, but it seem like this is not going to work.