For c/c++ just use lemon: https://en.m.wikipedia.org/wiki/Lemon_(parser_generator)
I think that lemon is comming from the same author as sqlite. I used it like 15 years ago ;) but i still remember lemon as high quality piece of software (Much better compared with flex, yacc, bison...)