tzlaine / parser

A C++ parser combinator library.
Boost Software License 1.0
70 stars 12 forks source link

Consider using Boost.PFR #33

Closed akrzemi1 closed 6 months ago

akrzemi1 commented 6 months ago

Boost.PFR allows tuple-like access to aggregate types without the need to use any "ADAPT" macro. In my parser use cases I use aggregates for representing sequences, and would benefit from not having to use those macros.

Downsides:

Feel free to close this issue at any time. This is just a suggestion.

tzlaine commented 6 months ago

I already had this idea to make the example from #28 Easier to write, but I couldn't remember the name PFR! So, thanks for saving me a lot of searching. I decided to reimplement the bits of it that I needed.