hssqlpp is a parser, pretty printer, and type checker for SQL.It parses a subset of PostgreSQL SQL and PL/pgSQL.