Bug 148754
| Summary: | Migrate from flex/bison -> boost::spirit or similar | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brent Fulgham <bfulgham> |
| Component: | WebCore Misc. | Assignee: | Brent Fulgham <bfulgham> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | achristensen, ap, benjamin, bfulgham, mjs, sam |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Brent Fulgham
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.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Brent Fulgham
The first question I have is whether the parsers produced by Boost::Spirit are known to have comparable performance to Flex/Bison?
Alex Christensen
I also wonder if we'd have to include a copy of all of boost to be able to use spirit.
Brent Fulgham
(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.