Since DuckDB is so portable, it can be a good choice for adding a SQL parser to a new system. Have a look here for an example that uses the parser separately from the execution engine:
https://github.com/duckdb/duckdb/blob/master/examples/standa...
That said, I've heard the duckdb folks have improved on the postgres parser a bit.