pgsqlp, uses the scran parser combinators to implement a partial Postgres SQL parser. It currently implements only the SQL parsing necessary for the server side of logical replication.
The test cases are currently the best place to look at functional examples of the combinators.