-
These two features were important to our decision to adopt PEGTL, since they made it easy to embed in our project. I'm curious what was the motivation for removing these features? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
The amalgamated header was removed because (a) we don't see much value in it, if you can copy one header you can copy a directory of them (for us the dividing line for ease-of-use is header-only vs. needs-to-be-compiled), (b) there are several choices of what all to include (no pun intended) or not; if The namespace customisation was originally introduced shortly after placing a copy of the PEGTL in taoJSON, i.e. to prevent a clash when a project uses both the PEGTL and taoJSON where the latter embeds a different version of the former. Now that we are using submodules it didn't seem to be necessary anymore. What is your use case for this feature? |
Beta Was this translation helpful? Give feedback.
The amalgamated header was removed because (a) we don't see much value in it, if you can copy one header you can copy a directory of them (for us the dividing line for ease-of-use is header-only vs. needs-to-be-compiled), (b) there are several choices of what all to include (no pun intended) or not; if
contrib
is part of the amalgamated header then you pull in ICU (!) andiostream
as dependencies which not everybody will want ... and (c) it was more work to maintain than one might think.The namespace customisation was originally introduced shortly after placing a copy of the PEGTL in taoJSON, i.e. to prevent a clash when a project uses both the PEGTL and taoJSON where the latter embeds a…