Gah! Now I've spent an hour searching for a grammar for Sybase/Transact-SQL. I've seen countless questions about it on Usenet, and a few grammars for the SQL-92 standard, but not what I'm after.
Something already in Parse::RecDescent format would be even nicer. Like SQL Fairy. It says on the web page it parses Sybase, but I can't find any reference to it in the code. Besides, it seems to only support DDL and I need to parse stored procedures as well.
It can't not be done already, surely.