tzlaine / parser

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

A single-header version? #70

Closed akrzemi1 closed 5 months ago

akrzemi1 commented 5 months ago

Would it be possible to also ship a single-header version of this library? Such header-only variants make it so easy to test and demo such library in Compiler Explorer. Especially useful in a work envireonment when one is not allowed to download or use or install practically anything.

akrzemi1 commented 5 months ago

Ok, I found a tool to do it myself: https://pypi.org/project/pcpp Now I can test the library with Compiler Explorer: https://godbolt.org/z/Y4fEWhrbo Still, you might consider providing such a "combined header" for easy online testing.

tzlaine commented 5 months ago

Interesting! I think I'll try to set this up as a Github action, pushing to a branch. I think this would be very nice to have if its creation could be automated.