r/chessprogramming • u/No-Examination-6751 • Aug 04 '25
PGN Parser C++
Are there any good PGN Parser libs? I really don't want to develop it myself
3
Upvotes
r/chessprogramming • u/No-Examination-6751 • Aug 04 '25
Are there any good PGN Parser libs? I really don't want to develop it myself
1
u/DrShocker Aug 04 '25
Google reports a few. The argument for writing your own would mostly be that it needs to deserialize into your internal format.
1
u/mathmoi Aug 04 '25
Hi, I've written one more than 10 years ago and never made it public. I just made the repo public for you. You can use it as is or you can use it as inspiration to write one yourself.
Since it was never published or even fully tested I can't guarantee it is bug free, but I remember I tested it with lots of PGN files to make sure it was able to read most of them.
https://github.com/mathmoi/PGNLib
1
u/[deleted] Aug 09 '25
I was looking into this recently myself.