If you have a degree and had tutoring in compiler building: no.
Otherwise: yes.
I would adapt the gold grammar for SQL 87 based on te info from the link you supplied to make it a bit easier.
Note that the standard package fcl-db that comes with FreePascal contains an sql parser, scanner and abstract syntax tree and is virtually sql-2003 compatible, so maybe you should look there first?