Parsing Expression Grammar Template Library
You are looking for Boost.Spirit (https://www.boost.org/doc/libs/1_76_0/libs/spirit/doc/x3/html/index.html) or PEGTL (https://github.com/taocpp/PEGTL)
Good source layout with Flex and Bison
Use flex and bison, and take advantage of their features (since the defaults aren't sane four hysterical raisins). I have a demo project that I like to point people to.
Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.
C++ parsing DSL
You can check Lexy library of Foonanthan. https://github.com/foonathan/lexy : it is pretty nice, and light and support if i don't miss, C++20
Why no more Lex/Yakk/ANTLR/whatever?
5 projects | /r/cpp | 20 Jun 2021
Use PEGTL to remove my clunky homemade parser
2 projects | dev.to | 30 Jan 2023
Are C/C++ developers allowed to import libraries to make coding easier or are they expected to build every functions and methods from scratch (without importing anything like String.h)?
1 project | /r/learnprogramming | 17 Jun 2022
TIL: Visual Studio has quantum state values 🤨
1 project | /r/cpp | 17 Mar 2022
We Built a C++ Rendering Engine for the Web
2 projects | news.ycombinator.com | 10 Jul 2021