TQuery.sql.add(Sql-query)

I have a program that get some sql-statements from the user, or more
correctly partly by the user and partly generated by a program.
I want to check the sql-syntax before I send it to the TQuery-component
(the tquery.sql.add). Anyone who know of an SQL-parser/scanner for
checking the input written in Pascal (Borland)?

Arne